Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • 16:45
    ortem synchronize #4710
  • 15:20
    ortem synchronize #4710
  • 12:00
    ortem synchronize #4724
  • 07:35
    Undin labeled #4746
  • 07:35
    Undin labeled #4746
  • 07:02
    ortem closed #535
  • 07:02
    ortem reopened #535
  • 03:42
    fujiapple852 opened #4746
  • Dec 11 10:51
    Undin milestoned #4479
  • Dec 11 10:48
    Undin milestoned #4412
  • Dec 11 07:06
    bors[bot] closed #4482
  • Dec 11 06:39
    Undin milestoned #4482
  • Dec 11 05:51
    Undin synchronize #4742
  • Dec 10 23:13
    mchernyavsky synchronize #4482
  • Dec 10 20:55
    akainth015 synchronize #4737
  • Dec 10 19:13
    Matthias247 opened #4745
  • Dec 10 14:38
    hlavaatch opened #4744
  • Dec 10 09:26
    bors[bot] closed #4743
  • Dec 10 08:49
    Undin milestoned #4689
  • Dec 10 08:49
    Undin milestoned #4671
Konstantinos Triantafyllou
@Undin Thanks a lot for your help!
Konstantinos Triantafyllou
@Undin I linked rustc_driver, rustc_interface and rustc_plugin (rustc and syntax were already there after executing rustup component add rust-src). The problem persists though. IDEA finds the standard library at ~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src (which is were I linked the source to). I also tried with all 3 options for expanding declarative macros to no avail. In the IDEA project's external libraries there is the syntex library but not rustc, rustc_driver, rustc_interface or rustc_plugin. Still I get "Can't find crate for ..." for all of them including the syntax library.
Robert Ekendahl
I’m trying to run the gradle task RUST [TEST] on my Mac using 2019.2.1 and it hangs. Used to work when I was on 2019.1.4. Any ideas?
RunIde and build plugin seems to work
In the end test times out with Test events not received
Hey everybody, I've got a moderately large project and for a while now I've been getting spurious "File is not included in module tree, analysis is not available" warnings that seem to come and go if I jump around in my git history. Is there any way to automate checking for that issue over the whole project to make it easier to bisect the problem and figure out where it started? (as opposed to manually opening every file in the editor every time I check out a different revision)
Vlad Beskrovnyy
@ktrianta The official position of the Rust team about compiler plugins is that "We don't want anyone to actually keep developing plugins" https://github.com/rust-lang/rust/pull/58269#issuecomment-466898763
I think that your workaround doesn't work because I don't see rustc_plugin (and other crates you mentioned) in this list https://github.com/intellij-rust/intellij-rust/blob/master/src/main/kotlin/org/rust/cargo/util/RustCrateUtil.kt#L42. And I don't want to think about possible workarounds because of the Rust team position about compiler plugins. You can try to make a "fake" Cargo.toml (to be used only with IntelliJ-Rust) with an explicit dependency on e.g. rustc_plugin, but I don't sure it will work because IntelliJ Rust invokes Cargo to get project structure and it can fail on such a weird configuration. Another option is just to open rustc as a project and start developing something directly there. I can’t help anything else.
@darikg Umm, I don't know such way, sorry
Robert Ekendahl
For the developers: What’s the reason for org.rust.lang.core.stubs.createStubIfParentIsStub (in RsStubElementType.kt)? Why not create a stub even if the parent is not a stub? Is this for debug to trace where stubbyness breaks or is there an underlying issue?
Tatsuyuki Ishi
My codebase has grew and at this point the plugin just refuses to show import suggestions (they no longer show on Alt+Enter). What could be the possible causes?
Alexander Irbis
@ishitatsuyuki There may be different reasons for this. Can you make a demo project with a similar structure to reproduce the issue (or maybe the issue is in an open source project?)
Tatsuyuki Ishi
Maybe... It is open source, but I use multiple overriden dependency locally so making a reproduction may take some itme
I'll leave a link here, whether it reproduces or not is uncertain
Arseniy Pendryak
@rekendahl because of performance. One of purposes of stubs is to make a shrunk version of syntax tree to drop all redundant info from it and make psi queries faster. Also, it affects time of index building because we don't make creation/serialize/deserialize/read/write operations for stubs that we don't need
Robert Ekendahl
@Undin: Thank you that makes sense. Ideally my tree would create stubs all the way through for each stubbed item. I’m not there yet so I will, for now, need to create stubs everywhere as I need the stub info for index look-up.
hello, my project test coverage worked one week ago, but now when i try to start the test coverage i get test framework quit unexpectedly, any idea of why ?
is it possible that my code is the source of the error ?
(and yes, if i launch my tests without any coverage everything works just fine)
Hi, I have problems with code completion with Intellij/Rust. I have a lib and several bins. From the bins, there is no code completion available to the lib. The lib is specified in Cargo.toml as [lib] name="core" and used with extern crate core; in the bins
NVM fixed after updating IntelliJ which made newer versions of the plugin available
Does anybody have problems building the plugin? I get Could not GET 'https://jitpack.io/unzipped/com/jetbrains/plugins/java/ideaIU-IU-192.6603.28-withSources/java-ideaIU-IU-192.6603.28-withSources.pom'. Received status code 522 from server: Origin Connection Time-out
jitpack/jitpack.io#3973 this seams to be the problem, though I cannot find any reference to jitpack in the build script
James Nugent
Has anyone else seen an issue since upgrading to of the plugin where code crates are not recognised as being part of a module tree?
Seems to be a problem when the root is a cargo workspace
I heard rumors you can use WolfTheProblemSolver.getInstance(project).reportProblems(file, problems) but I don’t see that in the Rust code? So how do you enable the same effect?
Utkarsh Kukreti
Hi. Is there any command and/or keyboard shortcut to jump to the next compile error? cargo build throws several errors in my crate but I don't see anything in the IDE.
Robert Ekendahl
@utkarshkukreti F2?
Tesla Ice Zhang‮
F2 is for go to next error in the IDE
cargo build gives you errors from the compiler, which the IDE may not be able to spot. Probably enabling on-the-fly cargo check will be a good idea
Andrew Warfield
Is there a trick to get intellij-rust to index external crates? I'm working with tokio and intellij can't seem to jump to definitions of structs that I import from there.
Alex Ozer
hi! I'd like to implement a feature to disable the progress indicator when the external linter (cargo check / clippy) is being run as it's kind of annoying.
it seems like the progress indicator is called in RsExternalLinterUtils.kt in checkWrapped()
any idea how I might disable it?
Edoardo Luppi
Hi guys! Quick question. Does this plugin use kotlin-stdlib as a provided dependency (by IDEA)?
Tesla Ice Zhang‮
Seems yes
λ> ll ~/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/193.5233.56.plugins/intellij-rust/lib/
total 7196
drwxr-xr-x 2 yqz5714 student    4096 Nov 25 22:05 ./
drwxr-xr-x 4 yqz5714 student    4096 Nov 25 22:05 ../
-rw-r--r-- 1 yqz5714 student   77827 Nov 25 22:05 clion.jar
-rw-r--r-- 1 yqz5714 student   24007 Nov 25 22:05 common.jar
-rw-r--r-- 1 yqz5714 student     549 Nov 25 22:05 copyright.jar
-rw-r--r-- 1 yqz5714 student   57242 Nov 25 22:05 coverage.jar
-rw-r--r-- 1 yqz5714 student   63280 Nov 25 22:05 debugger.jar
-rw-r--r-- 1 yqz5714 student   11027 Nov 25 22:05 duplicates.jar
-rw-r--r-- 1 yqz5714 student    3535 Nov 25 22:05 grazie.jar
-rw-r--r-- 1 yqz5714 student   20718 Nov 25 22:05 idea.jar
-rw-r--r-- 1 yqz5714 student 6567383 Nov 25 22:05 intellij-rust.jar
-rw-r--r-- 1 yqz5714 student     261 Nov 25 22:05 intelliLang.jar
-rw-r--r-- 1 yqz5714 student  402185 Nov 25 22:05 markdown-0.1.30.jar
-rw-r--r-- 1 yqz5714 student    8027 Nov 25 22:05 plugin-
-rw-r--r-- 1 yqz5714 student    9378 Nov 25 22:05 searchableOptions-
-rw-r--r-- 1 yqz5714 student   84220 Nov 25 22:05 toml.jar
Arseniy Pendryak
@lppedd yep
Edoardo Luppi
@Undin thank you!
@ice1000 thanks :) Wanted confirmation
I found one strange problem. I tap one breakpoint and start debug, the program will auto exit when access the breakpoint. CLion2019.2.5 + newest intellij-rust plugin, debugger is lldb
Aanand Kainth
How is support for using the Rust tool chain through the Windows Subsystem for Linux coming along?
Tesla Ice Zhang‮
Hi, speaking of the debugger
I think this is happening because the value is moved
Can we improve the error message here?
Eyal Katz
intellij users in the house? which is your favorite shortcut? https://blog.codota.com/21-intellij-shortcuts-to-boost-your-productivity/
Jan Hlavatý
CLion/Rust Run window eats Ctrl-C, cannot break my app :(
Tesla Ice Zhang‮
Use Ctrl-D
Ctrl+D doesn’t do the same thing