Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Checkstyle for external configuration file in Eclipse Juno

Tags:

java

eclipse

When building the java project, I'm encountering an error while building the project itself.

"cannot initialize module TreeWalker - Unable to instantiate DoubleCheckLocking"

enter image description here

I tried the solution mentioned in the question below - Checkstyle Eclipse plugin doesn't work

But in my case the configuration options are read only!

enter image description here

I'm using eclipse Juno - Version: Juno Service Release 2 Build id: 20130225-0426

How make these options editable in case of using an external configuration file?

like image 578
ishkee Avatar asked Nov 25 '13 23:11

ishkee


Video Answer


1 Answers

The Eclipse-Checkstyle integration plugin documentation does mention

External configurations can by default be edited if the configuration file is writable.

http://eclipse-cs.sourceforge.net/images/new_external_config.jpg

If you have a carefully crafted configuration file (with nice comments and all that) - which you don't want to "destroy" accidentally by using the configuration editor - you can use the Protect Checkstyle configuration file option. When enabled the configuration editor will not touch your file even if it is write enabled.

Of course, check if your externa config file is writable.
But also check if your external config isn't "protected", .

like image 98
VonC Avatar answered Sep 30 '22 07:09

VonC