Stream: t-compiler/wg-rls-2.0

Topic: LSP extensions


Florian Diebold (May 25 2020 at 13:29, on Zulip):

@matklad isn't the documentation missing inlay hints? and runnables?

matklad (May 25 2020 at 13:30, on Zulip):

Yup, and parent modules

Florian Diebold (May 25 2020 at 13:30, on Zulip):

just asking because the changelog says "all" ;)

matklad (May 25 2020 at 13:30, on Zulip):

I want to finish those tomorrow

matklad (May 25 2020 at 13:30, on Zulip):

That's changelog for Tuesday :P

matklad (May 25 2020 at 13:32, on Zulip):

(Also, sorry for breaking existing emacs command by rearranging some not-so-siginificant details. My hypothesis is that getting rid of rust-analyzer specific prefixes, and just trying to make proper protocol extensions would lead to a better ecosystem long term)

Florian Diebold (May 25 2020 at 13:40, on Zulip):

yeah, I'm kind of waiting for you to be done to fix all the emacs stuff ;)

Chetan Khilosiya (Jun 11 2020 at 19:51, on Zulip):

Hi, I am trying to debug lsp extension and after following guild in dubugging.md I am facing issue of "Ignored breakpoint because generated code not found". I have updated the launch.json file to add node_modules js files in outFiles. Then only facing issue.
How to solve this issue?

Chetan Khilosiya (Jun 11 2020 at 19:54, on Zulip):

I am adding debug point in on_task() function.

Chetan Khilosiya (Jun 12 2020 at 13:29, on Zulip):

I provided --sourceMap to npm build script in package.json, still it is not working. Any suggestions how to get debug point in main_loop.rs on_task() function?
I had already added
"lldb.adapterEnv": {
"lldb.adapterType": "native",
},
in rust analyzer settings.json file.

vsrs (Jun 12 2020 at 16:11, on Zulip):

Did you change Cargo.toml ?

[profile.dev]
debug = 2 # default is 0
Chetan Khilosiya (Jun 14 2020 at 18:46, on Zulip):

Thank for the reply @vsrs .
Yes, I did that in crates/rust-analyzer/cargo.toml file and then build the project.
Is this file is right, or am I suppose to update any other file?
Also I have added those lines at the end of file. As in that file there was no existing entry for dev profile.

Chetan Khilosiya (Jun 14 2020 at 19:05, on Zulip):

After searching profile.dev in project files, I updated the workspace cargo.toml file with dev = 2. Then also no luck.
I have attached debugger to rust-analyzer server also.

Chetan Khilosiya (Jun 19 2020 at 14:54, on Zulip):

Any suggestions on this?

Chetan Khilosiya (Jun 27 2020 at 12:00, on Zulip):

Go the debugging working. The solution is first run Run extension (Debug) and then attach server. while selecting rust analyzer server select debug path of rust analyzer. Hope this helps, if anyone is facing same issue.

Last update: Sep 27 2020 at 14:15UTC