Giter Club home page Giter Club logo

lsifdotnet's People

Contributors

shuli106 avatar tcz717 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

shuli106

lsifdotnet's Issues

Feature request : option to exclude project/class/namespace

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 :)

Feature request Add an option to merge 2 lsif file or happend to an existing one

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.

Directory path instead of file path

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.

NullRef with "global" symbol

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()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.