-
Notifications
You must be signed in to change notification settings - Fork 660
🐛 The Rome check command does not output anything to the console #4784
Comments
What are the values of the Which version of the Rome VS Code extension do you have installed? Hypothesis: Your VS Code extension is using a newer version of Rome (nightly?), but your CLI is using an older version of Rome (12.1.3). |
I will be able to provide you with this information later and most likely you will be right, but we are talking about the version of Rome 2.1.3, which is stable at the moment. In this situation, I provided a screenshot with an error that shows me my VS Code with the Rome extension as proof that there is an error in this file that Rome does not show using it in the console |
We might not be. VS Code could be using a different version of Rome. |
I understand that he could have used a different version, but I gave him only as proof that there is an error in the Header.tsx file, but at the same time the installed Rome 2.1.3 using the pnpm rome check command does not give this error, I'm talking now only about the problem in Rome 2.1.3 and the pnpm rome check command. I'm not saying that at the moment the VS Code extension uses Rome 2.1.3, it's just proof that there is an error in the file and the pnpm rome check command using the Rome 2.1.3 version does not show anything |
I just want the pnpm rome check command to give me the same result that currently shows the Rome extension for VS Code, even if they use different versions of Rome, I want to rely on the stable version of Rome. I can't use the extension in the same WebSorm because it doesn't exist, so let's just solve this problem together. You have already confirmed that this problem has also manifested itself and it does not manifest itself only on the current assembly from the main branch |
In general, if the VS Code extension is using a newer Rome than version 12.1.3, and if you want VS Code's diagnostics to match the CLI's diagnostics, you need to upgrade the Rome CLI to that version which is newer than 12.1.3.
The latest stable version of Rome does have the specific lint rule that I think you're talking about ( {
"$schema": "https://docs.rome.tools/schemas/12.1.3/schema.json",
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"nursery": {
"useLiteralKeys": "warn"
}
}
}
} |
Thank you so much for your help, like everyone else, I will definitely give feedback, but a little later |
Hello @strager, I checked everything that you wrote and it really works as you said, thank you very much for your help, as well as everyone else who tried to help |
Environment information
What happened?
Link to the test repository
pnpm rome check .\src\App.tsx
we have successfully received error informationThe fact that the error is in this file tells us VS Code with the Rome extension installed
Expected result
So that rome check shows Header.tsx diagnostics in this case and not just Apple.tsx
Code of Conduct
The text was updated successfully, but these errors were encountered: