Spring and Rspec broken in latest Rubymine version Follow
Hi,
Problem :
When i run a rspec test i get a "cannot load such file -- teamcity/spec/runner/formatter/teamcity/formatter (LoadError)"
If i run the same test in debug mode it works.
Steps to reproduce :
- Start Rubymine
- Clic run rspec
More info :
Untill i updated to Rubymine 2016.2.1 i used to have this error randomly. I was able to solve it by killing spring in the console (`spring stop`) => http://stackoverflow.com/questions/24525945/running-a-spec-in-rubymine-results-in-cannot-load-such-file-teamcity-spec-ru
Since i updated Rubymine this doesn't work anymore. I cant run rspec anymore unless i use debug mode even if i disable spring in the run configuration (use pre-load server: none)
Right now i'm forced to run the spec outside of rubymine in the terminal which is a huge pain :(
What can i do to run the rspec without debug mode ?
Config :
- RubyMine 2016.2.1 - Build #RM-162.1447.29
- Ruby 2.3.1p112
- rails 4.2.6
- spec-rails (3.4.0)
- OSX 10.11.6
Here is my run configuration :
Thanks for this amazing tool by the way :)
Vincent
Please sign in to leave a comment.
I'm having a similar issue, working on windows with wsl2 and RubyMine 2020.2, I cannot run my specs from the IDE. if I just type in the console:
then it works, but I run it form RubyMine, I get:
I also cannot run my rake tasks from the IDE, they don't appear, and when I click on rake --tasks, nothing happens. If I type bin/rake --tasks in the console, it works.
Hello, Vincent,
could you please try stopping spring manually (by running spring stop). How does it go in this case?
Same issue here.
Even after I manually stop spring with spring stop, I have the same errors.
When I run rspec outside of RubyMine, it's fine. (ex: > bundle exec rspec )
@Ashley,
could you please specify what RubyMine version you're using (there was a similar issue, which is already fixed: https://youtrack.jetbrains.com/issue/RUBY-18207)
yes, i confirm that latest update solved the problem for me.
After upgrading IntelliJ IDEA to 2019.1 - this issue came again.
Now I cannot run rspec tests because it shows the following:
I see in the console that IntelliJ starts the rspec test with the following command line:
It shows that test has (-) finished but with no result.
If I try to run the same command in the command line, I see the following output:
Question:
1. Why is IntelliJ adding the parameters
to the rspec command?
2. How to fix this?
Stopping spring, killing spring, restarting IntelliJ, restarting computer - nothing helps.
Loving the IntelliJ by the way!
Hello,
that appears to be a known issue: https://youtrack.jetbrains.com/issue/RUBY-23459
The fix will be most likely available in RubyMine 2019.1.1 and in the updated Ruby plugin for IDEA 2019.1.1
I have the same problem in latest IntelliJ version.
Ruby 2.7.1, Rspec 3.8.2
Is there any workaround?
Yury Mikhailenko, that doesn't look like the problem mentioned in the thread (there're different formatters in the stacktrace). Does it fail only with Spring? How does it go in case you launch RSpec tests manually from the Terminal?
Olga Kuvardina I think you're right and this is different issue.
works just fine for me, but I cannot enable bundler via run configuration in IntelliJ. It always complains about Gemfile missing, though it's right there - in the project dir.
I have the same issue as above.
RubyMine 2020.2
Build #RM-202.6397.95, built on July 27, 2020
Runtime version: 11.0.7+10-b944.20 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 10.15.6
GC: ParNew, ConcurrentMarkSweep
Memory: 725M
Cores: 16