-
Notifications
You must be signed in to change notification settings - Fork 25
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
"erb-formatter not found by bundler" when using gem install #24
Comments
I'm getting this error in VSCode:
I have it listed in my Gemfile. I have it installed globally on my machine. I added the commandPath to settings.json like described in the comment above. I don't know why I'm getting this error message. It's annoying. For now, I'm just disabling the extension to quiet it. If anybody has a fix for this, please explain. |
Sorry for the delay 🙏 It's not, the way it checks for presence in the Gemfile is by running In your VS Code logs you should be able to see the command that gets actually executed and that should be really helpful in understanding what went wrong: |
I'm getting the same error too. When I run "bundle show erb-formatter" I get |
Same error :( Is there a fix for this? VS Code output shows this failed command: |
Oh I understand now: the formatter was just erroring because of incorrect tags. Is there a way to have VS Code highlight these issues in the editor? |
+1 to this issue. great gem when it was working. |
I have had to add something like: "terminal.integrated.profiles.osx": {
"zsh": {
"path": "/bin/zsh",
"args": [
"-l",
"-i"
]
}
}, to my User settings to have same setup as in my normal terminal. |
I would very much be in favor of highlighting stuff in the editor, I'll give it a crack but if anyone wants to jump in I'd be very happy to collaborate/merge 🙌 https://github.com/nebulab/erb-formatter-vscode |
The extension is simply using |
For those encountering this error but not understanding the 'incorrect tags' comment. This error can come up when there's an exception by ERB formatter when trying to format - say a missing |
The readme says we should be able to use this extension with
gem install erb-formatter
. I've done that andwhich erb-format
works, but the extension seems unable to find it unless it's in the Gemfile. I've also tried adding this to my settings.json:Is the gem check only looking in the Gemfile?
The text was updated successfully, but these errors were encountered: