Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 16 21:15
    Kobzol synchronize #7267
  • Jun 16 21:06
    github-actions[bot] milestoned #7137
  • Jun 16 20:42
    bors[bot] closed #7137
  • Jun 16 20:22
    Undin opened #7357
  • Jun 16 20:22
    Undin milestoned #7357
  • Jun 16 19:44
    avrong synchronize #7348
  • Jun 16 19:29
    github-actions[bot] milestoned #6502
  • Jun 16 19:28
    bors[bot] closed #6502
  • Jun 16 17:57
    github-actions[bot] milestoned #7355
  • Jun 16 17:56
    bors[bot] closed #7355
  • Jun 16 17:28
    vlad20012 synchronize #7347
  • Jun 16 16:29
    github-actions[bot] milestoned #7171
  • Jun 16 16:29
    bors[bot] closed #7171
  • Jun 16 16:29
    bors[bot] closed #7351
  • Jun 16 16:29
    bors[bot] closed #6303
  • Jun 16 15:56
    Undin edited #5632
  • Jun 16 15:31
    mchernyavsky synchronize #7285
  • Jun 16 15:09
    vlad20012 edited #7356
  • Jun 16 15:08
    Undin ready_for_review #7351
  • Jun 16 15:00
    vlad20012 labeled #7356
QiuJiangkun
@qiujiangkun
Can't I debug on M1?
Jakub Beránek
@Kobzol
You can follow this existing issue: intellij-rust/intellij-rust#6616
QiuJiangkun
@qiujiangkun
Thanks
Gentoli
@gentoli:nsyd.tech
[m]
Is there a way to collect logs on what is the plugin doing? Code completions will never finish loading or takes forever while the plugin maxes out 2 CPU cores. I see high usage from org.rust.lang.core.stubs.index in activity monitor but have no idea on what is it getting stuck on.
Jakub Beránek
@Kobzol
You can find a guide on how to collect logs here: https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files. If you experience problems with the plugin, please create a new issue (using Help -> Create New Issue) and attach the logs.
colin-grapl
@colin-grapl
Hey, been using intellij-rust for quite a while now and it's great. I'd love to see the 'optimize imports' remove unused imports and see a few issues around it, but otherwise pretty happy. I was actually wondering if there's some way to contribute/ donate? I don't really have the time to donate code unfortunately, but wouldn't mind sponsoring.
Artem Mukhin
@ortem
Hi @colin-grapl, thank you for your warm feedback! IntelliJ Rust plugin is maintained by JetBrains, and the best way to contribute without writing code is to open well-described bug reports and feature requests :) So feel free to use our issue tracker to make the plugin better. As for Optimize imports, please follow intellij-rust/intellij-rust#2259
John Simon
@whatisaphone
Quick question I didn't want to spam the issue tracker with. I'm using Windows/CLion/MSVC toolchain. In the debugger, viewing a value of type Option<i32> needs a lot of clicks, you need to expand two levels. https://i.imgur.com/moUZsxq.png Would I have better luck switching to another OS/toolchain, or do they all have the same pretty printers?
2 replies
xjd
@XuJiandong
Hi all. Is there a way to force the plugin to think the current working directory is the root of project?
That means it donesn't recursively lookup Cargo.toml at parent folders.
alexey-klimov
@alexey-klimov:matrix.org
[m]
Hi. I can't go to declaration of the generated code that is included by external crate via include!(concat!(env!("OUT_DIR"), "/wayland_api.rs"));. Is this a bug?
Arseniy Pendryak
@Undin
@alexey-klimov:matrix.org is org.rust.cargo.evaluate.build.script feature is enabled? See intellij-rust/intellij-rust#1908 for details
alexey-klimov
@alexey-klimov:matrix.org
[m]
Thanks, it helped
Jakub Beránek
@Kobzol
My PRs have piled up somewhat (I currently have 29 PRs opened (https://github.com/intellij-rust/intellij-rust/pulls/kobzol) :sweat_smile: ). If anyone from the team can find some time to move some of them forward, I'd be glad :) Thank you.
0x7CA
@0x7CA
Hi all, is there a specific reason theres no "Generate doc string stub" for rust like in other jetbrains IDEs? I'm willing to contribute that but just checking first
nazar-pc
@nazar-pc:matrix.org
[m]
Hi folks, is there any way to sponsor work on the plugin? I'm interested in #[cfg(doc)] support as mentioned here: https://github.com/intellij-rust/intellij-rust/issues/1191#issuecomment-699544780
I understand it takes valuable time to work on so would be interested to put a few 💵 in to help it move forward quicker.
Jakub Beránek
@Kobzol
Hi Nazar, could you create a separate issue for #[cfg(doc)]? I think that it would be better, it's a bit lost in the comment.
1 reply
DoctorNefario
@DoctorNefario
Hi all, I'm attempting to use the windows crate, but code completion/hinting only works if I manually set the include!() path. For instance, windows::include_bindings!(); (which expands to ::std::include!(::std::concat!( ::std::env!( "OUT_DIR" ), "/windows.rs" ));) won't work with code completion, but if I manually find the path and use std::include!("../../target/debug/build/bindings-87f54de5608f1346/out/windows.rs");, code completion works perfectly. I've tried on both the stable and nightly intellij-rust, but neither works correctly with the original code.
2 replies
Hans W. Uhlig
@huhlig
Did something break with the latest release build, for some reason it now says none of my modules exist
also as I think a consequence, context completion is broken
Hans W. Uhlig
@huhlig
Caused by: java.lang.IllegalStateException: Source folder file://C:/Users/huhlig/~$target/debug/build/getrandom-2b331b3068483427/out must be under content entry file://D:/Dropbox/Projects/roguestar
nevermind, found the problem, intellij-rust/intellij-rust#6844
Stefan Winkler
@nafest
The org.rust.cargo.fetch.out.dirsetting seems to be gone. Any info on that?
Stefan Winkler
@nafest
Nevermind, file size limit was the problem
Jakub Beránek
@Kobzol
The feature was removed (intellij-rust/intellij-rust#7142) in favour of org.rust.cargo.evaluate.build.scripts
yongyut jantaboot
@yuthstyle88
WSL 2 support on clion yet
Drew Crawford
@drewcrawford
Hi all, I noticed that the Rust plugin has some issues (missing autocomplete, can't jump-to-definition) with across crates in a workspace. Is there a known bug about that or some way to force it to re-index?
Jakub Beránek
@Kobzol
Check the Cargo panel if there are any errors. There is a Refresh button there that you can use.
Drew Crawford
@drewcrawford
Unfortunately that didn't fix it. In the attached screenshot it can't autocomplete marker() even though it is a valid function (as the line above my cursor compiles). Understanding this type requires some macroexpansion, so maybe this is either a bug or limitation of macro intelligence rather than a workspace issue per se
Screen Shot 2021-05-14 at 10.10.56 PM.png
Jakub Beránek
@Kobzol
If it's a procedural macro, you will have to enable the new experimental support for proc macros (it's far from complete at this moment however). See intellij-rust/intellij-rust#6908.
Ridan Vandenbergh
@zeroeightysix
I'd like to get back to finishing intellij-rust/intellij-rust#6353
Is mchernyavsky's last comment still relevant? I know you guys have been doing work on const generics, so maybe the last issue on my PR could be fixed differently.
Jakub Beránek
@Kobzol
I re-requested review from mchernyavsky on the issue.
Ridan Vandenbergh
@zeroeightysix
Thanks :)
Matthew Briggs
@briggsnull_twitter
image.png I think the picture makes it clear what I'm looking for. Is there anyway to set an environment variable in a run configuration that has a path relative to my project?
Jakub Beránek
@Kobzol
So $PROJECT_DIR$ doesn't work for you?
2 replies
Drew Crawford
@drewcrawford

Not sure whether this is the rust plugin or not, but I am having trouble debugging a rust test with clion. This just via the gutter icon next to the test. The problem presents as debugger breaking before the entrypoint with dyld: Library not loaded: @rpath/libtest-55a37c50e126d220.dylib in console.

Debugging things a bit, cargo knows to set the environment variable DYLD_FALLBACK_LIBRARY_PATH for the executable to resolve the link. However when the executable is debugged under clion this variable is not set in env, hence it fails to launch and can't find the lib. It seems clion is working from bashenv or similar which doesn't have this var.

I was able to get it launching by adding the variable to the configuration myself, however the debugger behavior seems off to me. Breakpoints work ok, but panics don't break at all, they just unwind and exit like running the test. My guess is there may be some disconnect between clion/cargo around debugging that explains both issues, but I'm not sure what it is or how to debug it.

Matthew Briggs
@briggsnull_twitter
Is there a slack group or more active community discussion group for the rust plugin? Or is this gitter the main communication channel?
Are there long terms plan to switch over to rust-analyzer at some point? My biggest problem is with code generated by derive (or proc) macros. For example, the plugin is not aware of the structs generated by Snafu. I know the most recent update included some new support for proc/derive macros, but I actually didn't notice any change in behavior. I checked out the rust-analyzer and, wow, derive/proc-macro-produced symbols are fully understood, code-completed, etc by the rust-analyzer.
Jakub Beránek
@Kobzol
There is no current discussion group other than this gitter (AFAIK).
Switching to rust analyzer is not that practical as of this moment (intellij-rust/intellij-rust#964).
To actually use the new proc macro engine, you have to enable it, as it is an experimental feature currently (intellij-rust/intellij-rust#6908).
1 reply
euri10
@euri10:matrix.bartab.fr
[m]
greetings, I have a slight issue with debugging in pycharm, not sure where this fails, but cargo test --no-default-features runs fine, the same command in pycharm debugger yields a /usr/bin/ld: cannot find -lpython3.9 collect2: error: ld returned 1 exit status
mmm I feel like the -L native=/usr/lib in process didn't exit successfully: /home/lotso/.asdf/installs/rust/1.52.1/toolchains/1.52.1-x86_64-unknown-linux-gnu/bin/rustc --crate-name pyrurl --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test -C metadata=4376b11db7e27ba9 -C extra-filename=-4376b11db7e27ba9 --out-dir /home/lotso/PycharmProjects/pyrurl/target/debug/deps -C incremental=/home/lotso/PycharmProjects/pyrurl/target/debug/incremental -L dependency=/home/lotso/PycharmProjects/pyrurl/target/debug/deps --extern pyo3=/home/lotso/PycharmProjects/pyrurl/target/debug/deps/libpyo3-2ba4a2b54f647134.rlib --extern url=/home/lotso/PycharmProjects/pyrurl/target/debug/deps/liburl-6141005aec4b3dd4.rlib -L native=/usr/lib (exit code: 1) might be causing it, but I have no idea if it's configurable there, will check their docs, if anyone encountered this, happy to hear about a solution :)_
a full asdf integration would be awesome :)
euri10
@euri10:matrix.bartab.fr
[m]
saying this because if I run in pycharm terminal the cargo test --no-default-features I can see the rustc command is using correctly the python path
   Running `rustc --crate-name pyrurl --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test -C metadata=4376b11db7e27ba9 -C extra-filename=-4376b11db7e27ba9 --out-dir /home/lotso/PycharmProjects/pyrurl/target/debug/deps -C incremental=/home/lotso/PycharmProjects/pyrurl/target/debug/incremental -L dependency=/home/lotso/PycharmProjects/pyrurl/target/debug/deps --extern pyo3=/home/lotso/PycharmProjects/pyrurl/target/debug/deps/libpyo3-2ba4a2b54f647134.rlib --extern url=/home/lotso/PycharmProjects/pyrurl/target/debug/deps/liburl-6141005aec4b3dd4.rlib -L native=/home/lotso/.asdf/installs/python/3.9.4/lib`
see the -L native=/home/lotso/.asdf/installs/python/3.9.4/lib
Drew Crawford
@drewcrawford
Screen Shot 2021-06-05 at 4.18.50 PM.png
Got another mystery here. In the attached screenshot you see I am prompted that "File is not included in module tree". However, it is. Clicking the "Attach to lib.rs" command adds it again, which obviously does not work.
Screen Shot 2021-06-05 at 4.18.58 PM.png
Jakub Beránek
@Kobzol
The plugin currently wrongly shows excluded files (external libraries etc.) as being unincluded in the module tree, which doesn't really make sense. The bug is known (intellij-rust/intellij-rust#7305), but a fix hasn't been implemented yet.