I got the same problem . Every time I execute gen-idea ,I mark the 
"multi-jvm/scala" as Test Source Root manual in the Idea-13.1 IDE. After do 
that action, I can edit code in idea ide. But the multi-jvm test can only 
execute in sbt command line,do you know how to run the test in idea ide?

在 2014年3月20日星期四UTC+8下午7时56分02秒,Allan Brighton写道:
>
> Hi Patrik,
>
> It turns out that this line was the problem:
>
>     unmanagedSourceDirectories in Test <+= baseDirectory { _ / "src" / 
> "multi-jvm" / "scala" },
>
> I added it to fix a problem in the generated Idea-13.1 projects, which are 
> always missing the multi-jvm source directory in the settings.
> For some reason that causes a problem when running the "test" target.
> Any suggestions for a fix?
>
> Thanks,
> Allan
>
>
> On Thursday, March 20, 2014 9:30:08 AM UTC+1, Patrik Nordwall wrote:
>>
>> Hi Allan,
>>
>> Take a look at this Typesafe Activator template: 
>> https://typesafe.com/activator/template/akka-sample-multi-node-scala
>>
>> Let us know if that solves your problem or not.
>>
>> /Patrik
>>
>>
>> On Wed, Mar 19, 2014 at 10:55 PM, Allan Brighton <[email protected]>wrote:
>>
>>> Correction: The *multinode.max-nodes *property does not need to be set 
>>> if "sbt multi-jvm:test" is run, but if I run "sbt test", I get:
>>>
>>>     java.lang.IllegalStateException: need system property 
>>>> multinode.max-nodes to be set
>>>
>>>
>>> On Wednesday, March 19, 2014 10:29:13 PM UTC+1, Allan Brighton wrote:
>>>>
>>>> Hi,
>>>>
>>>> I'm using the settings below for a multi-jvm test. After upgrading to 
>>>> Akka-2.3.0,
>>>> I got an error stating that I needed to define the *multinode.max-nodes 
>>>> *system property.
>>>> I added that below and now it works when I run "sbt multi-jvm:test", 
>>>> but I can't figure out how to add the setting
>>>> so that it is used with "sbt test" as well. Any tips?
>>>>  
>>>>
>>>>>   lazy val multiJvmSettings = SbtMultiJvm.multiJvmSettings ++ Seq(
>>>>>     // make sure that MultiJvm test are compiled by the default test 
>>>>> compilation
>>>>>     compile in MultiJvm <<= (compile in MultiJvm) triggeredBy (compile 
>>>>> in Test),
>>>>>     // Required system property
>>>>>     jvmOptions in MultiJvm += "-Dmultinode.max-nodes=2",
>>>>>     // Next line fixes missing source folder in idea project
>>>>>     unmanagedSourceDirectories in Test <+= baseDirectory { _ / "src" / 
>>>>> "multi-jvm" / "scala" },
>>>>>     parallelExecution in Global := false,
>>>>>     executeTests in Test <<=
>>>>>       (executeTests in Test, executeTests in MultiJvm) map {
>>>>>         case ((testResults), (multiJvmResults)) =>
>>>>>           val overall =
>>>>>             if (testResults.overall.id < multiJvmResults.overall.id) 
>>>>> multiJvmResults.overall
>>>>>             else testResults.overall
>>>>>           Tests.Output(overall,
>>>>>             testResults.events ++ multiJvmResults.events,
>>>>>             testResults.summaries ++ multiJvmResults.summaries)
>>>>>       }
>>>>>   )
>>>>
>>>>
>>>> Thanks,
>>>> Allan
>>>>
>>>>  -- 
>>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>>> >>>>>>>>>> Check the FAQ: 
>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>> >>>>>>>>>> Search the archives: 
>>> https://groups.google.com/group/akka-user
>>> --- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Akka User List" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at http://groups.google.com/group/akka-user.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> -- 
>>
>> Patrik Nordwall
>> Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
>> Twitter: @patriknw
>>
>> 

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to