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
Write C# LSIF indexer #7760
Comments
Removing it from the 3.13 milestone because I clearly won't be working on it. |
Leaving notes here about maria and i's attempt to use Roslyn's C# LSIF indexer. Context: there is an unpublished module in Roslyn's (the C# compiler) tree for LSIF generation: https://github.com/dotnet/roslyn/tree/master/src/Features/Lsif/Generator. We know from the language tooling summit that Microsoft is using this to upload LSIF indexes to their consumer. Maria and I did an ultimately unsuccessful timeboxed investigation to see if we could get it to run ourselves, noting our learnings here: After much ado, running out of the box seemed generally impossible. using the following command from the project's root
would yield the following error
After asking around on the repo: dotnet/roslyn#50290, I got a tip to change a the TargetFramework in That yielded the following error:
I posted about that in the same thread but got no reply. Future directions for investigation when we allot more time to this:
|
@gbrik I actually tried running that on Windows a few days back and was able to get some result. I was however not able to get it working in the VS Code extension and validating it with lsif-util raised many issues (found both of them mentioned here). |
@tomdegoede thanks for sharing! that also points towards the tool being in a very experimental state. probably not worth revisiting this until Microsoft does more work or we decide to invest in rolling our own. |
Archiving for now, will reopen when we revisit C# support. |
I discussed this with @efritz and @chrismwendt: I'm going to help out the @sourcegraph/code-intel team by trying to write an LSIF indexer.
Spec: https://github.com/microsoft/language-server-protocol/blob/master/indexFormat/specification.md
I'll update this ticket in the future with more information.
The text was updated successfully, but these errors were encountered: