KronicDeth / intellij-elixir

Elixir plugin for JetBrain's IntelliJ Platform (including Rubymine)
Other
1.82k stars 153 forks source link

Syntax highlighting doesn't work with IntelliJ Remote Development #3488

Open smocherla-brex opened 8 months ago

smocherla-brex commented 8 months ago

Describe the bug Some features of the Elixir plugin do not work with IntelliJ Remote Development.

One of the features that doesn't work is syntax highlighting.

As you can see, there's no syntax highlighting here. However if I try to use the "Go to" option, it does work and navigate to the file where the module/aliases are defined.

To Reproduce Steps to reproduce the behavior:

  1. Use IntelliJ 2023.2 Ultimate IDE with remote development
  2. Open any elixir project, with elixir plugin installed (16.0.0) as a "Host" plugin.
  3. Check for syntax highlighting

Expected behavior The symbols should be colored/highlighted appropriately in the file, like in the local IntelliJ

Screenshots

image

Logs If reporting a hang or other performance issue, please attach the thread dumps.

There don't seem to be any plugin specific logs either on the client side or server side. Checked thread dumps but no sign of anything elixir plugin related.

Desktop:

Erlang:

Elixir:

Plugin:

Additional context I'm not quite sure if this plugin is fully supported with remote development as of yet, and any clarification is appreciated. Many of the other community plugins do work as host plugins.

This issues also happens with Remote Development with IntelliJ 2023.1.5 and Elixir Plugin 15.x versions.

KronicDeth commented 8 months ago

I've never specifically added support for Remote Development. All I can think of is that a lot of the syntax highlighting in the plugin is annotations and not lexer syntax because the Elixir syntax doesn't know that def and defmacro are special. All the kernel and type stuff is annotations. Maybe annotations work differently remotely.