aliariff/vscode-erb-beautify

Saving on no changes file appear a line of text

Kyokatarz opened this issue · 8 comments

If I save and format on a .erb file with no changes, the following text is appended on top of the file:

Screenshot 2022-01-04 at 13 43 46

Hi @Kyokatarz

Could you give more information from the log.
You can open the developer console from Help -> Toggle Developer Tools
And while opening the console, try to format your documents, and see what is the output from the console.

it should be something like this or similar:
image

Looks the message is coming from bundler and I assume you are using bundler in this case.

have you check rubygems/bundler#6028?
and which bundler version are you using? Are you setting bundler in verbose mode?

Close this as no further feedback, assume it is already resolved due to local configuration issue.
Please reopen in case still necessary.

I have the same problem and I can't reproduce it in my terminal and the console looks like what you posted above @aliariff. I'm struggling to find anything in the linked issue above since I don't have any sort of "verbose" mode configuration enabled that I can find.

It's worth noting if I install the gem in my Gemfile of the current project, it works fine. If I try and use htmlbeautifier that is installed globally for rvm using rvm @global do gem install htmlbeautifier, that causes this issue.

Hi @jclusso

Interesting find, unfortunately since last time, I can't really reproduce this issue on my local machine.
For the workaround you mentioned, does it sufficient for you, or its not possible to install the gem on the current project?

@aliariff it's not ideal to install the gem on every project, especially since this is a depency that is not required for the project or any other developers that may or may not use it. How have you installed the gem?

@jclusso I installed it globally, and no issue as mentioned here.

@aliariff rvm? I installed it using rvm @global do gem install htmlbeautifier.