AvaloniaUI / AvaloniaVSCode

Visual Studio Code Extension for Avalonia UI
https://marketplace.visualstudio.com/items?itemName=AvaloniaTeam.vscode-avalonia
MIT License
103 stars 18 forks source link

Auto completion not working with specific project name #142

Open Quikler opened 3 days ago

Quikler commented 3 days ago

Describe the bug

Hello everyone. I've encountered an issue when I have specific project name the auto completion stops working.

To Reproduce

I don't know why it may cause the issue but let's say I create project with name NameTest: dotnet new avalonia.mvvm -o NameTest - Auto completion works fine when you do dotnet build or click Build the project. But let's say I create exact same project with name NameTestOOO: dotnet new avalonia.mvvm -o NameTestOOO - Auto completion not working even if you do dotnet build or click Build the project.

In NameTestOOO project I also explicitly run: dotnet "/home/quikler/.vscode/extensions/avaloniateam.vscode-avalonia-0.0.29/solutionParserTool/SolutionParser.dll" "/home/quikler/Desktop/repos/NameTestOOO" and it gives me the following output: image

Also I git cloned SolutionParser repository and run the command: dotnet run "/home/quikler/Desktop/repos/NameTestOOO/" in SolutionParser project and it works without problems and I can now see the xaml auto completion in xaml file: image

NameTest project: image

NameTestOOO project: image

Avalonia for VS Code

v0.0.29

Avalonia version

11.1.0

VS Code version

v1.94.2

Relevant log output

2024-11-23 19:08:33.785 [info] [EXT - INFO] Solution data path path: /tmp/NameTestOOO.json
2024-11-23 19:08:33.803 [info] parser process args: /bin/sh,-c,dotnet "/home/quikler/.vscode/extensions/avaloniateam.vscode-avalonia-0.0.29/solutionParserTool/SolutionParser.dll" "/home/quikler/Desktop/repos/NameTestOOO"
2024-11-23 19:08:34.156 [info] No executable project found.
2024-11-23 19:08:34.160 [info] parser process exited 0

Additional context

No response

Quikler commented 2 days ago

Relevant issue: Method '[MSBuild]::SubstringByAsciiChars' not found when project name is long