Open Roiskia opened 1 week ago
Hi,
I think I found the root cause. But it would be better if you can share the sample solution that can reproduce the error. If it's not possible, other option would be to clone Roslynator repo open CommandLine.sln, edit commandLineArgs in launchSettings.json, run it in debug mode and see the more details when it fails.
I updated to version 0.9.1.0 and retried the command. I got the same error again. As suggested, i proceeded with cloning the repository and ran roslynator in the debugger.
The issue seems to be an html linebreak tag <br/>
in one of the summary tags to format the content. IntelliSense seems to respect html tags when rendering the tooltip of the symbol inside visual studio. This and other html tags (like unordered lists) are used all over the codebase inside the xml comments. They seem to be there to improve readability. Removing them wont be an option in my case (large proprietary project).
I am well aware that this is a "us" problem. As far as i am concerend this turnd into a feature request rather then a bug.
Would it be possible to make roslynator capable of handling this? I am not sure if there is a good solution for roslynator to handle arbitrary html tags inside the summary elements when their content has to be included inside markup tables. One way might be to omit the summary in the table, if an element is found, that would require a newline (or any other illegal charater) inside the table cell. Or remove any html tags from the source before writing to the table cell. Another option might be to use something else then tables to format the index.md
files.
@Roiskia Could you provide some xml doc comment from you project so I can reproduce it?
I was on the wrong tracks. It seems like the issue are para Tags, not br tags. Here is the simplest example that reproduces the error:
namespace Foo
{
/// <summary>
/// Lorem ipsum dolor sit amet.
/// <para>
/// consetetur sadipscing elitr.
/// </para>
/// </summary>
public class Bar { }
}
I used the
generate-doc
command and recieved anCannot write newline characters in a table cell.
error when the index files get generated.roslynator version: 0.9.0.0
the command:
roslynator generate-doc .\example.sln -o doc/ref --host docusaurus --heading "example" -v diag
It compiles the contained projects and starts to generate the documentation before emitting the following error. Using the host
docusaurus
orgithub
manages to generate severalindex.md
files before the error occures. Using the hostsphinx
failes before saving the firstindex.md
.