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

Cannot open multiple Unity projects at the same time #5515

Closed
sbfkcel opened this issue Jan 4, 2023 · 9 comments
Closed

Cannot open multiple Unity projects at the same time #5515

sbfkcel opened this issue Jan 4, 2023 · 9 comments

Comments

@sbfkcel
Copy link

sbfkcel commented Jan 4, 2023

Issue Description

Unity project, cannot open multiple projects

Steps to Reproduce

  • According to the official guidance of vscode(https://code.visualstudio.com/docs/other/unity)
  • Open a project with vscode
  • Close vscode (note: not exit)
  • Double-click the c# file in the Unity project again
  • It will prompt: OmniSharp requires a complete install of Mono (including MSBuild) to provide language services when omnisharp.useModernNet is disabled in Settings. Please install the latest Mono and restart.

image

Expected Behavior

No prompts will pop up, and everything is fine.

Actual Behavior

A prompt window pops up and the language server is unavailable

Logs

OmniSharp log

Post the output from Output-->OmniSharp log here

C# log

Post the output from Output-->C# here

Environment information

VSCode version: 1.74.2
C# Extension: 1.25.2

Mono Information There is a problem with running OmniSharp on mono: Error: Unable to find Mono. Ensure that Mono's '/bin' folder is added to your environment's PATH variable.
Dotnet Information Command failed: dotnet --version /bin/sh: dotnet: command not found
Visual Studio Code Extensions
Extension Author Version
beautify HookyQR 1.5.0
better-comments aaron-bond 3.0.2
comment-translate intellsmi 2.2.4
csharp ms-dotnettools 1.25.2
eslint-rules-zh-plugin maggie 0.2.1
file-path-bar wraith13 2.1.7
git-graph mhutchie 1.30.0
markdown-mermaid bierner 1.17.3
material-icon-theme PKief 4.23.1
material-theme zhuangtongfa 3.15.6
mermaid-markdown-syntax-highlighting bpruitt-goddard 1.5.0
path-intellisense christian-kohler 2.8.4
remote-explorer ms-vscode 0.0.3
remote-ssh ms-vscode-remote 0.94.0
remote-ssh-edit ms-vscode-remote 0.84.0
rust-analyzer rust-lang 0.3.1348
simple-react-snippets burkeholland 1.2.7
unity-debug deitry 3.0.11
vscode-deno denoland 3.15.0
vscode-docker ms-azuretools 1.23.3
vscode-drawio hediet 1.6.4
vscode-eslint dbaeumer 2.2.6
vscode-gutter-preview kisstkondoros 0.30.0
vscode-jest Orta 5.1.0
vscode-language-pack-zh-hans MS-CEINTL 1.74.12140931
vscode-markdown-paste-image telesoho 0.19.4
vscode-vlang vlanguage 0.1.14
@sbfkcel
Copy link
Author

sbfkcel commented Jan 12, 2023

The problem is the same as here

#5454 (comment)

@doseonfairsutdios
Copy link

Same issue in C# Extension 1.25.4 version

@heshuimu
Copy link

heshuimu commented Feb 9, 2023

Bump, still not fixed in 1.25.4.

@doseonfairsutdios
Copy link

Bump, still not fixed in 1.25.5.

@alakoring
Copy link

alakoring commented Apr 9, 2023

I think I am seeing the same issue — I want to use VS Code with Unity. If I launch VS Code 1.77.1 from Unity, I get the message. If I launch it from Terminal, it works. (C# extension is 1.25.4.)

@stanroy
Copy link

stanroy commented Apr 14, 2023

Same for me, if I open VSCode through the dock and open Unity project from there it works fine, opening it by double clicking in Unity results in the mono install popup.

@epurban
Copy link

epurban commented May 9, 2023

Same

@doseonfairsutdios
Copy link

The latest version( v2.0.248 ) c# extension does not show a pop-up, but when you open multiple projects with vscode through Unity, IntelliSense does not work properly in the second vscode.

As @stanroy said, it works fine when you open it in vscode, not in Unity with The latest version( v2.0.248 ) c# extension.

Same for me, if I open VSCode through the dock and open Unity project from there it works fine, opening it by double clicking in Unity results in the mono install popup.

It is quite inconvenient to open a Unity project with vscode instead of opening a project in Unity.

@JoeRobich
Copy link
Member

A lot has changed with O# and mono since this issue was opened. If you are still having problems, please open a new issue at https://github.com/omnisharp/omnisharp-roslyn/issues. It is recommended to use the Unity extension for VS Code.

@JoeRobich JoeRobich closed this as not planned Won't fix, can't repro, duplicate, stale Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants