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

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

Open
jacobduijzer opened this issue Mar 12, 2024 · 3 comments
Open

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

jacobduijzer opened this issue Mar 12, 2024 · 3 comments
Labels
bug Something isn't working JetBrainsRider

Comments

@jacobduijzer
Copy link

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

  • OS: Arch Linux ( + i3wm)
  • IDE: JetBrains Rider 2023.3.3

Additional context
Some extra logfiles:

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

@chrissimon-au
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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.

@chrissimon-au chrissimon-au added bug Something isn't working JetBrainsRider labels Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working JetBrainsRider
Projects
None yet
Development

No branches or pull requests

2 participants