Another SBT import error

I'm importing as SBT project exercises project from Coursera.org.

Here is the error I'm receiving:

Can't register given path of type 'TEST' because it's out of content root.
Content root: '/home/david/Documentos/curso-prog-reactiva/actorbintree2/submission'
Given path: '/home/david/Documentos/curso-prog-reactiva/actorbintree2/src/test/scala'

Here is the log output:

2013-12-15 08:09:27,477 [ 890467]   WARN - ctExternalProjectImportBuilder - 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:57)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:606)
     at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
     at sun.rmi.transport.Transport$1.run(Transport.java:177)
     at sun.rmi.transport.Transport$1.run(Transport.java:174)
     at java.security.AccessController.doPrivileged(Native Method)
     at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
     at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:556)
     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:811)
     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:670)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
     at java.lang.Thread.run(Thread.java:744)
     at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:275)
     at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:252)
     at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:161)
     at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:194)
     at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:148)
     at com.sun.proxy.$Proxy60.resolveProjectInfo(Unknown Source)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:606)
     at com.intellij.execution.rmi.RemoteUtil$2$1$1.compute(RemoteUtil.java:106)
     at com.intellij.execution.rmi.RemoteUtil.executeWithClassLoader(RemoteUtil.java:167)
     at com.intellij.execution.rmi.RemoteUtil$2$1.invoke(RemoteUtil.java:102)
     at com.sun.proxy.$Proxy60.resolveProjectInfo(Unknown Source)
     at com.intellij.openapi.externalSystem.service.remote.wrapper.ExternalSystemProjectResolverWrapper.resolveProjectInfo(ExternalSystemProjectResolverWrapper.java:49)
     at com.intellij.openapi.externalSystem.service.internal.ExternalSystemResolveProjectTask.doExecute(ExternalSystemResolveProjectTask.java:53)
     at com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:130)
     at com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:120)
     at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$3.execute(ExternalSystemUtil.java:462)
     at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$4$1.run(ExternalSystemUtil.java:516)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:464)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl$6.run(ProgressManagerImpl.java:274)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:178)
     at com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:209)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:212)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:171)
     at com.intellij.openapi.application.impl.ApplicationImpl$10$1.run(ApplicationImpl.java:658)
     at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:436)
     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
     at java.util.concurrent.FutureTask.run(FutureTask.java:262)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
     at java.lang.Thread.run(Thread.java:744)
     at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:153)
Caused by: java.lang.reflect.InvocationTargetException
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:606)
     at com.intellij.openapi.externalSystem.service.RemoteExternalSystemFacadeImpl$1.invoke(RemoteExternalSystemFacadeImpl.java:113)
     at com.sun.proxy.$Proxy3.resolveProjectInfo(Unknown Source)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:606)
     at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
     at sun.rmi.transport.Transport$1.run(Transport.java:177)
     at sun.rmi.transport.Transport$1.run(Transport.java:174)
     at java.security.AccessController.doPrivileged(Native Method)
     at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
     at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:556)
     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:811)
     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:670)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
     at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.IllegalArgumentException: Can't register given path of type 'TEST' because it's out of content root.
Content root: '/home/david/Documentos/curso-prog-reactiva/actorbintree2/submission'
Given path: '/home/david/Documentos/curso-prog-reactiva/actorbintree2/src/test/scala'
     at com.intellij.openapi.externalSystem.model.project.ContentRootData.storePath(ContentRootData.java:65)
     at org.jetbrains.sbt.project.ContentRootNode$$anonfun$storePaths$1.apply(Nodes.scala:49)
     at org.jetbrains.sbt.project.ContentRootNode$$anonfun$storePaths$1.apply(Nodes.scala:49)
     at scala.collection.immutable.List.foreach(List.scala:309)
     at org.jetbrains.sbt.project.ContentRootNode.storePaths(Nodes.scala:49)
     at org.jetbrains.sbt.project.SbtProjectResolver.org$jetbrains$sbt$project$SbtProjectResolver$$createContentRoot(SbtProjectResolver.scala:142)
     at org.jetbrains.sbt.project.SbtProjectResolver$$anonfun$10.apply(SbtProjectResolver.scala:59)
     at org.jetbrains.sbt.project.SbtProjectResolver$$anonfun$10.apply(SbtProjectResolver.scala:57)
     at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
     at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
     at scala.collection.immutable.List.foreach(List.scala:309)
     at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
     at scala.collection.AbstractTraversable.map(Traversable.scala:105)
     at org.jetbrains.sbt.project.SbtProjectResolver.convert(SbtProjectResolver.scala:57)
     at org.jetbrains.sbt.project.SbtProjectResolver.resolveProjectInfo(SbtProjectResolver.scala:38)
     at org.jetbrains.sbt.project.SbtProjectResolver.resolveProjectInfo(SbtProjectResolver.scala:18)
     at com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl$1.produce(RemoteExternalSystemProjectResolverImpl.java:41)
     at com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl$1.produce(RemoteExternalSystemProjectResolverImpl.java:37)
     at com.intellij.openapi.externalSystem.service.remote.AbstractRemoteExternalSystemService.execute(AbstractRemoteExternalSystemService.java:59)
     at com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl.resolveProjectInfo(RemoteExternalSystemProjectResolverImpl.java:37)
     ... 21 more

It has also some custom SBT custom plugins in the project/ subfolder.  I can provide them if needed.
I attach the build.sbt file.
Is this a bug in the plugin?



Attachment(s):
build.sbt.zip
2 comments
Comment actions Permalink

See the issue SCL-6363
It's fixed in the nightly build 0.26.328 which you can download manually.

There are still some other issues with library paths, and the test code didn't see the
production code in my case.

I had better luck running plain sbt (not sbt-idea) on the command line, and importing the eclipse
project instead of the sbt project. I only needed to fix the scala facet, compiler and scala-library
in that case.

Good luck.

0
Comment actions Permalink

It's great not to be the only one trying Coursera reactive programming with IDEA. :)

0

Please sign in to leave a comment.