Closed UebelAndre closed 3 years ago
Thanks for the report! I will look into it tonight.
Sad to see this didn't make 0.5.0
but very hopeful for 0.5.1
!! 😄
I think this project is pretty great so thanks for all the hard work so far!
This issue is still on my radar and I planned a bugfix for the next release.
This issue comes up because the environment variable CARGO_MANIFEST_DIR
is not set when running tests with a debugger (tested with both, VS Code and IntelliJ). Running the tests without a debugger attached works as expected. For this reason, I have categorized this as a minor issue and decided to release 0.5.0
to start getting feedback from the community.
I am working on a fix, though.
@UebelAndre Thanks for your workspace, it helped to reproduce this issue.
As a workaround, you can set the environment variable CARGO_MANIFEST_DIR
manually to contain a path to the root of your project.
Hey, just pining this issue. Any updates? 🙏 😅
I have been busy lately, so no new updates on this for now. Is this a blocker for you?
It's a blocker but has become a point of frustration for some folks. Is there no sane fallback that can be used to avoid this?
I made another pull request to address this issue for my use cases. #24 Do you think it'd be something that could be included in 0.5.2
? (not trying to keep you up late 😅 🙏 )
Thanks for your PR again. I have changed your implementation slightly, but it's merged now into #22 .
Thanks! Want me to close this issue? Users will still run into a similar panic for relative paths (i think)
this should be fixed with #22 (v0.5.2)
Whenever I try to run my test in a debugger, I get the following error
Repro
I created an example workspace that outlines this issue. repro.zip
I'm using Vscode and by simply clicking the
debug
button that appears over tests from therust-analyzer
plugin, I hit this panic.I'm using
0.5.0-beta.1
.