jemmyw / vscode-rails-fast-nav

vscode extension for navigating Ruby on Rails projects
https://marketplace.visualstudio.com/items?itemName=jemmyw.rails-fast-nav
MIT License
41 stars 12 forks source link

Unable to set appDir #4

Closed sanjibukai closed 5 years ago

sanjibukai commented 5 years ago

Hi, I'm also experiencing the following error command 'rails.fastNavigation' not found However, I tryed your extension since it seemed to manage the root app directory with the appDir option. But I am unable to get your extension working (as all the others).. My directory structure is still a regular one. I just have a parent folder open, something like that:

my_project/
   + tools/
   + rails_app/
       + app/
       + config/
       + db/
   ...

So I open VS Code with that top folder, I'm running in the terminal code my_project

I tryed many combinaison of the option, eg. "rails.appDir": "rails_app/app", my_project/rails_app/app (in fact all the combination with and without the parent and the app folder). I tried with folder setting, workspace setting and even user setting...

I wonder why, all other plugins do not work too and even do not have the option at all..

jemmyw commented 5 years ago

Hi @sanjibukai, thanks for the report. This should be fixed in the latest version, 1.2.1.

I don't believe you even need to set rails.appDir any more, the presence of rails is detected using **/bin/rails and the specific rails project per file is found by recursing up the dir tree.

Cheers, Jeremy

sanjibukai commented 5 years ago

Indeed it works now! Thank you! I'm used to not be bothered with some basic configuration things and just getting things just working with convention over configuration stuffs...

devaayushraj commented 2 years ago

I am getting the same error, please help.

image