You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No documentation for C# Compiler warning CS8622 #23032
It's still a real issue, but we may want to solve it in a different way.
I'm becoming more convinced that a single page for each warning is a bad experience. The introduction of warning waves provides one possible roadmap to a different plan. It's not fully flushed out, and there are higher priority tasks that need to be done first.
In the meantime, any ideas on how to better organize all the information we should provide on compiler errors and warnings would be welcom.
What aspects of page-per-warning make it a bad experience?
The TOC is unwieldy. In addition, it's hard to find related warnings. This will be more important as warning waves are used more often. The titles are the warning, which makes them hard to find on any other search term.
@Youssef1313 The only problem I could see about grouping them in one page (I am saying that without knowing fully the backend of how this works but just my brainstormed ideas from a surface level knowledge of the docs implementation) is that
A. It could become convoluted to find a single error on the page depending on how many there are on a page and grouping multiple error/warnings together I assume would be a large undertaking, and
B. in #14691@BillWagner mentions to connect visual studio to the warning/error pages "Visual Studio sends the token, without any directory information. The token processing service will find the correct article in any folder." so depending on how this service works, it could potentially mess that up as well (once again I know nothing about how the backend of this service actually works), for example if it designed for single pages and not anchors in a larger page and if setting tokens to this is difficult.
designed for single pages and not sublinks to a larger page
It is in fact designed for single pages, as the connection is made by putting the warning # in metadata at the top of the page. However, we could put each "warning wave" in a single doc with each warning # in an H2, For any given warning VS would go to the wave doc, and you'd manually select the one you want from the internal TOC. That would make it convenient to browse all the warnings in a warning wave while still being reasonably convenient to go directly to the one you want. And you'd only need one external TOC entry per wave.
In the meantime, the original issue gets lost in your conversation on how to respond.
Using Net 5.0 Lets relook at this. When adding a control (Button) to a Form, after double clicking on it to generate code in the associated design .cs file. VS 2022 is generating code that causes this error. Then no explanation of the error is available. I would like to open this issue and get it resolved.
designed for single pages and not sublinks to a larger page
and you'd manually select the one you want from the internal TOC.
This would be a huge downgrade of the functionality in my opinion. It's not helping items don't exist, but when items do exist having to find them on a large page with a long TOC is not going to make things easier, it's going to make them more difficult.
Why not have it that it automatically selects and scrolls to the correct one without me having to meddle with manual searching.
You can still display the TOC in a "left column" showing all the errors in the group, so i can still browse others, although i completely fail to see the point. I have error X, so i want all the information about that error, i don't really care about other errors because i'm not having them, so i don't need to see them, even if they are thematically related.
You make many good points. One reason we haven't made progress here is that we are still considering different options to present the content. We share the same goals: a developer should be able to use the error / warning code to find the answer to fix that issue. They shouldn't have to search, and then use more navigation techniques to find the answer.
The original F1 service is not designed for this kind of usage, so currently we don't support to specific headings in F1 service.
You can talk with our PM @kexugit to file a requirement for that.
Add @yishengjin1413 to this thread who is the new owner of F1 service.
Actually I think there is no need for changes in F1 service. Roslyn can append the #heading to the F1 service URL and it seems like F1 will append it in the redirected URL correctly. For example, see https://msdn.microsoft.com/query/roslyn.query?appId=roslyn&k=k(await_CSharpKeyword)#await-operator-in-the-main-method works perfectly.
This will require the headings to be "exactly" the error code.
Activity
Youssef1313 commentedon Feb 27, 2021
Was the other issue closed by error @tdykstra ?
tdykstra commentedon Feb 28, 2021
Apparently so. I think the closure may have been with intent to consolidate compiler error messages into one issue but I can't find such an issue now.
BillWagner commentedon Mar 1, 2021
Issue #2363 tracked this project.
It's still a real issue, but we may want to solve it in a different way.
I'm becoming more convinced that a single page for each warning is a bad experience. The introduction of warning waves provides one possible roadmap to a different plan. It's not fully flushed out, and there are higher priority tasks that need to be done first.
In the meantime, any ideas on how to better organize all the information we should provide on compiler errors and warnings would be welcom.
tdykstra commentedon Mar 3, 2021
What aspects of page-per-warning make it a bad experience?
BillWagner commentedon Mar 3, 2021
The TOC is unwieldy. In addition, it's hard to find related warnings. This will be more important as warning waves are used more often. The titles are the warning, which makes them hard to find on any other search term.
Youssef1313 commentedon Mar 3, 2021
@BillWagner So should we group multiple errors/warnings together in the same page?
For example, nullable warnings in only one page, etc?
The challenge here is to actually find a suitable groupings.
BenjaminMichaelis commentedon Mar 3, 2021
@Youssef1313 The only problem I could see about grouping them in one page (I am saying that without knowing fully the backend of how this works but just my brainstormed ideas from a surface level knowledge of the docs implementation) is that
A. It could become convoluted to find a single error on the page depending on how many there are on a page and grouping multiple error/warnings together I assume would be a large undertaking, and
B. in #14691 @BillWagner mentions to connect visual studio to the warning/error pages "Visual Studio sends the token, without any directory information. The token processing service will find the correct article in any folder." so depending on how this service works, it could potentially mess that up as well (once again I know nothing about how the backend of this service actually works), for example if it designed for single pages and not anchors in a larger page and if setting tokens to this is difficult.
tdykstra commentedon Mar 4, 2021
It is in fact designed for single pages, as the connection is made by putting the warning # in metadata at the top of the page. However, we could put each "warning wave" in a single doc with each warning # in an H2, For any given warning VS would go to the wave doc, and you'd manually select the one you want from the internal TOC. That would make it convenient to browse all the warnings in a warning wave while still being reasonably convenient to go directly to the one you want. And you'd only need one external TOC entry per wave.
AndrewDavid007 commentedon Sep 18, 2021
In the meantime, the original issue gets lost in your conversation on how to respond.
Using Net 5.0 Lets relook at this. When adding a control (Button) to a Form, after double clicking on it to generate code in the associated design .cs file. VS 2022 is generating code that causes this error. Then no explanation of the error is available. I would like to open this issue and get it resolved.
MarcoCaspers commentedon Sep 27, 2021
This would be a huge downgrade of the functionality in my opinion. It's not helping items don't exist, but when items do exist having to find them on a large page with a long TOC is not going to make things easier, it's going to make them more difficult.
Why not have it that it automatically selects and scrolls to the correct one without me having to meddle with manual searching.
You can still display the TOC in a "left column" showing all the errors in the group, so i can still browse others, although i completely fail to see the point. I have error X, so i want all the information about that error, i don't really care about other errors because i'm not having them, so i don't need to see them, even if they are thematically related.
Youssef1313 commentedon Sep 27, 2021
@OsmondJiang Is it possible for F1 links to go to a specific heading in a page? e.g:
BillWagner commentedon Sep 27, 2021
@NMJCaspers
You make many good points. One reason we haven't made progress here is that we are still considering different options to present the content. We share the same goals: a developer should be able to use the error / warning code to find the answer to fix that issue. They shouldn't have to search, and then use more navigation techniques to find the answer.
OsmondJiang commentedon Sep 28, 2021
@Youssef1313 @BillWagner
The original F1 service is not designed for this kind of usage, so currently we don't support to specific headings in F1 service.
You can talk with our PM @kexugit to file a requirement for that.
Add @yishengjin1413 to this thread who is the new owner of F1 service.
Youssef1313 commentedon Sep 28, 2021
Actually I think there is no need for changes in F1 service. Roslyn can append the
#headingto the F1 service URL and it seems like F1 will append it in the redirected URL correctly. For example, seehttps://msdn.microsoft.com/query/roslyn.query?appId=roslyn&k=k(await_CSharpKeyword)#await-operator-in-the-main-methodworks perfectly.This will require the headings to be "exactly" the error code.
It should be a simple change in Roslyn:
https://github.com/dotnet/roslyn/blob/6884d36627795f1e00303bf4a068dd7998667bd9/src/Compilers/CSharp/Portable/Errors/ErrorFacts.cs#L163
What we'd probably need is some guarantee that the current behavior in F1 service doesn't regress. Thoughts @BillWagner @tdykstra ?
BillWagner commentedon Dec 8, 2021
related to #24002
BillWagner commentedon Jul 18, 2022
Fixed in #30045