JetBrains / intellij-sbt

SBT support in IntelliJ IDEA
80 stars 9 forks source link

sbt plugin will not build sbt itself: "Cannot find module dependency: classpath" #5

Open danielpcox opened 11 years ago

danielpcox commented 11 years ago

To reproduce:

git clone git@github.com/sbt/sbt.git
cd sbt
pwd

Then open IntelliJ using the nightly build of the SBT support plugin (currently 0.1.50), and try Import Project, pointing it at the directory reported above.

I notice that "sbt compile" from the command line seems to work fine, but IntelliJ refuses to import the project (but succeeds on others), reporting that it "Cannot find module dependency: classpath".

danielpcox commented 11 years ago

Just plucked this out of the logs:


2013-09-05 13:32:13,098 [4470869]   WARN - nal.AbstractExternalSystemTask -
java.lang.reflect.UndeclaredThrowableException
        at com.sun.proxy.$Proxy3.resolveProjectInfo(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:303)
        at sun.rmi.transport.Transport$1.run(Transport.java:159)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:5
35)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTranspor
t.java:790)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
.java:649)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:895)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:918)
        at java.lang.Thread.run(Thread.java:680)
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream
RemoteCall.java:255)
        at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:
233)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
        at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(Remo
teObjectInvocationHandler.java:178)
        at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvo
cationHandler.java:132)
        at com.sun.proxy.$Proxy116.resolveProjectInfo(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.intellij.execution.rmi.RemoteUtil$2$1$1.compute(RemoteUtil.java:1
04)
        at com.intellij.execution.rmi.RemoteUtil.executeWithClassLoader(RemoteUt
il.java:165)
        at com.intellij.execution.rmi.RemoteUtil$2$1.invoke(RemoteUtil.java:101)

        at com.sun.proxy.$Proxy116.resolveProjectInfo(Unknown Source)
        at com.intellij.openapi.externalSystem.service.remote.wrapper.ExternalSy
stemProjectResolverWrapper.resolveProjectInfo(ExternalSystemProjectResolverWrapp
er.java:49)
        at com.intellij.openapi.externalSystem.service.internal.ExternalSystemRe
solveProjectTask.doExecute(ExternalSystemResolveProjectTask.java:53)
        at com.intellij.openapi.externalSystem.service.internal.AbstractExternal
SystemTask.execute(AbstractExternalSystemTask.java:130)
        at com.intellij.openapi.externalSystem.service.internal.AbstractExternal
SystemTask.execute(AbstractExternalSystemTask.java:120)
        at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$3.execute
(ExternalSystemUtil.java:399)
        at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$4$1.run(E
xternalSystemUtil.java:437)
        at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.r
un(ProgressManagerImpl.java:495)
        at com.intellij.openapi.progress.impl.ProgressManagerImpl$6.run(Progress
ManagerImpl.java:304)
        at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(Progress
ManagerImpl.java:185)
        at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcess
UnderProgress(ProgressManagerImpl.java:226)
        at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(Pro
gressManagerImpl.java:175)
        at com.intellij.openapi.application.impl.ApplicationImpl$10$1.run(Applic
ationImpl.java:681)
        at com.intellij.openapi.application.impl.ApplicationImpl$8.run(Applicati
onImpl.java:454)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:43
9)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:895)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:918)
        at java.lang.Thread.run(Thread.java:680)
        at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(Applica
tionImpl.java:152)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.intellij.openapi.externalSystem.service.ExternalSystemFacadeImpl$
2.invoke(ExternalSystemFacadeImpl.java:165)
        at com.sun.proxy.$Proxy3.resolveProjectInfo(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:303)
        at sun.rmi.transport.Transport$1.run(Transport.java:159)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:5
35)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTranspor
t.java:790)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
.java:649)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:895)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:918)
        at java.lang.Thread.run(Thread.java:680)
Caused by: com.intellij.openapi.externalSystem.model.ExternalSystemException: Ca
nnot find module dependency: classpath
        at org.jetbrains.sbt.project.SbtProjectResolver$$anonfun$convert$1$$anon
fun$apply$3$$anonfun$11.apply(SbtProjectResolver.scala:71)
        at org.jetbrains.sbt.project.SbtProjectResolver$$anonfun$convert$1$$anon
fun$apply$3$$anonfun$11.apply(SbtProjectResolver.scala:71)
        at scala.Option.getOrElse(Option.scala:120)
        at org.jetbrains.sbt.project.SbtProjectResolver$$anonfun$convert$1$$anon
fun$apply$3.apply(SbtProjectResolver.scala:70)
        at org.jetbrains.sbt.project.SbtProjectResolver$$anonfun$convert$1$$anon
fun$apply$3.apply(SbtProjectResolver.scala:69)
        at scala.collection.immutable.List.foreach(List.scala:309)
        at org.jetbrains.sbt.project.SbtProjectResolver$$anonfun$convert$1.apply
(SbtProjectResolver.scala:69)
        at org.jetbrains.sbt.project.SbtProjectResolver$$anonfun$convert$1.apply
(SbtProjectResolver.scala:68)
        at scala.collection.immutable.List.foreach(List.scala:309)
        at org.jetbrains.sbt.project.SbtProjectResolver.convert(SbtProjectResolv
er.scala:68)
        at org.jetbrains.sbt.project.SbtProjectResolver.resolveProjectInfo(SbtPr
ojectResolver.scala:38)
        at org.jetbrains.sbt.project.SbtProjectResolver.resolveProjectInfo(SbtPr
ojectResolver.scala:18)
        at com.intellij.openapi.externalSystem.service.remote.RemoteExternalSyst
emProjectResolverImpl$1.produce(RemoteExternalSystemProjectResolverImpl.java:41)

        at com.intellij.openapi.externalSystem.service.remote.RemoteExternalSyst
emProjectResolverImpl$1.produce(RemoteExternalSystemProjectResolverImpl.java:37)

        at com.intellij.openapi.externalSystem.service.remote.AbstractRemoteExte
rnalSystemService.execute(AbstractRemoteExternalSystemService.java:59)
        at com.intellij.openapi.externalSystem.service.remote.RemoteExternalSyst
emProjectResolverImpl.resolveProjectInfo(RemoteExternalSystemProjectResolverImpl
.java:37)
        ... 20 more
danielpcox commented 11 years ago

@epishkin made a forum post listing projects that don't build with the nightly build of the IntelliJ plugin, and sbt is already on the list. Alas.