Open spaceunifyfifty opened 7 months ago
I have the extension working through some manual installation steps for now.
brew uninstall dotnet
cat /etc/dotnet/install_location
and observe that it erroneously contains /usr/local/share/dotnet/x64
/usr/local/share/dotnet/
First I decided to try installing dotnet via the official installer from dotnet.microsoft.com instead of brew. The problem persisted. For some reason, installing dotnet
either through brew or Microsoft's graphical installer creates the file etc/dotnet/install_location
with the content /usr/local/share/dotnet/x64
written. Following https://github.com/zed-industries/zed/issues/8352#issuecomment-1962887464, changing it to /usr/local/share/dotnet/
managed to fix the language server in Zed for me, but apparently only for the manual microsoft installation approach (after getting it to work with the manual approach, I tried installing via brew and correcting the /etc/dotnet/install_location
again, but Zed was still throwing omnisharp error logs and not linting, so I am giving up on using brew for now). It's possible I messed up a step the second time around or just needed to give Zed an extra minute or two to start linting, and that the etc/dotnet/install_location
does in fact work for both brew and microsoft installation methods, but I do not want to continue trying to reproduce the exact correct order of steps to confirm whether this fix is applicable to both installation approaches (hopefully someone else can).
I got it to work with brew. Just follow steps 4, 5, and 6 above to update /etc/dotnet/install_location
.
Looks like this is failing for me on another machine, even after following the above steps.
From what I can see in the Zed logs, it's trying to load the Omnisharp server from the path of the open project:
[INFO] starting language server "omnisharp", path: "PATH_TO_OPEN_PROJECT_REDACTED":, id: 1
Additionally, it appears that the omnisharp server is never downloaded. When I look at ~/Library/Application Support/Zed/extensions/work/csharp
, the directory is empty. I would expect to see the omnisharp directory here (as compared to the other machine that has this working correctly).
asdf installed dotnet also can not find the
2024-05-21T10:16:18+08:00 [INFO] starting language server "omnisharp", path: "/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend", id: 16
2024-05-21T10:16:18+08:00 [INFO] starting language server. binary path: "/Users/0x2ca/Library/Application Support/Zed/extensions/work/csharp/omnisharp-v1.39.11/OmniSharp", working directory: "/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend", args: ["-lsp"]
2024-05-21T10:16:18+08:00 [ERROR] crates/lsp/src/lsp.rs:357: cannot read LSP message headers
2024-05-21T10:16:18+08:00 [ERROR] failed to start language server "omnisharp": oneshot canceled
2024-05-21T10:16:18+08:00 [ERROR] server stderr: Some("A fatal error occurred. The required library libhostfxr.dylib could not be found.\nIf this is a self-contained application, that library should exist in [/Users/0x2ca/Library/Application Support/Zed/extensions/work/csharp/omnisharp-v1.39.11/].\nIf this is a framework-dependent application, install the runtime in the global location [/usr/local/share/dotnet/x64] or use the DOTNET_ROOT environment variable to specify the runtime location or register the runtime location in [/etc/dotnet/install_location].\n\nThe .NET runtime can be found at:\n - https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=arm64&rid=osx.11.3-arm64&apphost_version=6.0.0-preview.7.21317.1\n")
2024-05-21T10:16:18+08:00 [ERROR] Hit 4 reinstallation attempts for "omnisharp"
2024-05-21T10:16:18+08:00 [ERROR] crates/lsp/src/lsp.rs:773: server shut down
2024-05-21T10:16:18+08:00 [ERROR] crates/lsp/src/lsp.rs:379: Broken pipe (os error 32)
2024-05-21T10:16:26+08:00 [ERROR] unexpected item event after pane was dropped
2024-05-21T10:17:04+08:00 [ERROR] unexpected item event after pane was dropped
➜ ~ asdf info
OS:
Darwin Mac.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:14:38 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6020 arm64
SHELL:
zsh 5.9 (x86_64-apple-darwin23.0)
BASH VERSION:
3.2.57(1)-release
ASDF VERSION:
v0.14.0
ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/Users/0x2ca/.asdf
ASDF_DIR=/opt/homebrew/opt/asdf/libexec
ASDF_CONFIG_FILE=/Users/0x2ca/.asdfrc
ASDF INSTALLED PLUGINS:
dotnet https://github.com/hensou/asdf-dotnet main e8f059b
java https://github.com/halcyon/asdf-java.git master 57255dd
nodejs https://github.com/asdf-vm/asdf-nodejs.git master 4f8aa3d
python https://github.com/danhper/asdf-python.git master 8505457
rust https://github.com/code-lever/asdf-rust.git master 95acf4f
➜ ~ dotnet --info
.NET SDK:
Version: 8.0.100-preview.7.23376.3
Commit: daebeea8ea
运行时环境:
OS Name: Mac OS X
OS Version: 14.5
OS Platform: Darwin
RID: osx-arm64
Base Path: /Users/0x2ca/.asdf/installs/dotnet/8.0.100-preview.7.23376.3/sdk/8.0.100-preview.7.23376.3/
.NET workloads installed:
没有要显示的已安装工作负载。
Host:
Version: 8.0.0-preview.7.23375.6
Architecture: arm64
Commit: 65b696cf5e
RID: osx-arm64
.NET SDKs installed:
8.0.100-preview.7.23376.3 [/Users/0x2ca/.asdf/installs/dotnet/8.0.100-preview.7.23376.3/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.0-preview.7.23375.9 [/Users/0x2ca/.asdf/installs/dotnet/8.0.100-preview.7.23376.3/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.0-preview.7.23375.6 [/Users/0x2ca/.asdf/installs/dotnet/8.0.100-preview.7.23376.3/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
➜ ~ which dotnet
/Users/0x2ca/.asdf/shims/dotnet
Launching zed directly from the terminal has no effect
The zed config add environment doesn't work either
{
"env": {
"DOTNET_ROOT": "/Users/0x2ca/.asdf/installs/dotnet/8.0.100-preview.7.23376.3/"
},
}
The terminal setup environment and terminal startup zed can start lsp normally.
export DOTNET_ROOT="/Users/0x2ca/.asdf/installs/dotnet/8.0.100-preview.7.23376.3/"
But there are still version mismatch issues, but zed doesn't tell me about them, I only find them in the logs
2024-05-21T10:46:16+08:00 [INFO] starting language server. binary path: "/Users/0x2ca/Library/Application Support/Zed/extensions/work/csharp/omnisharp-v1.39.11/OmniSharp", working directory: "/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend", args: ["-lsp"]
2024-05-21T10:46:17+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.Services.DotNetCliService: Checking the 'DOTNET_ROOT' environment variable to find a .NET SDK | "
}
2024-05-21T10:46:17+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.Services.DotNetCliService: DotNetPath set to /Users/0x2ca/.asdf/installs/dotnet/8.0.100-preview.7.23376.3/dotnet | "
}
2024-05-21T10:46:17+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 1,
"message": "OmniSharp.MSBuild.Discovery.Providers.SdkInstanceProvider: OmniSharp requires the .NET 6 SDK or higher be installed. Please visit https://dotnet.microsoft.com/download/dotnet/6.0 to download the .NET SDK. | "
}
2024-05-21T10:46:17+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.Discovery.MSBuildLocator: Located 0 MSBuild instance(s) | "
}
asdf switch dotnet
➜ ~ asdf list dotnet
7.0.400
*8.0.100-preview.7.23376.3
➜ ~ asdf list all dotnet
1.1.14
1.1.14
2.1.202
2.1.818
2.2.207
3.0.103
3.1.426
5.0.408
6.0.422
7.0.409
8.0.300
9.0.100-preview.3.24204.13
➜ ~ asdf install dotnet 6.0.422
* Downloading dotnet installer...
dotnet-install: Attempting to download using primary link https://dotnetcli.azureedge.net/dotnet/Sdk/6.0.422/dotnet-sdk-6.0.422-osx-arm64.tar.gz
dotnet-install: Remote file https://dotnetcli.azureedge.net/dotnet/Sdk/6.0.422/dotnet-sdk-6.0.422-osx-arm64.tar.gz size is 178669691 bytes.
dotnet-install: Extracting archive from https://dotnetcli.azureedge.net/dotnet/Sdk/6.0.422/dotnet-sdk-6.0.422-osx-arm64.tar.gz
dotnet-install: Downloaded file size is 178669691 bytes.
dotnet-install: The remote and local file sizes are equal.
dotnet-install: Installed version is 6.0.422
dotnet-install: Binaries of dotnet can be found in /Users/0x2ca/.asdf/installs/dotnet/6.0.422
dotnet-install: Note that the script does not resolve dependencies during installation.
dotnet-install: To check the list of dependencies, go to https://learn.microsoft.com/dotnet/core/install, select your operating system and check the "Dependencies" section.
dotnet-install: Installation finished successfully.
dotnet 6.0.422 installation was successful!
➜ ~ asdf global dotnet 6.0.422
➜ ~ dotnet --info
.NET SDK:
Version: 6.0.422
Commit: ae2bd4ec54
运行时环境:
OS Name: Mac OS X
OS Version: 14.5
OS Platform: Darwin
RID: osx-arm64
Base Path: /Users/0x2ca/.asdf/installs/dotnet/6.0.422/sdk/6.0.422/
global.json file:
Not found
Host:
Version: 6.0.30
Architecture: arm64
Commit: 97d8f4cade
.NET SDKs installed:
6.0.422 [/Users/0x2ca/.asdf/installs/dotnet/6.0.422/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.30 [/Users/0x2ca/.asdf/installs/dotnet/6.0.422/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.30 [/Users/0x2ca/.asdf/installs/dotnet/6.0.422/shared/Microsoft.NETCore.App]
Download .NET:
https://aka.ms/dotnet-download
Learn about .NET Runtimes and SDKs:
https://aka.ms/dotnet/runtimes-sdk-info
➜ ~ export DOTNET_ROOT="/Users/0x2ca/.asdf/installs/dotnet/6.0.422"
But there is still no way to use
2024-05-21T11:27:01+08:00 [INFO] starting language server. binary path: "/Users/0x2ca/Library/Application Support/Zed/extensions/work/csharp/omnisharp-v1.39.11/OmniSharp", working directory: "/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend", args: ["-lsp"]
2024-05-21T11:27:02+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.Services.DotNetCliService: Checking the 'DOTNET_ROOT' environment variable to find a .NET SDK | "
}
2024-05-21T11:27:02+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.Services.DotNetCliService: DotNetPath set to /Users/0x2ca/.asdf/installs/dotnet/6.0.422/dotnet | "
}
2024-05-21T11:27:02+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.Discovery.MSBuildLocator: Located 1 MSBuild instance(s)\n 1: .NET Core SDK 6.0.422 17.3.4 - \"/Users/0x2ca/.asdf/installs/dotnet/6.0.422/sdk/6.0.422\" | "
}
2024-05-21T11:27:02+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.Discovery.MSBuildLocator: Registered MSBuild instance: .NET Core SDK 6.0.422 17.3.4 - \"/Users/0x2ca/.asdf/installs/dotnet/6.0.422/sdk/6.0.422\" | "
}
2024-05-21T11:27:03+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.WorkspaceInitializer: Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0 | "
}
2024-05-21T11:27:03+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.Cake.CakeProjectSystem: Detecting Cake files in '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/'. | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.Cake.CakeProjectSystem: Did not find any Cake files | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectSystem: Detecting projects in '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/Proj.SKIII.Extend.sln'. | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/Localized.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/UniTask.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/BehaviorDesigner.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/ProtoBuf.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/Blade.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/UniTask.Linq.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/UnityWebSocket.Runtime.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/spine-unity.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/Tayx.Graphy.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/HotFix.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/UIEffect.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/spine-csharp.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/UIBinding.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/ToolGoodWords.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/ILRuntime.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/spine-timeline.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/UniTask.DOTween.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/Joystick.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/NavMeshPlus.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/SuperTiled2Unity.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/LitJson.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/DOTweenModules.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/FancyScrollView.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/AllIn1SpriteShaderAssembly.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/Coffee.UIParticle.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/SqlCipher4Unity3D.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/BetterStreamingAssets.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/Addressables.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/UniTask.Addressables.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/Sirenix.OdinInspector.CompatibilityLayer.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/UniTask.TextMeshPro.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/AmplifyShaderEditor.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/SuperTiled2Unity-Editor.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/Addressables-Editor.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/Assembly-CSharp-Editor.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/Tayx.Graphy.Editor.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/spine-unity-editor.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/UIBinding-Editor.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/spine-timeline-editor.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/UIEffect-Editor.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/ExcelExport-Editor.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/Blade-Editor.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/NavMeshPlusEditor.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/Sirenix.OdinInspector.CompatibilityLayer.Editor.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/BMFonts-Editor.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/UniTask.Editor.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/FancyScrollView-Editor.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/ProtoBuf-Editor.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/Coffee.UIParticle.Editor.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/Joystick_Edior.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/Sirenix.OdinInspector.Modules.UnityMathematics.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Queue project update for '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/UnityWebSocket.Editor.csproj' | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.Script.ScriptProjectSystem: Detecting CSX files in '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/'. | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Loading project: /Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/Localized.csproj | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.Script.ScriptProjectSystem: Did not find any CSX files | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.Roslyn.CSharp.Services.Diagnostics.CSharpDiagnosticWorkerWithAnalyzers: Solution initialized -> queue all documents for code analysis. Initial document count: 0. | "
}
2024-05-21T11:27:04+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.WorkspaceInitializer: Configuration finished. | "
}
2024-05-21T11:27:08+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Successfully loaded project file '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/Localized.csproj'. | "
}
2024-05-21T11:27:08+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 2,
"message": "OmniSharp.Extensions.LanguageServer.Server.LspServerOutputFilter: Tried to send request or notification before initialization was completed and will be sent later OutgoingNotification { Method = o#/msbuildprojectdiagnostics, Params = {\n \"FileName\": \"/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/Localized.csproj\",\n \"Warnings\": [],\n \"Errors\": []\n}, TraceParent = , TraceState = } | @Request='OutgoingNotification { Method = o#/msbuildprojectdiagnostics, Params = {\n \"FileName\": \"/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/Localized.csproj\",\n \"Warnings\": [],\n \"Errors\": []\n}, TraceParent = , TraceState = }'"
}
2024-05-21T11:27:08+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Adding project '/Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/Localized.csproj' | "
}
2024-05-21T11:27:08+08:00 [INFO] Language server with id 1 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "OmniSharp.MSBuild.ProjectManager: Loading project: /Users/0x2ca/WorkSpace/Unity/Proj.SKIII.Extend/UniTask.csproj | "
}
2024-05-21T11:35:05+08:00 [ERROR] Cancelled LSP request task for "initialize" id 0 which took over 120s
2024-05-21T11:35:05+08:00 [ERROR] failed to start language server "omnisharp": LSP request timeout
2024-05-21T11:35:05+08:00 [ERROR] server stderr: Some("")
2024-05-21T11:35:05+08:00 [INFO] retrying installation of language server "omnisharp" in 1s
2024-05-21T11:35:05+08:00 [ERROR] crates/lsp/src/lsp.rs:773: oneshot canceled
2024-05-21T11:35:06+08:00 [INFO] About to spawn test binary
2024-05-21T11:35:06+08:00 [WARN] test binary failed to launch
2024-05-21T11:35:06+08:00 [WARN] test binary check failed
2024-05-21T11:35:06+08:00 [INFO] beginning to reinstall server
2024-05-21T11:35:06+08:00 [INFO] deleting server container
2024-05-21T11:35:06+08:00 [ERROR] crates/language/src/language_registry.rs:886: server container removal
It's a big project that is loading project related dependencies, lsp has no progress indication,And it failed to start due to a timeout
@maxdeviant c# I'm having a lot of problems here that are causing me to not be able to use it The download of omnisharp is manually downloaded and copied to the corresponding directory, omnisharp download will fail due to network problems, the download directory will appear part of the file, but incomplete, zed no longer check the integrity of the default download success, resulting in the start of omnisharp will appear to be missing files!
Are there any news on this? I checked the contents of /etc/dotnet/install_location and it is already set up correctly. However, I do only get the syntax highlighting, no autocompletion or other language-server features.
I have installed the c# extension and open my Monogame project in Zed. I get syntax highlighting, but no IDE hints or linting. I open zed logs and see
I know that I have already installed dotnet / dotnet-sdk prior, using homebrew. The output of
which dotnet
is/opt/homebrew/bin/dotnet
. I tried runningset DOTNET_ROOT $(dirname $(realpath $(which dotnet)))
before launchingZed
from the cli as another post suggested (the output ofecho $DOTNET_ROOT
is/usr/local/share/dotnet
afterwards), but no success.How can I make Zed use my brew installed dotnet runtime?
Environment
Zed: v0.131.6 (Zed) OS: macOS 14.2.1 Memory: 8 GiB Architecture: aarch64