LoginSignup
3
2

More than 1 year has passed since last update.

【VSCode/Unity】useGlobalMono が消えて補完が効かなくなったときの対処法

Posted at

環境

  • macOS 12.1
  • Unity 2020.3.32.f1
  • Visual Studio Code 1.67.2
  • OmniSharp 1.25.1
  • Mono 6.12.0

VSCode で補完が効かなくなり、調べると omnisharp.useGlobalMonoalways にすれば直ると出てきたが、すでにそう設定してあった。困ったので再起動すると、omnisharp.useGlobalMono の項目が消えていて、C# ファイルを開くと Some projects have trouble loading. Please review the output for more details. のエラーが止まらない。

対処法

OmniSharp の v1.25.0 で omnisharp.useGlobalMono の設定が消されている。
代わりに Omnisharp: Use Modern Net のチェックを外せば良い。
私の環境だと

[ERROR] Error: Unable to find Mono. Ensure that Mono's '/bin' folder is added to your environment's PATH variable.

が出てきたので、

$ export PATH=$PATH:/Library/Frameworks/Mono.framework/Versions/6.12.0/bin
$ source ~/.zshrc

をすると解決した。

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2