-
Notifications
You must be signed in to change notification settings - Fork 286
Using standardrb as formatter does not work #518
Comments
Please post any logs and verify that you can run standardrb via the same command that gets printed out via the language server logs |
@wingrunr21 I don't see anything on the logs when I run the command |
If you are using the language server it is logging something. The logs are available by clicking the Without additional information there isn't a whole lot I can do to help here. |
Oh yeah thanks for the guidance, I missed that I had to select the
When I try to run that on my terminal It just gets stuck |
No problem. I'm including some additional documentation and helpers in the next release to make this easier on folks. Ok and is standard installed globally or via bundler? I added some documentation this morning on how to verify commands and their functionality. I'm trying to ascertain if this is a configuration issue or if the language server isn't correctly pulling out the |
I tried both with and without bundler and got the same issue. |
|
I just updated to the last the version of With bundler setting enabled:
Disabled:
|
How do you have standard installed? If you execute it on the command line what command works for you? |
I tried installing it via |
If you |
Either of these work:
|
Okay I think I understand the issue now:
These are the supported options:
|
Edit: I was using the command the wrong way, but still, the Sorry for the confusion 😬 |
Ok, so something with |
Is there anything else I could do to help you with this issue? |
Well, it's pretty obvious something is missing from the environment. If it can't find |
I'm using fish shell |
ahhhhhh: |
oooooooh 😅 feel free to close this in favor of that issue then :) |
ok great thanks. That's next on my list to work on so I should hopefully fix this for you soon! Sorry about that! |
Awesome! Thank you! :) |
Fish shell support for the environment detection landed in |
This is still not working for me. I even tried setting it manually:
"ruby.lint": {
"standard": {
"command": "/Users/obahareth/.asdf/shims/standardrb",
"useBundler": false
}
} I still get this message:
|
@wingrunr21 I am not sure if I should make a new issue or if we should reopen this one? Am I doing something wrong with my configuration? |
The only thing that worked for me is to run it from the terminal, providing the full path to the shim only works when I run it from the terminal. It seems like this is the same issue as #816 |
Your environment
vscode-ruby
version:Expected behavior
The file gets formatted using
standardrb --fix
Actual behavior
The whole content of the file it's replaced by:
The text was updated successfully, but these errors were encountered: