facebook

how to install checkstyle

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #302433 Reply

    cusdx
    Member

    Hi, I’d like to install checkstyle – at the moment I don’t have any plug-ins. I’m on 7.1.1. Please can you advise me on the best way? I don’t have Pulse – do I need it?

    #302435 Reply

    support-joy
    Member

    cusdx,

    Let me clarify that MyEclipse doesn’t provide an integrated support for checkstyle plugin. Having said that there are users who have integrated 3rd party plugins to their MyEclipse profile. I have researched over the net and came across – http://eclipse-cs.sourceforge.net/downloads.html
    This elaborates 2 ways of adding checkstyle plugin.
    1. Using the update site
    2. Downloading the .zip file and adding the same to [MyEclipse installation dir]\dropins\plugins folder

    If you don’t want to use pulse. I would recommend you to download the .zip file and extract the contents to ~\Genuitec\MyEclipse 7.1.1\dropins\plugins and restart MyEclipse IDE.
    I have not tried this. Let me know how this works for you.

    #302436 Reply

    cusdx
    Member

    Hi Joy,

    Thanks, I tried that but MyEclipse doesn’t seem to be picking up the plugin at all. I now have a directory

    Genuitec/MyEclipse 7.1/dropins/plugins/checkstyle-5.0

    extracted from the zip file. I have re-started MyEclipse.

    The eclipse-cs website says you then should see Checkstyle under your project properties, but it’s not showing.

    Also when I do “Manage MyEclipse Plug-ins” under “Help”, checkstyle isn’t listed.

    What am I doing wrong?

    #302438 Reply

    cusdx
    Member

    I’m now trying to do it using Help -> Add/Remove Software as per your post at:

    https://www.genuitec.com/forums/topic/installing-additional-plugin-in-myeclipseide-7-0/#post-298489

    This seems to be using Pulse even though I didn’t think I had it. I removed the checkstyle-5.0 directory first.

    Unfortunately I’m getting the error:

    “An unexpected error occurred validating the selected profile.
    Reason: Cannot complete the install because some dependencies are not satisfiable”

    Unfortunately I can’t paste the “Details” here as Firefox has crashed both times I’ve tried, but the dependency referred to is

    org.myeclipse.emf.converter.feature

    #302440 Reply

    cusdx
    Member

    Checkstyle had added 4 lines to the install list – I removed the last two and now the update is working. It looks like it will take all afternoon …

    #302444 Reply

    cusdx
    Member

    An hour later and I’ve finally got my IDE back! I’m now upgraded to 7.5 and have checkstyle – twice. So, some progress. Have tried rebuilding my project but no errors reported. Seemed too good to be true and it was – I configured my own checkstyle which I knew my project would fail and still no messages.

    Went back in to the checkstyle config and got the warning:

    “MyEclipse71\.metadata\.plugins\net.sf.eclipsecs.core\internal_config_1253024716356.xml (The system cannot find the file specified.)”

    Seems like I’ve got into a bit of a pickle. Have spent hours on this now – think I should probably give up …. I’m guessing the checkstyle plugin install URL was a bad’un.

    #302445 Reply

    cusdx
    Member

    Help, although there is nothing reported in the problems tab, all my code has gone yellow! And what’s more, I can change the yellow bits by changing
    my config – this is good. Success. Only thing is I can’t see the output in the problem tab, which would be useful for finding out how compliant my project
    is at a glance.

    #302470 Reply

    support-joy
    Member

    cusdx,

    Pardon my ignorance, I haven’t used checkstyle.

    although there is nothing reported in the problems tab, all my code has gone yellow! And what’s more, I can change the yellow bits by changing
    my config – this is good. Success. Only thing is I can’t see the output in the problem tab, which would be useful for finding out how compliant my project
    is at a glance.

    Question – I am not sure what you mean by the code gone as yellow? Can you attach screenshot? You can either [PM] me the screenshots or send a mail to support@genuitec.com, please add ATTN:Joy and refer to this link, this will help in quick tracking.
    What changes to your config file changes the color of the code? Do you see a red (x) next to your code in yellow? If yes, then it will show up in problems tab, can you attach or send your config file? Else, look for the errors logged in the .log file. I would recommend you to clear your .log file and reproduce this error. Please follow the below steps –
    1. Open .log file, it is located at [your workspace dir]/.metadata/.log
    2. Press [Ctrl + A] and [Delete], next save the file
    3. Reproduce this issue and copy and paste the contents of your .log file

    #302474 Reply

    cusdx
    Member

    Joy,

    I’ve sent you the screenshot. As you see, the marked lines don’t have red crosses, but they do have yellow triangle with a ! (subtly different from the one you get when eclipse itself is issuing a warning.)

    The yellow appeared when I changed project properties to activate checkstyle so I think that’s as it should be. It was just that the checkstyle doc said you would see the messages in the “Problems” tab.

    Aha – have just found out that this is down to how I’ve got the Problems tab configured – have now set it to display warnings and can see them now.

    Thanks for your help

    Zoe

    #302485 Reply

    support-joy
    Member

    Zoe,

    Good to hear that you are all set. 🙂

    Thank you for the screen shot. Those are check style warnings which you can ignore. To ignore the validation, you can right click on the file and from the context menu click on MyEclipse > Exclude from Validation. Or you can define your validation rules here – from MyEclipse IDE menu options click on Window > Preferences > MyEclipse Enterprise Workbench > Validation and set your validation rules.

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: how to install checkstyle

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in