dev-cycles / contextive

Get on the same page.
https://contextive.tech
MIT License
245 stars 6 forks source link

Context menu not showing in .cs files with Rider #65

Open jacobduijzer opened 6 months ago

jacobduijzer commented 6 months ago

Describe the bug A clear and concise description of what the bug is.

When typing a word, defined in the definitions yaml file, it shows the context name, but no definition, nor a pop-up with details. It works in the definition yaml file itselt, just not in the .cs files.

To Reproduce

  1. Open or create a new project in Rider, add the contextive definition file as described in the 'Getting Started' part.
  2. Open the 'definitions.yml' and hover over any of the definitions, you will see a popup showing the definition.
  3. Create a new .cs file, a class, and type a word from the definition file (e.g.: context). Only the context name will show, no popup or definition will show:

contextive-1

Expected behavior Showing the definition of the word, or showing a popup.

Screenshots

Not working in a c-sharp file: contextive-2

Working in the definition file: contextive-3

Desktop (please complete the following information):

Additional context Some extra logfiles:

idea.txt contextive-filter-log.txt contextive-rider-log.txt

chrissimon-au commented 6 months ago

Reported to JetBrains here - https://youtrack.jetbrains.com/issue/IDEA-349128 - they have confirmed it's an issue.

Updated IntelliJ Plugin README to warn of this issue.

chrissimon-au commented 6 months ago

JetBrains have closed this request without a fix: https://youtrack.jetbrains.com/issue/IDEA-349128

Rider has a complex architecture with two separate processes: ReSharper-based backend and IntelliJ-based frontend. Depending on the file type, code insight features are provided by one of them.

IntelliJ LSP API works in the IntelliJ-based frontend but C# is supported via the ReSharper-based backend. So, LSP-based features can't be added to languages that are natively supported in Rider via the ReSharper-based backend.

I have to close this request without a fix, unfortunately.

I'm investigating alternative approaches, including the use of the ReSharper Plugin to provided dedicated Rider support.

chrissimon-au commented 4 months ago

To clarify the scenario that doesn't work, it's when opening a Visual Studio Solution. When opening in 'folder' mode, Contextive appears to work in all files.