-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Labels
Milestone
Description
Original issue 684 created by laurentpetit on 2015-01-29T08:31:23.000Z:
I'm having an issue with the "Reset Project Configuration" command which is either handing or returning the error "Could not reset project classpath".
I am unfortunately unable to share the code itself, but I tracked down the following in the logs:
!ENTRY ccw.core 4 0 2015-01-29 15:54:56.159
!MESSAGE Could not reset project classpath
!STACK 1
Java Model Exception: Java Model Status [Build path contains duplicate entry: 'src/clj' for project 'patient-referrals']
at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:785)
at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:3097)
at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:3059)
at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:3112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:93)
at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28)
at ccw.leiningen.nature$reset_project_build_path.invoke(nature.clj:144)
at ccw.leiningen.handlers$upgrade_project_build_path$fn__5178.invoke(handlers.clj:177)
at ccw.eclipse$workspace_job$fn__3842.invoke(eclipse.clj:511)
at ccw.eclipse.proxy$org.eclipse.core.resources.WorkspaceJob$ff19274a.runInWorkspace(Unknown Source)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
!SUBENTRY 1 org.eclipse.jdt.core 4 977 2015-01-29 15:54:56.159
!MESSAGE Build path contains duplicate entry: 'src/clj' for project 'patient-referrals'
In the project.clj the src/clj source path was mentioned twice, once in ":source-paths" and also in ":profiles / :dev / :source-paths".
An effective workaround is to remove the duplicates in project.clj but I think that ideally CCW should be able to handle the case of a repeated identical :source-path entry, since Leiningen permits this.