AvaloniaVSCode icon indicating copy to clipboard operation
AvaloniaVSCode copied to clipboard

Avalonia has bugs while using .NET 9.0.3

Open 4Darmygeometry opened this issue 8 months ago • 4 comments

Describe the bug

You must install or update .NET to run this application.

App: /home/gamma/.vscode-oss/extensions/avaloniateam.vscode-avalonia-0.0.26-universal/solutionParserTool/SolutionParser.dll Architecture: x64 Framework: 'Microsoft.NETCore.App', version '8.0.0' (x64) .NET location: /home/gamma/.dotnet/

The following frameworks were found: 9.0.3 at [/home/gamma/.dotnet/shared/Microsoft.NETCore.App]

Learn more: https://aka.ms/dotnet/app-launch-failed

To install missing framework, download: https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=8.0.0&arch=x64&rid=linux-x64&os=aosc.12.1.0

To Reproduce

N/A

Avalonia for VS Code

v0.0.26

Avalonia version

v11.2.5

VS Code version

v1.97.0

Relevant log output

2025-03-21 16:21:00.803 [info] Creating language service
2025-03-21 16:21:02.208 [info] Starting Avalonia Language Server...
2025-03-21 16:21:02.222 [info] [Trace - 16:21:02] Sending request 'initialize - (0)'.
2025-03-21 16:21:03.252 [info] [Trace - 16:21:03] Received response 'initialize - (0)' in 1030ms.
2025-03-21 16:21:03.252 [info] [Trace - 16:21:03] Sending notification 'initialized'.
2025-03-21 16:21:03.255 [info] [Trace - 16:21:03] Sending notification 'workspace/didChangeConfiguration'.
2025-03-21 16:21:03.306 [info] [Trace - 16:21:03] Received request 'client/registerCapability - (1)'.
2025-03-21 16:21:03.307 [info] [Trace - 16:21:03] Sending response 'client/registerCapability - (1)'. Processing request took 2ms
2025-03-21 16:21:03.307 [info] [Trace - 16:21:03] Sending notification 'textDocument/didOpen'.
2025-03-21 16:21:03.308 [info] [Trace - 16:21:03] Received request 'workspace/configuration - (2)'.
2025-03-21 16:21:03.308 [info] [Trace - 16:21:03] Sending response 'workspace/configuration - (2)'. Processing request took 0ms
2025-03-21 16:21:03.338 [info] [Trace - 16:21:03] Received request 'workspace/configuration - (3)'.
2025-03-21 16:21:03.338 [info] [Trace - 16:21:03] Sending response 'workspace/configuration - (3)'. Processing request took 0ms
2025-03-21 16:21:03.353 [info] [Trace - 16:21:03] Received request 'workspace/configuration - (4)'.
2025-03-21 16:21:03.353 [info] [Trace - 16:21:03] Sending response 'workspace/configuration - (4)'. Processing request took 0ms
2025-03-21 16:21:03.367 [info] [Trace - 16:21:03] Received notification 'window/logMessage'.
2025-03-21 16:21:03.367 [info] [Info  - 16:21:03] AvaloniaLanguageServer.Handlers.TextDocumentSyncHandler: ** DidOpenText: file:///run/media/gamma/Data/program%20files/UniversityPaper/biyelunwen/MainWindow.axaml | Uri='file:///run/media/gamma/Data/program%20files/UniversityPaper/biyelunwen/MainWindow.axaml'
2025-03-21 16:21:03.384 [info] Command avalonia.previewProcess, file:///run/media/gamma/Data/program%20files/UniversityPaper/biyelunwen/MainWindow.axaml
2025-03-21 16:21:16.121 [info] [EXT - INFO] Solution data path path: /tmp/biyelunwen.sln.json
2025-03-21 16:21:16.163 [info] parser process args: /bin/sh,-c,dotnet "/home/gamma/.vscode-oss/extensions/avaloniateam.vscode-avalonia-0.0.26-universal/solutionParserTool/SolutionParser.dll" "/run/media/gamma/Data/program files/UniversityPaper/biyelunwen/biyelunwen.sln" --sdk 7.0
2025-03-21 16:21:16.169 [info] You must install or update .NET to run this application.

App: /home/gamma/.vscode-oss/extensions/avaloniateam.vscode-avalonia-0.0.26-universal/solutionParserTool/SolutionParser.dll
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '8.0.0' (x64)
.NET location: /home/gamma/.dotnet/

The following frameworks were found:
  9.0.3 at [/home/gamma/.dotnet/shared/Microsoft.NETCore.App]

Learn more:
https://aka.ms/dotnet/app-launch-failed

To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=8.0.0&arch=x64&rid=linux-x64&os=aosc.12.1.0

2025-03-21 16:21:16.171 [info] parser process exited 150
2025-03-21 16:24:45.307 [info] [Trace - 16:24:45] Sending notification 'textDocument/didClose'.
2025-03-21 16:24:45.328 [info] [Trace - 16:24:45] Received notification 'window/logMessage'.
2025-03-21 16:24:45.328 [info] [Info  - 16:24:45] AvaloniaLanguageServer.Handlers.TextDocumentSyncHandler: ** Did Close Doc: file:///run/media/gamma/Data/program%20files/UniversityPaper/biyelunwen/MainWindow.axaml | Uri='file:///run/media/gamma/Data/program%20files/UniversityPaper/biyelunwen/MainWindow.axaml'

Additional context

No response

4Darmygeometry avatar Mar 21 '25 08:03 4Darmygeometry

I'm facing the same issue. I'm also using .NET 9.0.3.

Pahasara avatar Apr 04 '25 16:04 Pahasara

I think you need to compile the master branch and use that instead of marketplace vsix. This has fixed the issue for my end because the marketplace one is old enough and not containing recent fixes.

Nyaacinth avatar Jun 18 '25 15:06 Nyaacinth

@MikeCodesDotNET hey, sorry for the ping; would it be possible for the team to deliver a new release to the marketplace? many thanks in advance

wfzyx avatar Jul 15 '25 00:07 wfzyx

This issue is resolved by #158. We cherry-picked the change and shipped in v11.0.35 of our fork.

lextm avatar Aug 15 '25 04:08 lextm