Skip to content
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

Debugging under Windows Eclipse 2020-09 (4.17.0) forces install of dated toolchain 1.41.0-x86_64-pc-windows-msvc #340

Closed
gbuehler2063 opened this issue Oct 19, 2020 · 5 comments

Comments

@gbuehler2063
Copy link

When I run a Rust project in a Debug configuration, an old tool-chain "1.41.0-x86_64-pc-windows-msvc" is installed automatically before starting the exe-File.
The debugger does not work anyway (no breakpoints accepted) but the exe is run in the Eclipse console.
After the exe terminated, there is a pop-up-Dialog, saying:

"Could not determine GDB version using command: .cargo\bin\rust-gdb.exe --version
error: the 'rust-gdb.exe' binary, normally provided by the 'rustc' component, is not applicable to the 'stable-x86_64-pc-windows-gnu' toolchain "

However, I wanted to use the current stable version which is rustc 1.47.0 (18bf6b4f0 2020-10-07).
The toolchain was installed using rustup and I pointed to the install directory of rustup and cargo as well as rls in the Preferences/Rust Dialog.

My Eclipse is the current version: 2020-09 (4.17.0) on an up-to-date Windows 10 Pro.
Corrosion is installed from the Marketplace and up to date: Corrosion: Rust edition in Eclipse IDE 1.0.0.202009030945

@mickaelistria
Copy link
Contributor

@akurtakov Are you familiar with cargo here to know why would an incompatible version of rust-gdb.exe be installed?

@akurtakov
Copy link
Member

So where does this old tool-chain comes from? If I'm to guess it's prior to the stable one on the PATH env variable. I would look for it and remove it.

@mickaelistria
Copy link
Contributor

@gbuehler2063 any progress?

@mickaelistria
Copy link
Contributor

No news, let's close.
@gbuehler2063 please reopen with more details to reproduce using latest snapshots if you still face this issue.

@tasogare3710
Copy link

@akurtakov Are you familiar with cargo here to know why would an incompatible version of rust-gdb.exe be installed?

Read the error message, it seems that the 1.41.0-x86_64-pc-windows-msvc toolchain is not used, but the stable-x86_64-pc-windows-gnu toolchain is used, so it is not directly related to this issue.

error: the 'rust-gdb.exe' binary, normally provided by the 'rustc' component, is not applicable to the 'stable-x86_64-pc-windows-gnu' toolchain "

This error message is a common error message for rustup wrappers when the required components are not installed. Therefore, this issue is equivalent to the issue described in this page. In other words, windows does not have the trust-gdb shell script, but this is also a known issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants