intellij-rust / intellij-rust

Rust plugin for the IntelliJ Platform
https://intellij-rust.github.io
MIT License
4.53k stars 380 forks source link

Test view broken if use stable rust channel #4528

Open la10736 opened 4 years ago

la10736 commented 4 years ago

Environment

Problem description

Test view doesn't work if stable channel is selected. When tests run the pane show just a Test Framework quit unexpectedly message.

Steps to reproduce

Create a new project with a test and create a test launcher (you can use the gutter icon). Now if your default channel is stable or if select stable channel in launcher configuration page when run your test it'll show just a Test Framework quit unexpectedly message.

Using beta, nightly or select to show standard out and standard error (disable test tool window) fix the issue.

A file with

#[test]
fn display() {
    assert!(true)
}

is enough to trigger the problem.

mchernyavsky commented 4 years ago

Try to use the 0.2.107.2135-193 version of the plugin.

la10736 commented 4 years ago

In not sure if I'll can do it tomorrow... __ but I'll try

la10736 commented 4 years ago

Ok in 0.2.107.2135-193 works as expected.

Undin commented 4 years ago

I think it can be closed

la10736 commented 4 years ago

@Undin Just a note : 0.2.107.2135-193 can be used just on 2019.3 EAP and not on 2019.2.

Undin commented 4 years ago

@la10736 Yep, as intended We create separate builds for 2019.3 and 2019.2 IDEs because of some API incompatibilities in platform. 0.2.107.2137-192 is for 2019.2 and 0.2.107.2135-193 for 2019.3. And the test tool window works as expected in both cases. Unfortunately, I can't set up your case (0.2.107.2137-192 with 2019.3) because 0.2.107.2137-192 is incompatible with 2019.3. Probably, it's possible because of some bug in the platform but it's quite hard to fix it without steps to reproduce

la10736 commented 4 years ago

There is something wired here. When I opened the ticket I didn't have Idea 2019.3 installed and I downloaded the EAP one to try the other plug-in version. Maybe I wrote the wrong version when I opened this ticket. Later I'll try again with 2019.2 and reported plug-in version.

la10736 commented 4 years ago

@Undin Ok... I double checked. My ItelliJ version is 2019.2.3 Community and Rust plugin 0.2.107.2137-192.

With this combo and Rust stable 1.38.0 test view doesn't works.

I spend more than one hour to try to enable debug log message on Intellj without any result :cry: ... log.xml seams that now is not used at all https://youtrack.jetbrains.com/issue/IDEA-217745?_ga=2.90394330.1121243437.1570975723-617131078.1538231686 but I've not any idea of what category should I debug to see the used cargo command.

That's the only trace that I have:

2019-10-14 22:24:35,934 [  46566]   WARN - ner.GeneralTestEventsProcessor - [Cargo Test]: Trying to finish nonexistent node: TestSuiteFinishedEvent{name='regression_intelij_tests', id='regression_intelij_tests-084000235dbfa507'} 
la10736 commented 4 years ago

Yet another bit ... at office I'm using mint 19.1, Idea 19.2.3 and plugin 0.2.107.2137-192. In this case all works as expected.

Undin commented 4 years ago

@mchernyavsky Could you please take a look?

vjpr commented 3 years ago

6611