Closed edgenard closed 1 year ago
Are you opening your project as a folder with a Gemfile in the root directory? When you open the VS Code terminal and run bundle exec standardrb
, does it run without changing directories?
Are you opening your project as a folder with a Gemfile in the root directory? When you open the VS Code terminal and run
bundle exec standardrb
, does it run without changing directories?
When I run bundle exec standardrb
in the VScode terminal it runs fine without changing directories
I open the project with a Gemfile in the root directory with gem "standard"
as one of the gems
OK. Without more information or the ability to reproduce, I won't likely be able to make headway helping you here. Is it possible the context your VS Code is launching in is different from your terminal? For example, if your terminal shell is running a version manager like rvm but you're opening VS Code by double-clicking an app icon, it's possible that they'll be seeing different Rubies. Are you launching VS Code from a terminal with code .
?
I apologize for disappearing on this. I noticed that this happens when VSCode updates and restarts itself. When I start VSCode from the terminal this error does not happen. I think you're hunch was right, something about starting VSCode through the app launcher is causing it to see a different Ruby.
The fix/workaround is to close VSCode and restart it from the terminal
I keep getting this error in VSCode
I've run
bundle install
several times and still the same thing.I've tried uninstalling and reinstalling the extension
I'm really not sure what to do. My app runs fine so I think the gems are all installed.