-
Notifications
You must be signed in to change notification settings - Fork 675
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
Generated XML documentation for C# not working as expected #4378
Comments
can you set |
It does not look like there is a loaded workspace in that video. There's no breadcrumbs at the top to say what namespace/class/member the cursor is currently in, and highlighting is using syntactic highlighting, not semantic highlighting. I suspect that once you figure that out, this feature will work fine. |
Okay so in one codebase I have it works just fine. But in another one it doesn't. Here is the omnisharp loggs for it and another video. Pastebin (for not working project): https://pastebin.com/DDEPx8Di I don't really understand @333fred comment but in this video is there not a breadcrumb? IS it more complex than the following sudo logic? if ("is C# and cursor is above a method/property/etc){ There is no real fundamental difference from an end-user perspective between these two projects. In fact the working one is on an old non-supported version of .net core even. |
you need to post the full log, from the start of the server, the current version is abbreviated. But it looks like the project doesn't load and the failure should be somewhere around the start |
Sorry about that. Here it is, I did actually see a "failed to load" just a moment ago. But this paste is from cold start load of the project folder after closing vscode. I suspect your right perhaps there is something wrong with this project causing omnisharp to fail... |
Yeah looks like a bunch of Failure to load dotnet tools. Sorry if this is now qickly becoming the wrong place to discuss this, but don't really understand why this project is failing like that but the other is fine..
|
The resource dlls are a red herring, they're unrelated. The real failure is this:
Can you share the project source? As to the breadcrumbs, this is what I mean: The project in the video didn't have those, which indicates that O# doesn't really know anything about the file. You probably don't get completion or other similar features. |
@sethreidnz As @333fred said, we do not ship localizations with our packaged build tools to keep the download size small. However, the Assembly loader will still try to resolve them and report these warnings. I found this MSBuild issue where they fixed a breaking change with the |
Ahh I see, thanks for clarification. And unfortunately I cannot share the source. This is actually a project I don't work on a lot since I'm the UI engineer on the team and this is the API. I will have to just try to figure out why this is happening. Any suspicions on why I would get an error like that? I'm wondering if its something to do with the version of .net the project has and what I'm running locally... But this happens to another engineer on our team but has just been ignoring it (the error from omnisharp about failing to load a project). Is it easy to tell from the errors which project is failling? I'm having trouble being able to tell.. Anyway, thanks for you help, if I figure this out I will reply to the thread. I'll close out the issue for now. |
Okay thanks for that I will investigate that! |
Issue Description
I have been following this PR here that is supposed to add suport for C# XML comment generation using
///
if the settingeditor.formatOnType
is set totrue
.#4261
I've done this and it appears to not do anything. I've checked for updates on both the C# extension and vscode. See video below for what's happening:
https://drive.google.com/file/d/1j3jZgbR3R0ByN4eHWod35_5JvHL_KTM_/view?usp=sharing
Steps to Reproduce
Install C# extension, set
editor.formatOnType: true
, try to add xml comments to a class using///
.Expected Behavior
The XML comments are generated
Actual Behavior
Nothing happens when you type
///
Logs
OmniSharp log
C# log
Environment information
VSCode version: 1.52.1
C# Extension: 1.23.9
Mono Information
OmniSharp using built-in monoDotnet Information
.NET Core SDK (reflecting any global.json): Version: 3.1.402 Commit: 9b5de826fdRuntime Environment:
OS Name: Mac OS X
OS Version: 10.16
OS Platform: Darwin
RID: osx.10.16-x64
Base Path: /usr/local/share/dotnet/sdk/3.1.402/
Host (useful for support):
Version: 3.1.8
Commit: 9c1330dedd
.NET Core SDKs installed:
2.2.207 [/usr/local/share/dotnet/sdk]
3.1.300 [/usr/local/share/dotnet/sdk]
3.1.402 [/usr/local/share/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.2.8 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.2.8 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.3 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.4 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.8 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.2.8 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.8 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
Visual Studio Code Extensions
The text was updated successfully, but these errors were encountered: