Hacker News new | past | comments | ask | show | jobs | submit login

Also check out free open source alternative RoslynPad. https://roslynpad.net/



The only reason I would use something like LINQPad is for the syntax tree and semantic analysis support, for compiler extensions. With a name like RoslynPad, seems funny that such a feature would be missing from that "alternative"


If you'd like to explore syntax tree and related IOperations, there is a VS Code extension https://marketplace.visualstudio.com/items?itemName=333fred.... which lets you do just that, it has been very handy for writing source generators.

(though I end up disabling it to reduce extra pressure on language server when it's unneeded)


Again, only on Windows.


I suppose my ARM-based Mac comes with weird Windows that looks like macOS!


Sorry, you're right, I was using mobile at the time of the reply and thought that was the VS (non code) extension. I'll give it a try.


Interestingly I tried this on my Dell ubuntu laptop and it doesn't work. May have to try and figure out why at some point.


Try pre-release version, also needs newer Roslyn version so the SDK needs to be updated too. OS here doesn’t matter.


Pretty sure I'm on latest 8 SDK, but did not try pre release of the the addin so that could be it.


It uses a new Roslyn API to dump SyntaxTree and IOperation's starting at a specific span of source code IIRC, and it shipped in one of the minor version after .NET 8.0.0 release, it took me a bit to get it working upon its release but by this time you should have the necessary SDK, though the relevant extension version may still be marked as pre-release hence my suggestion.


I messed with it a little more before going to bed. The prerelease version changed the error and at least felt like it was closer. But I also found there was a new SDK release in the last few days that I have not upgraded yet.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: