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

Solargraph not working after eclipse-update from 2021-09 to 2021-12 #27

Closed
AlBundy33 opened this issue Dec 10, 2021 · 1 comment
Closed

Comments

@AlBundy33
Copy link

AlBundy33 commented Dec 10, 2021

sorry for cross-posting in different projects but i have no idea if this is an solargrah-, plugin- or lsp4e-issue.
I've added a test-description to the plugin-project: PyvesB/eclipse-solargraph#17

Currently I can only say after upgrading eclipse solargraph-completion for additional classes in own files is not working.
Eclipse 2021-09: org.eclipse.lsp4e 0.13.5.202103011336
Eclipse 2021-12: org.eclipse.lsp4e 0.13.8.202111241523

copy&paste from other issue:

to reproduce this issue you can create a new project
with this files
myapi/my_fancy_tool.rb

module Java
	module MyApi
		class MyFancyTool
			def do_something(foo)
			end
		end
	end
end

test.rb

# @type [Java::MyApi::MyFancyTool]
$tool = $tool

$tool.do_something

if you run solargraph typecheck test.rb in the project-folder you'll get

.../test.rb:4 - Not enough arguments to Java::MyApi::MyFancyTool#do_something
1 problem found.

thats right because I've defined do_something(foo)
So solargraph seems to know what type $tool is.

But in eclipse I don't get a completion for $tool. - only for []. or "". and so on

If I copy the contents of my_fancy_tool.rb into test.rb completion for $tool works as expected.

I'm on windows 10 btw.

@mickaelistria
Copy link
Contributor

Please report it to upstream plugin first, and then they may open a detailed issue report to LSP4E if they confirm LSP4E is causing the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants