IDE/Editor support

69 views
Skip to first unread message

Artem Yarulin

unread,
Mar 16, 2021, 2:08:21 PM3/16/21
to rules_rust
Hi, what is the recommended way to configure IDE/Editor? As Bazel has it's own structure and source/binary storage no standard IDE/Editors can fully resolve references and dependencies between files. For C++ I've been using awesome https://ij.bazel.build/docs/bazel-support.html but I guess for Rust there is nothing from the box? 

I wonder how people are editing files here - or do give up on autocomplete and GoTo-Definitions actions from modern IDE?

Thanks

Damien Martin-Guillerez

unread,
Mar 17, 2021, 9:45:38 AM3/17/21
to Artem Yarulin, Marcel Hlopko, rules_rust
Hi Artem,

This is an open question, most likely Vs Code is the one with most support but we have two issues that were never solved: 
  - https://github.com/bazelbuild/rules_rust/issues/370 (debugging). I think +Marcel Hlopko did something recently though.
  - RLS support was replaced by rust analyzer and I believe it was implemented but I have no idea if someone has actually set that up (I tend to just use plain VS Code so far).

That should probably be a good candidate for a documentation request on github.

--
You received this message because you are subscribed to the Google Groups "rules_rust" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rules_rust+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rules_rust/bcaa77f2-e4cf-4f7f-81f6-30d114ec3d2fn%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

--

Damien Martin-Guillerez

Software Engineer at Google


Legal stuff:


Google Germany GmbH

Dienerstraße 12

80331 München


Registergericht und -nummer: Hamburg, HRB 86891

Sitz der Gesellschaft: Hamburg

Geschäftsführer: Graham Law, Christine Elizabeth Flores


Diese E-mail ist vertraulich. Wenn Sie nicht der richtige Adressat sind, leiten Sie diese bitte nicht weiter, informieren Sie den Absender und löschen Sie die E-Mail und alle Anhänge. Vielen Dank.

This e-mail is confidential. If you are not the right address, please do not forward it, inform the sender and erase this e-mail including any attachements.

Marcel Hlopko

unread,
Mar 18, 2021, 4:21:54 PM3/18/21
to Damien Martin-Guillerez, Artem Yarulin, rules_rust
Hi Artem,

I also use VSCode with the rust-analyzer. I'm very happy, things you expect to work do work, even debugging (notes: https://github.com/bazelbuild/rules_rust/issues/370 as Damien already mentioned). To configure rust analyzer with Bazel we have a fresh contribution over at https://github.com/bazelbuild/rules_rust/pull/505 but docs are not published yet (https://github.com/bazelbuild/rules_rust/pull/505#issuecomment-780066923 is a good start though). There is also a Bazel VSCode plugin btw.
--
Marcel Hlopko | Software Engineer | hlo...@google.com | 

Google Germany GmbH | Erika-Mann-Str. 33  | 80636 München | Germany | Geschäftsführer: Geschäftsführer: Paul Manicle, Halimah DeLaine Prado | Registergericht und -nummer: Hamburg, HRB 86891

Artem Yarulin

unread,
Mar 18, 2021, 4:24:49 PM3/18/21
to rules_rust
Oh my, it's amazing - thanks for pointing me to that!

четверг, 18 марта 2021 г. в 22:21:54 UTC+2, Marcel Hlopko:
Reply all
Reply to author
Forward
0 new messages