Uploaded image for project: 'Clover'
  1. Clover
  2. CLOV-1004

Intellij 10.5 with clover 3.1 is throwing: "Error: CloverException: unexpected token" for enums

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Highest Highest
    • 3.1.1
    • 3.1.0
    • CIJ Plugin
    • None
    • Intellij 10.5; windows; Clover Intellij plugin version idea7-3.1.0-v20110531000000

      Classes containing enums are failing to compile, and display the error "Error: CloverException: unexpected token: <<enum name>>" or "Error: CloverException: unexpected token enum".
      Have attached example failing code with company name and details stripped out.
      I've marked this as a blocker as I can't get the plugin to work at all. I thought it may have been clashing with the scala plugin but I have disabled that and there are still problems.

            [CLOV-1004] Intellij 10.5 with clover 3.1 is throwing: "Error: CloverException: unexpected token" for enums

            Tim Chan added a comment -

            The attached dev build used to work for me. Now it says my license is no longer valid; however, my license works fine with version v20110531000000 of the plugin.

            Tim Chan added a comment - The attached dev build used to work for me. Now it says my license is no longer valid; however, my license works fine with version v20110531000000 of the plugin.

            The attached dev build solved this problem for me. Thanks much!

            Andrew Zimmer added a comment - The attached dev build solved this problem for me. Thanks much!

            I'm seeing the same problem with Intellij 10.0.3, JDK 1.6 on OSX. Do I need to upgrade Intellij to 10.5 to fix this?

            Andrew Zimmer added a comment - I'm seeing the same problem with Intellij 10.0.3, JDK 1.6 on OSX. Do I need to upgrade Intellij to 10.5 to fix this?

            You're welcome and sorry for the inconvenience. I'll do a public push of the plugin early next week.

            Michael Studman (Inactive) added a comment - You're welcome and sorry for the inconvenience. I'll do a public push of the plugin early next week.

            The updated jar has fixed the issue. Thanks again.

            Andrew (Gus) Gustafson added a comment - The updated jar has fixed the issue. Thanks again.

            Apologies that I didn't include any java details. Using jdk 1.6.0.18 and language level is 6.
            I'll try out the dev jar and provide feedback.
            Ta for the quick response & fix.

            Andrew (Gus) Gustafson added a comment - Apologies that I didn't include any java details. Using jdk 1.6.0.18 and language level is 6. I'll try out the dev jar and provide feedback. Ta for the quick response & fix.

            I've uploaded a dev build here http://www.atlassian.com/software/clover/downloads/binary/clover-idea-3.1.1.v20110614155907-dev.jar that I believe addresses the problem. Please install this in

            %USERPROFILE%\.IntelliJIdea10\config\plugins

            And be sure to remove your previous version of the clover plugin before doing so.

            Michael Studman (Inactive) added a comment - - edited I've uploaded a dev build here http://www.atlassian.com/software/clover/downloads/binary/clover-idea-3.1.1.v20110614155907-dev.jar that I believe addresses the problem. Please install this in %USERPROFILE%\.IntelliJIdea10\config\plugins And be sure to remove your previous version of the clover plugin before doing so.

            Could you tell me what the language level for your module is, please?

            Michael Studman (Inactive) added a comment - Could you tell me what the language level for your module is, please?

              mstudman Michael Studman (Inactive)
              b24358adaf6c Andrew (Gus) Gustafson
              Affected customers:
              0 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: