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

Cannot delete / fix an incorrect Checkstyle link to checkstyle.xml file. #157

Closed
leerho opened this issue May 13, 2024 · 4 comments
Closed

Comments

@leerho
Copy link

leerho commented May 13, 2024

Configuration

Using Eclipse IDE for Java 2024-03 (4.31.0) Build id: 20240307-1437

  • A brand new installation in a brand new workspace
  • I only installed the Checkstyle plugin: 10.14.2.202403262245 net.sf.eclipsecs.feature.group
  • Imported only one existing java/maven root project with 2 sub-projects

Running on Apple MacBook Pro, Apple M1 Pro chip, macOS Sonoma 14.4.1

Description / Steps to Reproduce

I accidentally inserted an incorrect location for a checkstyle.xml file, which I discovered later.
But now I cannot delete it or fix it.

Steps to Reproduce:

  • Right-click on project, select Properties / Checkstyle
    • The "Location" box at the top has a red X (of course) with the incorrect location listed
  • Select "Local Check Configurations"
  • Select the bad "Check Configuration" / Remove
  • First I get a Confirm Delete pop-up, click "Yes"
  • Then I get this error message:

The Check Configuration "<file name>" is currently in use by a project.
It must be removed from all project configurations before it can be deleted.

This puts me in an endless loop. I have tried deactivating checkstyle in two projects (the only two), to no avail. I have unclicked the box "Checkstyle active for this project". Nothing I do allows me to correct the entry. I guess I am forced to uninstall the Checkstyle plugin and reinstall it.

@merks
Copy link
Contributor

merks commented May 13, 2024

What makes you think this a generic eclipse problem rather than specifically a problem with checkstyle?

I recommend you report the problem here

https://github.com/checkstyle/eclipse-cs/issues

The developers of that cool project will know better if there is a problem they can fix or it there is some problem in some eclipse framework that needs to be fixed.

The packaging project literally just packages content provided by other projects so we definitely cannot fix it here.

It would be helpful if you posted a link here to the issue you create.

@merks merks closed this as not planned Won't fix, can't repro, duplicate, stale May 13, 2024
@leerho
Copy link
Author

leerho commented May 13, 2024

What makes you think this a generic eclipse problem rather than specifically a problem with checkstyle?

  • I searched online to where to report Eclipse bugs and it brought me here. If I search for Checkstyle bugs it will send me to the GitHub.com/checkstyle site, which isn't correct either.
  • I am a very long-time user of Eclipse. Yet, I have no way of knowing what menus are designed by Eclipse or a 3rd party, such as Checkstyle, nor is it easy to figure out. Even 3rd party plugins designed for Eclipse must design their plugins subject to design and logic rules dictated by Eclipse.
  • Only Eclipse insiders know this kind of information. Why would you assume that an Eclipse user would know this?

Nonetheless, thank you for pointing me to the proper place to report this issue. I will do that and place a link here.

@merks
Copy link
Contributor

merks commented May 13, 2024

It’s a HUGE challenge to figure out where to report a problem so reporting here is really okay. If have good tricks for finding right places. 😄

@leerho
Copy link
Author

leerho commented May 14, 2024

See checkstyle/eclipse-cs#700

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

2 participants