Skip to content
This repository has been 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

Open
mgtm98 opened this issue Jul 12, 2024 · 0 comments
Open
Assignees

Comments

@mgtm98
Copy link
Collaborator

mgtm98 commented Jul 12, 2024

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants