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

rust-analyzer Run button error: Cannot read properties of undefined (reading 'value') #14875

Open
r23j5a opened this issue Feb 7, 2025 · 1 comment
Labels
bug bugs found in the application tasks issues related to the task system vscode issues related to VSCode compatibility

Comments

@r23j5a
Copy link

r23j5a commented Feb 7, 2025

Bug Description:

Error launching task 'run theia-temp-test': Cannot read properties of undefined (reading 'value')

025-02-07T21:20:40.829Z root ERROR [hosted-plugin: 797319] There is no document for breakpointinput:vs.editor.ICodeEditor%3A3
2025-02-07T21:20:40.937Z root INFO [hosted-plugin: 797319] calling activation function on rust-analyzer
2025-02-07T21:20:50.841Z task ERROR Error occurred while creating task: TypeError: Cannot read properties of undefined (reading 'value')
2025-02-07T21:20:50.843Z task ERROR Error launching task 'run theia-temp-test': Cannot read properties of undefined (reading 'value')
2025-02-07T21:20:50.849Z root ERROR Error: Run task config does not return after being started
    at t.TasksExtImpl.executeTask (/tmp/.mount_TheiaIGpoQgo/resources/app/lib/backend/339.js:1:583387)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async c.handleRequest (/tmp/.mount_TheiaIGpoQgo/resources/app/lib/backend/638.js:2:47053)
2025-02-07T21:22:09.372Z task ERROR Error occurred while creating task: TypeError: Cannot read properties of undefined (reading 'value')
2025-02-07T21:22:09.373Z task ERROR Error launching task 'run theia-temp-test': Cannot read properties of undefined (reading 'value')
2025-02-07T21:22:09.376Z root ERROR Error: Run task config does not return after being started
    at t.TasksExtImpl.executeTask (/tmp/.mount_TheiaIGpoQgo/resources/app/lib/backend/339.js:1:583387)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async c.handleRequest (/tmp/.mount_TheiaIGpoQgo/resources/app/lib/backend/638.js:2:47053)

Steps to Reproduce:

  1. install cargo (curl https://sh.rustup.rs -sSf | sh) add rust-analyzer extension to Theia (v0.4.2295; https://open-vsx.org/extension/rust-lang/rust-analyzer)
  2. init test project, "cargo init"
  3. go to src/main.rs file in the editor and click "Run" on top of the main function

Additional Information

  • Operating System: Ubuntu 24.04.1 LTS
  • Theia Version: Version 1.58.100 (AppImage)
@msujew msujew added bug bugs found in the application tasks issues related to the task system vscode issues related to VSCode compatibility labels Feb 8, 2025
@hsnoil
Copy link

hsnoil commented Feb 9, 2025

I think this is related to:

#14073

The issue is Theia seems to do an extra check to see if the entry exists in package.json which vscode does not. But the check doesn't seem to work with npm and path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application tasks issues related to the task system vscode issues related to VSCode compatibility
Projects
None yet
Development

No branches or pull requests

3 participants