rust-lang / rust-lang/rust-analyzer

[CodeLens] The Run codelens is not working in a Theia application

Open
#19,346 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-bug
Dominant language
Rust
Stars
16.9k
Forks
2.2k
Avg merge
1d 12h
Merged PRs (30d)
72

Description

I was trying to create a Theia application that contains the rust-analyzer VSCode Extension. I basically followed the Rust in Visual Studio Code documentation, but not using VS Code but the Theia IDE.

I noticed that the Run codelens is not working. Somehow the args contain a null value in Theia.

I can't tell why and how to debug it. But I opened https://github.com/eclipse-theia/theia/issues/15171 in the Theia Github repository. Not sure if the issue is located there or in the rust-analyzer VSCode extension.

If you have any idea how to spot the issue, let me know.

P.S. I managed to install the CodeLLDB extension with its native parts to Theia and tested the Debug codelens. This works as expected. I can only assume that there is an issue with resolving the files to execute that are added to the task args. But I am not sure on which side to search for the issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the Run CodeLens in a Theia application containing the rust-analyzer VSCode extension, then inspect how its task args are passed and where the null value appears. Compare this with the working Debug CodeLens and the related Theia issue; done means Run launches successfully without a null task argument.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.