Closed lgarron closed 2 years ago
How do you format your code? Do you have the format on save option enabled?
How do you format your code? Do you have the format on save option enabled?
The same issue happens for all of the following invocations:
"editor.formatOnPaste"
, "editor.formatOnSave"
, and "editor.formatOnType"
all set to false
"rome.rome"
set as the default TS formattereditor.formatOnSave
+ save file
"rome.rome"
set as the default TS formatterI can't seem to reproduce it :(
I might try to add some more logging, maybe that would help to understand what's going on.
I can't seem to reproduce it :(
Yeah, unfortunately, I still have this issue consistently, on two different macOS devices. :-/
I've tried using a blank settings.json
for VSCode, and that doesn't seem to make a difference either.
Happy to try it with any debug logging you see fit!
Okay, I'm still able to reproduce this in the most minimal macOS environment I can:
/bin/zsh
), no shell initialization or customization, no custom env varsrome.rome
extension installed in VSCode, but no other extensionsgit clone https://github.com/cubing/cubing.js && cd cubing.js
git checkout rome-again
npm install
code .
src/cubing/twisty/views/TwistyPlayer.ts
Observed: Rome format using tabs.
Expected: Rome formats using spaces, per rome.json
in the checkout.
Is it possible that the this is an issue on all macOS installations?
I identified the issues and a PR should be ready soon. The issue is caused by the language client, that is setting up the base path differently than expected.
I identified the issues and a PR should be ready soon. The issue is caused by the language client, that is setting up the base path differently than expected.
Thanks for the fix! π Any chance I could ask for a patch release so that I can start using the extension? π
I identified the issues and a PR should be ready soon. The issue is caused by the language client, that is setting up the base path differently than expected.
Thanks for the fix! π Any chance I could ask for a patch release so that I can start using the extension? π
We're preparing for a release, which will be next week :)
I was glad to try the new release! I'm sorry to say that it doesn't seem to be any better at using rome.json
. It managed to do so initially, but now I can't get it to do so at all. π
This is using stable VSCode with no rome.lspBin
config.
Okay, I figured it out, my rome.json
format was no longer valid for the latest LSP.
Is it possible there was a regression for this? I've had issues again for the last few weeks, and I can't figure out how to fix it.
Is it possible there was a regression for this? I've had issues again for the last few weeks, and I can't figure out how to fix it.
From last week? (latest release) Feel free to open a new issue.
From last week? (latest release) Feel free to open a new issue.
It looks like this is because the rome.json
format changed again, and the extension doesn't provide any indication that it silently upgraded to an incompatible syntax.
https://github.com/rome/tools/discussions/3218 would be the best permanent approach I can see.
Environment information
What happened?
rome.json
in the root of the project (same folder aspackage.json
).npx rome format
works.Example config:
Sometimes, the extension uses
rome.json
successfully for formatting (in this case, format using spaces). But most of the time for me, it just seems to act as ifrome.json
doesn't exist, and formats using the defaults (in this case, format using tabs).Expected result
The extension always uses
rome.json
.Apologies for such a vague issue. I'd be happy to debug if I could have some hints to figure out where to look.
Code of Conduct