Skip to content
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# contextual queries (find definitions and references) are not working #4351

Closed
aeisenberg opened this issue Sep 25, 2020 · 4 comments
Closed
Labels
bug Something isn't working C#

Comments

@aeisenberg
Copy link
Contributor

I'm using this project in the VS Code extension: https://lgtm.com/projects/g/JetBrains/resharper-cyclomatic-complexity

To reproduce:

  1. Download the database above into VS Code
  2. Open this file: src/opt/src/src/dotnet/ReSharperPlugin.CyclomaticComplexity/ComplexityAnalysisElementProblemAnalyzer.cs
  3. Select the definition _provider, right click -> Go To References
  4. BUG

Expected: references are found on lines 48 and 98.
Actual: no references found

Similarly, find Definition is not working:

  1. Select either of the references of _provider
  2. Right click -> Go To Definition
  3. BUG

Expected: Caret is navigated to the definition
Actual: no definition found

@aeisenberg aeisenberg added bug Something isn't working C# labels Sep 25, 2020
@aeisenberg
Copy link
Contributor Author

To be clear, I have tried multiple other locations, and I could not get find defs/refs to work for any of them in C#.

@hvitved
Copy link
Contributor

hvitved commented Sep 27, 2020

This must be a bug in the VSCode specific query, as it works fine on LGTM: If I click on _provider here it works fine.

@aeisenberg
Copy link
Contributor Author

Thanks for looking at this. Let me see what's happening.

@aeisenberg
Copy link
Contributor Author

Ah...yes. This is an error on the VSCode end. It looks like it is not properly handling LGTM databases whose sources are unzipped. The fully qualified name it is retrieving is incorrect. Thanks for investigating. I'll close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working C#
Projects
None yet
Development

No branches or pull requests

2 participants