-
Notifications
You must be signed in to change notification settings - Fork 4
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
C# indexing doesn't work properly #62
Comments
Here is scip file: https://drive.google.com/file/d/1rlhiFOg4ZWqMdc7kUxifC3PDDtivGXVG/view?usp=drive_link |
Hello, can you clarify what you mean by
? I ran the indexer on the project you mentioned (thanks for an open source reproducer), and I can see symbols such as this extracted with references and the rest of the information:
The full grammar for reading symbol names is available in the SCIP repository, and the parts you refer to are, specifically:
scheme = scip-dotnet The rest of the symbol refers to the symbol name. Not all indexers fill all the package fields, it depends on the completeness of the implementation and the particular project being indexed |
Thank you for reporting! I was able to index the eshop repo and the index seems to be missing many references to global symbols. Steps to reproduce
In the screenshot below, you can see the missing references When indexing, I did get an error about a missing maui-tizen workload
@rodion-m any idea how to fix that error? |
@rodion-m The symbol_to_find = "scip-dotnet nuget . . OrderAggregate/Order#AddOrderItem()."
for document in index.documents:
for occurrence in document.occurrences:
if occurrence.symbol == symbol_to_find:
pass # TODO |
Thank you for the answer! What about restoring a symbol full namespace? I suppose that the error is about MAUI that should be installed. Here is an installation guide: https://learn.microsoft.com/en-us/dotnet/maui/get-started/installation?tabs=vswin&view=net-maui-8.0 |
Can you elaborate what this means? A symbol has several parts:
If you are referring to the package name/version, scip-dotnet does try to extract it but it may not be working 100% in all cases. We have a test case for this here
The best way to fix issues in this space is to reproduce then with a test case by writing code in the the "input" project like here https://github.com/sourcegraph/scip-dotnet/blob/main/snapshots/input/syntax/Main/Packages.cs |
I've built scip-dotnet from sources, run it on eShop:
It worked for 20 seconds:
And then gave the file that contains only
"scip-dotnet nuget . . ..."
symbols. Like this:What am I doing wrong? I'd like to get all references (usages) for classes and their methods.
The text was updated successfully, but these errors were encountered: