![]() ![]() I bit the bullet and downloaded the full Visual Studio for Mac. Then press ctrl shift P and select developer reload window then open again terminal-> output-> OmniSharp Log and wait.İt works after second or third trying so 2-3 minutes. If you have an error like "Omnisharp cannot connect it take too long" I don't remember exactly what was typing on error but seems like that. Then open the terminal and select OmniSharp on terminal output then wait little but do not close the script and terminal you have to keep them open, it's kind a bug I think. I found another solution for that.įirst open a C# script(Can be any script doesn't matter). ![]() By the way if you want more detail about this Įdit: I've again that issue. The solution is just open in your project Assembly-CSharp.csproj which is included some of your project settings.Then add this line of codes to the Script I've just found the problem it's because of OmniSharp cant connect to the server properly. How can I solve this problem? I also asked this question on both reddit and the Unity forums with no success. Successfully loaded project file 'c:\Users\stpau\New Unity Project\Assembly-CSharp.csproj'.Īdding project 'c:\Users\stpau\New Unity Project\Assembly-CSharp.csproj' Omnisharp server running using Stdio at location 'c:\Users\stpau\New Unity Project' on host 8980. Invoking Workspace Options Provider: .EditorConfigWorkspaceOptionsProvider, Order: 200 Invoking Workspace Options Provider: .RenameWorkspaceOptionsProvider, Order: 100 Loading project: c:\Users\stpau\New Unity Project\Assembly-CSharp.csproj Invoking Workspace Options Provider: .CSharpFormattingWorkspaceOptionsProvider, Order: 0 : ĭetecting CSX files in 'c:\Users\stpau\New Unity Project'. Queue project update for 'c:\Users\stpau\New Unity Project\Assembly-CSharp.csproj' MSBuildToolsPath = C:\Users\stpau\.vscode\extensions\ms-vscode.csharp-1.21.9\.omnisharp\1.34.9\.msbuild\Current\Binĭetecting Cake files in 'c:\Users\stpau\New Unity Project'.ĭetecting projects in 'c:\Users\stpau\New Unity Project\New Unity Project.sln'. MSBuildExtensionsPath = C:\Users\stpau\.vscode\extensions\ms-vscode.csharp-1.21.9\.omnisharp\1.34.9\.msbuild Registered MSBuild instance: StandAlone 16.3 - "C:\Users\stpau\.vscode\extensions\ms-vscode.csharp-1.21.9\.omnisharp\1.34.9\.msbuild\Current\Bin"ĬscToolPath = C:\Users\stpau\.vscode\extensions\ms-vscode.csharp-1.21.9\.omnisharp\1.34.9\.msbuild\Current\Bin\Roslyn MSBUILD_EXE_PATH environment variable set to 'C:\Users\stpau\.vscode\extensions\ms-vscode.csharp-1.21.9\.omnisharp\1.34.9\.msbuild\Current\Bin\MSBuild.exe' Path: C:\Users\stpau\.vscode\extensions\ms-vscode.csharp-1.21.9\.omnisharp\1.34.9\OmniSharp.exe Target: c:\Users\stpau\New Unity Project\New Unity Project.sln Here is the omnisharp log: Starting OmniSharp server at 2020. I have 4.7.1 already installed so this may not be the problem. NET version from whatever I manually typed to 4.7.1. When attempting solution 4, as stated above, Unity (or VS Code for all I know) automatically changes. I do not know if this is intentional or if this is the problem. GlobalSection(MonoDevelopProperties) = preSolutionįor some reason, the sln file seems to be used for Visual Studio 2010. ![]() GlobalSection(SolutionProperties) = preSolution Project(".Release|Any CPU.Build.0 = Release|Any CPU The sln file the project creates reads Microsoft Visual Studio Solution File, Format Version 11.00 Changed v4.7.1 to (Currently installed version) but unity automatically defaults back to v4.7.1.Uninstalled and reinstalled both Unity and Visual studio.Deleted vscode file within the project.I have tried the following solutions to no results: I am using: Visual Studio Code 1.41, Unity 3d 2018.4.15f1 (I have the same problem when using 2019.2.x). It does work, however, for non Unity specific methods (i.e., IEnumerator, void, public, float, int, etc.) and for Unity specific variables (i.e., Gameobject, transform, camera, etc.) and Unity specific namespaces (i.e., UnityEngine, UnityEditor, Unity, etc.). ![]() Problem: IntelliSense is not working for Unity specific methods and functions (i.e., Update, FixedUpdate, Awake, etc.). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |