Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

ruby.reloadProject command not found if intellisense provider is not rubyLocate #301

Closed
jiparis opened this issue Mar 14, 2018 · 3 comments
Labels

Comments

@jiparis
Copy link

jiparis commented Mar 14, 2018

Your environment

  • vscode-ruby version: 0.17.0
  • Ruby version: 2.3.1
  • VS Code version: 1.21.0
  • Operating System: macOS 10.12.6
  • Hardware (optional):

Make sure you have ruby, ruby-debug-ide and ruby-debug-basex19 installed before submitting your issue -- thank you !

Expected behavior

After executing the command "Ruby: Reload Project", it should show "Indexing Ruby source files" message in the status bar.

Actual behavior

A message pops up with "ruby.reloadProject command not found" message.

Steps to reproduce the problem

Change intellisense provider (ruby.intellisense preference) to "solargraph". Try to execute command "Ruby: Reload Project" and it will fail. Also "Goto definition" and "Peek definition" won't work.

I guess that the problem is that the command registration is being skipped here https://github.com/rubyide/vscode-ruby/blob/master/src/ruby.ts#L32 if the provider is different than rubyLocate.
Maybe the solution would be not allowing to execute that command at all, and relying on the Solargraph extension for intellisense.

@castwide
Copy link
Contributor

The ruby.reloadProject command would not have an effect on solargraph's language providers. Maybe it would make sense to display a message indicating that rubyLocate is disabled?

If you need to reload solargraph's code maps, the equivalent command is solargraph.restart.

As for problems with definitions not working, there's a related issue being tracked at castwide/vscode-solargraph#32. Please feel free to open a new issue if you suspect that the root cause of your problem is something else.

@castwide
Copy link
Contributor

#309

@github-actions
Copy link

This issue has not had activity for 30 days. It will be automatically closed in 7 days.

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

No branches or pull requests

2 participants