-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Run and Debug codelens link buttons for main (non test) entry point launch with differing cwd paths #17012
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
Comments
I think that I don't think I think there is definitely an argument to be made for always using |
I think the I prefer the
|
Observed behaviour: In the scenario of an bin package inside a virtual workspace, such as in this minimal example (https://github.com/Keshi/minimal-virtual-workspace), choosing to Run or Debug the main function using the codelens buttons results in different working directories.
If the application is one that expects to dynamically load a settings or asset file relative to the cwd, then the application will always fail to load the file through one of either Run or Debug.
Expected/Desired behaviour: Run and Debug codelens buttons both launch the application using the same cwd behaviour (as observed by the application) as Run currently does.
rust-analyzer version: rust-analyzer version: 0.3.1906-standalone (e4a405f 2024-03-31)
rustc version: rustc 1.77.1 (7cf61ebde 2024-03-27)
editor or extension: VSCode, rust-analyzer 0.3.1906
relevant settings: (eg. client settings, or environment variables like
CARGO
,RUSTC
,RUSTUP_HOME
orCARGO_HOME
)repository link (if public, optional):
https://github.com/Keshi/minimal-virtual-workspace
The text was updated successfully, but these errors were encountered: