roslyn-sdk icon indicating copy to clipboard operation
roslyn-sdk copied to clipboard

Component Debugger can fail with "filename or extension is too long"

Open chsienki opened this issue 3 years ago • 2 comments

When using the component debugger, we grab the command line CSC invocation of the target project and start that under the debugger. In certain projects that string overflows the maximum allowed limit for windows command lines, and leads the (confusingly titled) "filename or extension is too long" error.

We should instead put the command line in a response file and pass that instead (either when we know its too long, or just always do it).

chsienki avatar May 28 '21 20:05 chsienki

I think I encountered this bug as explained here https://github.com/dotnet/roslyn-sdk/issues/888

MithrilMan avatar Aug 17 '21 22:08 MithrilMan

I'm pretty sure the original report for this came from me, if this is the same issue then here's the project I couldn't get to work. @davidwengier confirmed he couldn't get it to work either.

https://github.com/xt0rted/heroicons-tag-helper/tree/source-generator-debugging

Once cloned run npm ci and then then try to debug the component.

xt0rted avatar Aug 18 '21 15:08 xt0rted