Search code examples
govisual-studio-codevscode-debuggercgo

cc1.exe: sorry, unimplemented: 64-bit mode not compiled in


Error is resolved on Command Prompt

Previously, I was receiving this error on Command Prompt, but was resolved by this approach:

cc1.exe: sorry, unimplemented: 64-bit mode not compiled in

How to resolve error for VS Code debugger

Now, VS Code debugger is throwing the same error:

# runtime/cgo

cc1.exe: sorry, unimplemented: 64-bit mode not compiled in

exit status 2

Process exiting with code: 1

Error screenshot

So far I tried:

  • Restarting VS Code
  • Adding C:\TDM-GCC-64\bin\ to the top of the VS Code terminal path:
set PATH=C:\TDM-GCC-64\bin\;%PATH%

Adding to path

  • Modifying .vscode\launch.json like this:
{
    "version": "0.2.0",
    "configurations": [],
    "environment": [{"name": "Path", "value":  "C:\\TDM-GCC-64\\bin;${env:Path};"}],
}

Screenshot: launch.json

What else can I try?


Solution

  • As suggested by @rustyx a computer reboot resolved the problem. I don't exactly know why a reboot is needed for VS Code debugger to work.