tcz717 / lsifdotnet Goto Github PK
View Code? Open in Web Editor NEWLanguage Server Indexing Format (LSIF) generator for .net
License: Apache License 2.0
Language Server Indexing Format (LSIF) generator for .net
License: Apache License 2.0
Hi again. I'm running into new issue. The generation of lsif file is ok now but I hit a size limit with gitlab. I know it's a setting but it will not be changed.
So I'm wondering if it could be possible to exclude some file/class/project/assembly to better control what is exported, and in a way, the size of the exported file to be under the threshold.
If you need idea, I like the way it's handle in ReportGenerator
Have a nice day :)
I try to test the gitlab code intelligence feature. But have trouble to make it work with more than one lsif file.
I tried to just concat both into a new one, but I think it will not work both file use overlapping ids. (For context the other one come from docker image sourcegraph/lsif-node for react project)
Maybe I could use jq to re-index all id. But seem a little bit brutal.
Hello, It's me again. In the latest commit you introduce the method ToAbsoluteUri
.
Is it on purpose to trim the file name and only keep the directory? From what I read the vertex uri should target the file instead of the directory.
From the spec:
a vertex needs to be emitted before it can be referenced in an edge.
We discovered lsif-dotnet violates this constraint in its output, which caused LSIF files to be rejected by Sourcegraph
A null ref exception is throw when hitting this line if (VisitedSymbols.TryGetValue(symbol, out var cachedSymbolResult))
in LsifIndexr.cs. The symbol name is global
and is in the generated file obj\Debug\net6.0\.NETCoreApp,Version=v6.0.AssemblyAttributes.cs
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")]
Unhandled exception: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.CodeAnalysis.CSharp.Symbols.AliasSymbol.Equals(Symbol obj, TypeCompareKind compareKind)
at System.Collections.Generic.Dictionary`2.FindValue(TKey key)
at LsifDotnet.Lsif.LsifIndexer.EmitLsif()+MoveNext() in /home/runner/work/LsifDotnet/LsifDotnet/LsifDotnet/Lsif/LsifIndexer.cs:line 0
at LsifDotnet.Lsif.LsifIndexer.EmitLsif()+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult() at LsifDotnet.Program.SaveLsifDump(IAsyncEnumerable`1 items, String dumpPath) in /home/runner/work/LsifDotnet/LsifDotnet/LsifDotnet/Program.cs:line 112
at LsifDotnet.Program.SaveLsifDump(IAsyncEnumerable`1 items, String dumpPath) in /home/runner/work/LsifDotnet/LsifDotnet/LsifDotnet/Program.cs:line 112
at LsifDotnet.Program.SaveLsifDump(IAsyncEnumerable`1 items, String dumpPath) in /home/runner/work/LsifDotnet/LsifDotnet/LsifDotnet/Program.cs:line 112
at LsifDotnet.Program.<>c.<<BuildCommandLine>b__1_0>d.MoveNext() in /home/runner/work/LsifDotnet/LsifDotnet/LsifDotnet/Program.cs:line 63
--- End of stack trace from previous location ---
at System.CommandLine.NamingConventionBinder.CommandHandler.GetExitCodeAsync(Object returnValue, InvocationContext context)
at System.CommandLine.NamingConventionBinder.ModelBindingCommandHandler.InvokeAsync(InvocationContext context)
at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<<UseParseErrorReporting>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Hosting.HostingExtensions.<>c__DisplayClass1_0.<<UseHost>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass15_0.<<UseHelp>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass26_0.<<UseVersionOption>b__0>d.MoveNext()--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass24_0.<<UseTypoCorrections>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b__23_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass21_0.<<UseParseDirective>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseDebugDirective>b__8_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<RegisterWithDotnetSuggest>b__7_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass11_0.<<UseExceptionHandler>b__0>d.MoveNext()
Add support for fetching Nuget package information to generate Moniker dump
https://docs.sourcegraph.com/code_intelligence/explanations/writing_an_indexer#monikers
https://docs.microsoft.com/zh-cn/nuget/reference/nuget-client-sdk
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.