-
Notifications
You must be signed in to change notification settings - Fork 13
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
[BUG] Dev Kit Not Working Properly With multiple projects in folders #651
Comments
@thndgonz Just so I'm clear on how to reproduce this, your workspace contains multiple top-level folders rather than just one? |
Yes, each project is at top level (example to clear any doubts):
In terms of my file system:
|
Same problem here, multiple C# solutions as described above are not supported |
Yesterday I had to set up vscode on a new computer and noticed that syntax highlighting and code completion were working as expected. This led me to believe that the reason it broke is perhaps a cache/old files (configs?) issues. Granted there was also a new step. I let Dev Kit create/have its way generating the SLN file as well and placed it in the parent folder and just removed the things I didn't need. So what I did yesterday on my laptop where the issue appeared was just wipe the Summary, whatever is triggering this bug has to do with old cached files or old configuration files. |
This issue has been automatically closed due to inactivity from original bug filer and having the 'needs-more-info' label for more than 14 days. If the issue still persists, please reopen the issue with the requested information. |
Has anyone found a solution to this? I am seeing this issue on the latest version of dev kit. My file structure is: Workspace (root folder) |
I've had issues with multiple solutions in the same directory. The work around is to run |
Describe the Issue
Copied from dotnet/vscode-csharp#6596, originally filed by @thndgonz
Issue Description
I have multiple .csproj in a workspace. When I first installed Dev Kit it seems to have processed only one folder in which it added a SLN file.
The language server starts failing with the other folders.
Steps to Reproduce
Not sure if it matters (as in OS oriented)
Have ubuntu/any other distro.
Open Visual Studio Code
Add several project folders with their respective
csproj
file to your workspace (do not add any project with a SLN, for reproduction purposes)Install C# Dev Kit.
Notice that Dev Kit will add only one SLN.
Notice that the syntax highlighting and autocomplete starts failing when you switch over to different
*.cs
files in the editor.Expected Behavior
Dev Kit or the language server doesn't "choke" when each csproj doesn't have a SLN. Autocomplete and syntax highlighting works.
Actual Behavior
Dev Kit enabled and/or SLN existing in a folder causes a lot of heartburns for the language server apparently. Disabling syntax highlighting and autocomplete.
Logs
C# log
C# LSP Trace Logs
Environment information
VSCode version: 1.83.1
C# Extension: 2.7.25
Using OmniSharp: false
Dotnet Information
.NET SDK: Version: 7.0.113 Commit: e24ee34c8eRuntime Environment:
OS Name: arch
OS Version:
OS Platform: Linux
RID: arch-x64
Base Path: /usr/share/dotnet/sdk/7.0.113/
Host:
Version: 7.0.13
Architecture: x64
Commit: 3f73a2f186
.NET SDKs installed:
7.0.113 [/usr/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 7.0.13 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 7.0.13 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
DOTNET_ROOT [/usr/share/dotnet]
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
Visual Studio Code Extensions
Steps To Reproduce
No response
Expected Behavior
No response
Environment Information
No response
The text was updated successfully, but these errors were encountered: