Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

[Bug] [SYM-PR2] Symbols aren't created when raising a python module to jac  #507

@mgtm98

Description

@mgtm98

Describe the bug

While supporting getting Python symbols from Python libs and linking them to the appropriate Jac nodes, I encountered an issue with a missing symbol.

import:py pygls.server;

obj ServerWrapper {
    can init(file: str);
    can get_server(server_ip: str, port: int) -> pygls.server.LanguageServer;
}

:obj:ServerWrapper:can:init
(file: str) {
    self.file = file;
}

:obj:ServerWrapper:can:get_server {
    return pygls.server.LanguageServer("test_server", "1");
}

for the above code snippet the symbol for server is not there in the symbol table however there is a sub table created correctly inside pygls called server

To Reproduce

  1. jac tool it sym jaclang/jaclang/tests/fixtures/type_info.jac

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions