New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when debugging #1937

Closed
Arcnor opened this Issue Oct 27, 2017 · 8 comments

Comments

Projects
None yet
2 participants
@Arcnor

Arcnor commented Oct 27, 2017

I've created a new project with IDEA (because CLion doesn't show Rust projects on the wizard) and I get a "Hello world" application running.

When opening with CLion on OSX (CLion 2017.3 EAP, Build #CL-173.3415.24) and trying to debug, I get:

Error running 'Run HelloWorldRust': com/jetbrains/cidr/cpp/CPPToolchains

Unfortunately, there is no stacktrace that I can see, nor is there anything in the IDEA log files, that's the extent of the error I get.

I've tried changing the debugger to GDB but that doesn't seem to help. I can debug C++ normally, so I'm not sure what the problem is.

@matklad

This comment has been minimized.

Show comment
Hide comment
@matklad

matklad Oct 30, 2017

Member

@Arcnor Yeah, currently we don't support CLinon EAPs: 2017.2 and 2017.3 are backwards incompatible, so you can't support both without resorting to reflection.

The issue to track is #1923

Member

matklad commented Oct 30, 2017

@Arcnor Yeah, currently we don't support CLinon EAPs: 2017.2 and 2017.3 are backwards incompatible, so you can't support both without resorting to reflection.

The issue to track is #1923

@matklad matklad closed this Oct 30, 2017

@Arcnor

This comment has been minimized.

Show comment
Hide comment
@Arcnor

Arcnor Oct 30, 2017

Thanks @matklad , will do that

Arcnor commented Oct 30, 2017

Thanks @matklad , will do that

@matklad

This comment has been minimized.

Show comment
Hide comment
@matklad

matklad Oct 30, 2017

Member

@Arcnor #1923 (comment) contains a link to a branch with 2017.3 support.

Member

matklad commented Oct 30, 2017

@Arcnor #1923 (comment) contains a link to a branch with 2017.3 support.

@Arcnor

This comment has been minimized.

Show comment
Hide comment
@Arcnor

Arcnor Oct 30, 2017

Great! I also like that you have a full Gradle build for this (instead of the old IntelliJ path of forcing you to use IntelliJ itself, which doesn't really scale :D)

I'm having errors on the tests while building the plugin, though, is that expected? One of them is the inability to parse mod.rs from the Rust sources, but I'm on nightly, so that might be expected.

--

Besides that, I've installed the plugin, but when trying to debug, I'm getting an error about "More then one binary produced. Please specify --bin, --lib, or --test explicitly". (There is also a typo, it should be than)

I haven't modified the default running config, which is run --bin MyTestApp, and when I try to debug it's running cargo build --color=always --bin MyTestApp, so I'm a bit puzzled as to why it's saying that.

Arcnor commented Oct 30, 2017

Great! I also like that you have a full Gradle build for this (instead of the old IntelliJ path of forcing you to use IntelliJ itself, which doesn't really scale :D)

I'm having errors on the tests while building the plugin, though, is that expected? One of them is the inability to parse mod.rs from the Rust sources, but I'm on nightly, so that might be expected.

--

Besides that, I've installed the plugin, but when trying to debug, I'm getting an error about "More then one binary produced. Please specify --bin, --lib, or --test explicitly". (There is also a typo, it should be than)

I haven't modified the default running config, which is run --bin MyTestApp, and when I try to debug it's running cargo build --color=always --bin MyTestApp, so I'm a bit puzzled as to why it's saying that.

@matklad

This comment has been minimized.

Show comment
Hide comment
@matklad

matklad Oct 30, 2017

Member

I'm having errors on the tests while building the plugin, though, is that expected? One of them is the inability to parse mod.rs from the Rust sources, but I'm on nightly, so that might be expected.

Yeah, I've temporary disabled nightly tests a while ago and forgot to turn them back =/ It's on my working list though.

Member

matklad commented Oct 30, 2017

I'm having errors on the tests while building the plugin, though, is that expected? One of them is the inability to parse mod.rs from the Rust sources, but I'm on nightly, so that might be expected.

Yeah, I've temporary disabled nightly tests a while ago and forgot to turn them back =/ It's on my working list though.

@matklad

This comment has been minimized.

Show comment
Hide comment
@matklad

matklad Oct 30, 2017

Member

I haven't modified the default running config, which is run --bin MyTestApp, and when I try to debug it's running cargo build --color=always --bin MyTestApp, so I'm a bit puzzled as to why it's saying that.

Hm, that should not happen I think. Will try to reproduce and debug this! (locally, debugging works fine for me).

Member

matklad commented Oct 30, 2017

I haven't modified the default running config, which is run --bin MyTestApp, and when I try to debug it's running cargo build --color=always --bin MyTestApp, so I'm a bit puzzled as to why it's saying that.

Hm, that should not happen I think. Will try to reproduce and debug this! (locally, debugging works fine for me).

@Arcnor

This comment has been minimized.

Show comment
Hide comment
@Arcnor

Arcnor Nov 7, 2017

Have you been able to try this? I've updated CLion again to the latest, but I'm getting the same error. I've also tried with a separate project, but the same happens.

Also, just to confirm, what I'm doing is generating the project using IntelliJ IDEA, then opening it with CLion and trying to debug the existing Run configuration of type Cargo Command with it.

Arcnor commented Nov 7, 2017

Have you been able to try this? I've updated CLion again to the latest, but I'm getting the same error. I've also tried with a separate project, but the same happens.

Also, just to confirm, what I'm doing is generating the project using IntelliJ IDEA, then opening it with CLion and trying to debug the existing Run configuration of type Cargo Command with it.

@matklad

This comment has been minimized.

Show comment
Hide comment
@matklad

matklad Nov 16, 2017

Member

@Arcnor I am not able to reproduce it unfortunately :( Could you share a project where you hit this issue?

Member

matklad commented Nov 16, 2017

@Arcnor I am not able to reproduce it unfortunately :( Could you share a project where you hit this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment