PyvesB / eclipse-solargraph

:gem: Ruby development tools for Eclipse.
https://marketplace.eclipse.org/content/ruby-solargraph
Eclipse Public License 2.0
30 stars 6 forks source link

Can't open js.erb files #33

Closed mrj closed 7 months ago

mrj commented 7 months ago

I get the following error when I try to open a file with a ".js.erb" suffix:

Solargraph Create js erb

PyvesB commented 7 months ago

Hello @mrj 👋🏻

Similar to #32, could you please update to the latest version of the plugin? In particular, there have been sone fixes related to js.erb files. See the changelig here: https://github.com/PyvesB/eclipse-solargraph/releases

mrj commented 7 months ago

Thank you for pointing out that I don't have the latest version. Looks like I'm getting 0.5 rather than 1.02 because 0.5 is the latest on rubygems.org. My Eclipse installed my 0.5, and continues to insist there's no updates, possibly because Marketplace is broken on my install for some reason ("No repository found at https://marketplace.eclipse.org/.").

I'll try to get Eclipse to use 1.02 and report back.

mrj commented 7 months ago

I see now that I had/have the latest Solargraph Gem (0.5) and latest Eclipse Plugin (1.02).

I still get the same error trying to open .js.erb files.

PyvesB commented 7 months ago

Okay, thanks for confirming! Does this happen with every single js.erb file, even simple ones?

mrj commented 7 months ago

Yes, even if the file is empty (e.g. doing new-file in Eclipse).

I tried half a dozen other .*.erb variants, and .js.erb was the only to give the error.

PyvesB commented 7 months ago

Thanks for the information. Something probably broke in recent Eclipse versions, will take a look in the coming days/weeks.

PyvesB commented 7 months ago

Please update to version 1.0.3 of the plugin, the issue with js.erb files should be fixed. 😉

mrj commented 7 months ago

Yes fixed. Thank you.