Closed ubmit closed 3 years ago
Same here!
Same here…and in fact another project where it had been working for quite some time is now not formatting anything at all after upgrading to latest Solargraph version. Just silently fails to do anything at all. 😕
For the time being, I've turned off SolarGraph's formatter and I'm using the File Watcher extension to run RuboCop after save. FWIW, here's my settings.json:
"filewatcher.commands": [
{
"match": "\\.rb",
"isAsync": true,
"cmd": "/bin/zsh --login -c \"cd ${fileDirname}; rubocop --force-exclusion -a ${file}\"",
"event": "onFileChange"
}
]
This problem should be fixed in gem version 0.40.3. If the problem persists, please reply in the related issue in the gem repo: https://github.com/castwide/solargraph/issues/406
Solargraph formatting doesn't follow the project's
.rubocop.yml
file.Here is my
.solargraph.yml
file:And here is a part of
settings.json
:Example file:
Even though
.rubocop.yml
contains the following cop:Solargraph won't format the
'meow!'
to"meow"!
. This is just an example, the same thing happens with others cops.Also, somehow, if I do write the class like this:
The Solargraph formatter will "work" and replace the double quotes for single quotes.