Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG][LSP]: LSP can't track PythonObject usage #1907

Closed
ehsanmok opened this issue Mar 7, 2024 · 1 comment
Closed

[BUG][LSP]: LSP can't track PythonObject usage #1907

ehsanmok opened this issue Mar 7, 2024 · 1 comment
Labels
bug Something isn't working mojo Issues that are related to mojo mojo-repo Tag all issues with this label mojo-tooling Tag for all issues related to repl, lldb, lsp, vscode extension.

Comments

@ehsanmok
Copy link
Member

ehsanmok commented Mar 7, 2024

Bug description

vscode LSP complains that PythonObject value is unused

from python.object import PythonObject

fn main() raises:
    var py_lst: PythonObject = []
    py_lst.append(1)
    print(py_lst)

Steps to reproduce

  • Include relevant code snippet or link to code that did not work as expected.
  • If applicable, add screenshots to help explain the problem.
  • If using the Playground, name the pre-existing notebook that failed and the steps that led to failure.
  • Include anything else that might help us debug the issue.

System information

- What OS did you do install Mojo on ? Ubuntu 22.04
- Provide version information for Mojo by pasting the output of `mojo -v`: mojo 24.1.0 (c176f84d)
- Provide Modular CLI version by pasting the output of `modular -v`: modular 0.5.1 (1b608e3d)
@ehsanmok ehsanmok added bug Something isn't working mojo Issues that are related to mojo labels Mar 7, 2024
@ematejska ematejska added the mojo-tooling Tag for all issues related to repl, lldb, lsp, vscode extension. label Mar 8, 2024
@River707
Copy link
Contributor

This was a general Mojo parser issue, but should be fixed in the next release!

@ematejska ematejska added the mojo-repo Tag all issues with this label label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mojo Issues that are related to mojo mojo-repo Tag all issues with this label mojo-tooling Tag for all issues related to repl, lldb, lsp, vscode extension.
Projects
None yet
Development

No branches or pull requests

3 participants