Stream: t-compiler/rust-analyzer

Topic: (no topic)


Capitalism (Mar 23 2019 at 14:46, on Zulip):

Anyone else having issues with the vscode plugin atm? Whenever i try to type anything i'm only able to input letters, while newlines and similar all disappear into the ether.

matklad (Mar 23 2019 at 14:47, on Zulip):

do you have vim plugin installed?

matklad (Mar 23 2019 at 14:47, on Zulip):

Is there anything in VS Code output panel for rust-analyzer?

Capitalism (Mar 23 2019 at 14:47, on Zulip):

Yes. But i've uninstalled it, and it doesn't work without the vim plugin either.

Capitalism (Mar 23 2019 at 14:48, on Zulip):

Should debug output be visible in the ctrl+J panel?

matklad (Mar 23 2019 at 14:48, on Zulip):

yeah, if anything blows up, ctrl+j sould show backtrace

matklad (Mar 23 2019 at 14:49, on Zulip):

If there are no errors, try adding "rust-analyzer.enableEnhancedTyping": falseto your config

Capitalism (Mar 23 2019 at 14:49, on Zulip):

I'm getting multiple errors on the format:
ERROR [ra_lsp_server::main_loop] unknown request: RawRequest { id: 107, method: "m/decorationsRequest", params: Object({"uri": String("file:///.../rust-analyzer/crates/ra_lsp_server/src/main_loop.rs")}) }

Capitalism (Mar 23 2019 at 14:49, on Zulip):

perhaps my vscode is broken, I'm on linux so perhaps the version's become too old

Capitalism (Mar 23 2019 at 14:50, on Zulip):

Also this:
ERROR [ra_lsp_server::main_loop] unknown request: RawRequest { id: 52, method: "m/onEnter", params: Object({"position": Object({"character": Number(1), "line": Number(43)}), "textDocument": Object({"uri": String("file:///.../rust-analyzer/crates/ra_lsp_server/src/main.rs")})}) }

Capitalism (Mar 23 2019 at 14:52, on Zulip):

I'll try to clean some more stuff, brb

matklad (Mar 23 2019 at 14:52, on Zulip):

@Capitalism looks like you are using a waaaay outdated vscode plugin

matklad (Mar 23 2019 at 14:53, on Zulip):

the fix is to do cargo install-code in the updated rust-analyzer repository

Capitalism (Mar 23 2019 at 15:05, on Zulip):

Yeah, now everything works! Thanks.

Capitalism (Mar 23 2019 at 15:05, on Zulip):

i was sure i had pulled the newest changes in my repo, but deleting everything and cloning again from GitHub fixed the issues.

Capitalism (Mar 23 2019 at 15:28, on Zulip):

I'm getting crashes on autocomplete in main_loop.rs#57 if i attempt to autocomplete on task_sender, i get a crash in

thread '<unnamed>' panicked at 'assertion failed: `(left == right)`
  left: `2`,
 right: `1`', crates/ra_hir/src/ty.rs:294:17

Should i post an issue?

matklad (Mar 23 2019 at 15:31, on Zulip):

yep, cc @Florian Diebold

Capitalism (Mar 23 2019 at 15:52, on Zulip):

Posted https://github.com/rust-analyzer/rust-analyzer/issues/1030

Nbiba Bedis (Jun 12 2019 at 17:44, on Zulip):

Hi, @matklad are you considering publishing ra_ide_api crate anytime soon ?

matklad (Jun 12 2019 at 17:45, on Zulip):

No, it's API changes pretty frequently... You could, however, use it as a git dependency

Nbiba Bedis (Jun 12 2019 at 17:47, on Zulip):

Ah, I want to use it on a published crate, thats why I cant use git dependency, but I guess its understandable I can stick with racer for now

matklad (Jun 12 2019 at 17:48, on Zulip):

yeah, it's definitely not ready for being used as a proper dependency

matklad (Jun 12 2019 at 17:49, on Zulip):

Curious, why exactly do you want to use ra_ide_api?

matklad (Jun 12 2019 at 17:54, on Zulip):

If you want, you can totally publish it yourself under lrust-ra_ide_api name!

Just be advised that the API will change

Nbiba Bedis (Jun 12 2019 at 17:56, on Zulip):

Ha I thaught about it but that seriously feels uncool

Nbiba Bedis (Jun 12 2019 at 17:57, on Zulip):

I thaught maybe atleast not to reserve the name and publish it under some random string name

Laurențiu (Jun 12 2019 at 17:57, on Zulip):

a GUID :D

matklad (Jun 12 2019 at 18:00, on Zulip):

@Nbiba Bedis I am 100% ok with someone publishing rust-analyzer to crates.io, as long as they add a prefix to the name of each crate

Nbiba Bedis (Jun 12 2019 at 18:02, on Zulip):

@matklad Ok thanks a lot ^^

Laurențiu (Jul 25 2019 at 05:20, on Zulip):

(removed)

matthiaskrgr (Jul 29 2019 at 17:57, on Zulip):

<posted to wrong topic, please ignore>

Ray (Feb 07 2020 at 18:06, on Zulip):

Hi, first time user of rust-analyser, thanks, it is really working more awesome than rls. I noticed the install required node. Will node continue to be req for using it?

Emil Lauridsen (Feb 07 2020 at 18:08, on Zulip):

Node is only required for building the VSCode extension. We're working on getting it to the point where we can publish it to the VSCode extension marketplace so that it won't be nececsary any more.

Seb (Feb 07 2020 at 21:07, on Zulip):

I just installed RA for the first time yesterday. First of massive thanks to everyone here working on it. RA's macro expansion and type checkers are awesome UX improvements over my previous IDE. Installation was a breeze thanks to artifacts published on GitHub. Cheers!

Seb (Feb 07 2020 at 21:09, on Zulip):

@Ray To install vscode extension without node, you can grab prebuilt package from https://github.com/rust-analyzer/rust-analyzer/releases and then open up you shell and run 'code --install-extension path/to/rust-analyzer-0.1.0.vsix'

andyp (Mar 06 2020 at 23:54, on Zulip):

When I try to "goto definition" in VsCode, only symbols in my code work, anything else, such as io::Result, or UdpSocket (from mio) just say "No definition found for ...".

In general Rust Analyzer is working, I can do things like "Show Syntax Tree". I have tried with both the latest published rust-analyzer VsCode extension, and with a local source build from master. I assume this is a scenario that should work?

andyp (Mar 07 2020 at 00:53, on Zulip):

Answering my own question, this comes down to not referencing the module this code was in from main.rs, sorry for the noise.

andyp said:

When I try to "goto definition" in VsCode, only symbols in my code work, anything else, such as io::Result, or UdpSocket (from mio) just say "No definition found for ...".

In general Rust Analyzer is working, I can do things like "Show Syntax Tree". I have tried with both the latest published rust-analyzer VsCode extension, and with a local source build from master. I assume this is a scenario that should work?

totsteps (Apr 27 2020 at 20:14, on Zulip):

What syntax-highlighter does ra uses?

Is it tree-sitter or custom?

matklad (Apr 27 2020 at 20:22, on Zulip):

custom: https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ra_ide/src/syntax_highlighting.rs

Last update: Jul 29 2021 at 20:30UTC