6

I'm getting "fatal error: runtime: bsdthread_register error" error on VS code when i try to run a command on terminal.

This used work fine on Big sur and older versions.

Is there a way to get this fixed on Monterey?

Chalana Gamage
  • 61
  • 1
  • 1
  • 2

5 Answers5

3

If this is a program you built from source, you will need to rebuild it with a newer version of Go:

https://github.com/golang/go/wiki/MacOS12BSDThreadRegisterIssue

Cody Gray - on strike
  • 239,200
  • 50
  • 490
  • 574
Meng小羽
  • 31
  • 3
0

This might not be the issue of vscode. If you open your shell terminal, the error might still be there. Try changing your default terminal to zsh instead of bash. You can follow this to see how to change the vscode default terminal.

YifanG
  • 11
  • 1
  • 1
0

The same situation happens when I use goimports command after upgrading go version to 1.17. Try to upgrade your go tools, Good Luck!

  • 1
    As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jan 27 '22 at 10:20
0

Since it's a MacBook:

brew install docker-machine
Ryan M
  • 18,333
  • 31
  • 67
  • 74
0

I got this error while running command ztoken, I replaced it with zign token uid cn and now i dont get this error