Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 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
@ktrianta
@Undin Thanks a lot for your help!
Konstantinos Triantafyllou
@ktrianta
@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
@rekendahl
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
darikg
@darikg
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
@vlad20012
@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
@rekendahl
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
@ishitatsuyuki
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
@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
@ishitatsuyuki
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
https://github.com/ishitatsuyuki/iris
Arseniy Pendryak
@Undin
@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
@rekendahl
@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.
Valentin
@vroussea
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 ?
Valentin
@vroussea
(and yes, if i launch my tests without any coverage everything works just fine)
fabianvdW
@fabianvdW
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
fabianvdW
@fabianvdW
NVM fixed after updating IntelliJ which made newer versions of the plugin available
Exidex
@Exidex
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
Exidex
@Exidex
jitpack/jitpack.io#3973 this seams to be the problem, though I cannot find any reference to jitpack in the build script
James Nugent
@jen20
Has anyone else seen an issue since upgrading to 0.2.107.2137-192 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
@utkarshkukreti
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
@rekendahl
@utkarshkukreti F2?
Tesla Ice Zhang‮
@ice1000
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
@andywarfield_twitter
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
@alexozer
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
@lppedd
Hi guys! Quick question. Does this plugin use kotlin-stdlib as a provided dependency (by IDEA)?
Tesla Ice Zhang‮
@ice1000
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-0.2.111.2797-193-nightly.jar
-rw-r--r-- 1 yqz5714 student    9378 Nov 25 22:05 searchableOptions-0.2.111.2797-193-nightly.jar
-rw-r--r-- 1 yqz5714 student   84220 Nov 25 22:05 toml.jar
Arseniy Pendryak
@Undin
@lppedd yep
Edoardo Luppi
@lppedd
@Undin thank you!
@ice1000 thanks :) Wanted confirmation
Sasuke0x7F
@Paulswith
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
@akainth015
How is support for using the Rust tool chain through the Windows Subsystem for Linux coming along?
Tesla Ice Zhang‮
@ice1000
Hi, speaking of the debugger
image.png
I think this is happening because the value is moved
Can we improve the error message here?
Eyal Katz
@eyalk100_twitter
intellij users in the house? which is your favorite shortcut? https://blog.codota.com/21-intellij-shortcuts-to-boost-your-productivity/
Jan Hlavatý
@hlavaatch
CLion/Rust Run window eats Ctrl-C, cannot break my app :(
Tesla Ice Zhang‮
@ice1000
Use Ctrl-D
Schyrsivochter
@Schyrsivochter
Ctrl+D doesn’t do the same thing