Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkstyle formatting stopped working #600

Open
shubhamgoyal297 opened this issue Dec 10, 2022 · 7 comments
Open

Checkstyle formatting stopped working #600

shubhamgoyal297 opened this issue Dec 10, 2022 · 7 comments

Comments

@shubhamgoyal297
Copy link

I've been using the plugin for more than 3 weeks. It was working fine. Due to some problems, I needed to set the code base up again. With same version of IntelliJ and same everything, just different project, it stopped working. Now reformatting does nothing. Any suggestions?

@shubhamgoyal297
Copy link
Author

Not only formatting. It is not even reporting issues when analyzed. Some how the rules are not getting picked by the plugin. Is there a way to debug the issue like by connecting my codebase directly with the code underlying for plugin. (New to this world).

@jshiell
Copy link
Owner

jshiell commented Dec 12, 2022

What does work?
Does the toolwindow appear?
Do any rules get checked when you run a scan manually? Automatically?
What rules file is in use? Bundled, or a custom one?
What version of IDEA/the plugin/Checkstyle are installed?
Most of the config is project-specific, so have you duplicated the configuration in the new project?

For a full debug, the easiest way is to use the Gradle target in this project to run up a debug version of IDEA, but it's probably overkill at this stage.

On the formatting front, the formatting part of the plugin is essentially standalone. From memory once you've imported the format from the rules file then the plugin has no further interaction - it's all on IDEA's side. So I'd suggest focusing on the scanning first, as an easy indication of whether the plugin is working or not.

@oers
Copy link

oers commented Feb 22, 2023

I have the same Issue:
2022.1.4 (Ultimate)
Plugin version: 5.76.0
Checkstyle Version 8.41.1

Manual Scan works:
grafik
But nothin is displayed in the editor.
I checked several checkstyle/inspections settings but nothing changed.

@jshiell
Copy link
Owner

jshiell commented Mar 12, 2023

Another similar report from Grant Thomas via email:

We are using your plugin with Android Studio for an app development project.

The issue we are seeing is that the Checkstyle inspection warnings (red squiggle lines and code highlighting) are not showing up. I can run a manual scan on a file using the toolbar at the bottom and see all the expected warning for the page, but the same warnings are not being highlighted in the code.

I can confirm that the Checkstyle real-time scan option is checked in the settings menu.

We had installed this plugin earlier and it had been working great for some time, but it has not been working for about a month or so.

For the record, not something I've managed to reproduce yet, but it seems multiple people are hitting this. On my backlog, but it's not even going to get investigated for at least another couple of weeks due to work demands.

@wafl22
Copy link

wafl22 commented Mar 22, 2023

I'm having the same problem. I'm running Intellij 2022.2 but I'm regularly updating the Checkstyle plugin to the latest version.
My Checkstyle configuration:

  • Checkstyle version 8.5
  • Treat CS errors as warnings
  • Set my Configuration as active
  • my CS file is located on a common network share
  • Enabled Inspection "Checkstyle real-time scan"

As described above, the Checkstyle Tab is working, but the real-time scan in an open file is not.
Can I further debug this issue/ where are logs located?
I would really need this feature!
Thanks!

@fd-sturniolo
Copy link

I'm having the same problem.

Checkstyle-IDEA: 5.83.0
Checkstyle version: 10.12.3

@jshiell
Copy link
Owner

jshiell commented Oct 22, 2023

Thanks for the continued reports - it's helpful to know it's still an issue, although I've been unable to reproduce it as yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants