Intellij seems to be allergic to magnets and macros.

All the "fake" red in my code is where i use directives or shapeless. The 
parameters directive is always red for me (too many arguments error, 
doesn't see the magnet).

Last time I used ensime it was even worse though, it couldn't see a number 
of implicits (probably because they depended on shapeless). 

I guess I gave up on not having red code in the ide and started looking 
more at the compiler errors. 

On Thursday, 21 April 2016 14:16:11 UTC+2, Charlie Evans wrote:
>
> Thanks for the speedy reply. Sorry - I'm using IntelliJ IDEA 2016.1.1 and 
> latest akka with scala 2.11.7.
>
> I just tried a little test project and seem to have found the culprit - 
> https://github.com/hseeberger/akka-http-json.
>
> Mixing Json4sSupport into my route class is what's causing the apparent 
> errors. But still compiling.
>
> An example of an error is with my implicit ExceptionHandler where it says 
> expected: ExceptionHandler.PF, actual PartialFunction[Throwable, 
> Future[HttpResponse]].
> Also in the routes next to ~ I'm seeing StandardRoute doesn't conform to 
> expected type HttpRequest.
>
> Any ideas?
>
> Thanks
>
> On Thursday, April 21, 2016 at 1:07:03 PM UTC+1, Konrad Malawski wrote:
>>
>> You didn't say which versions of things you're using, please include such 
>> info :-)
>>
>> For me it works, all routes "green" in Intellij 15-EAP.
>> I've been using the gen-idea plugin, but importing from existing also 
>> should work - others on the team work like that.
>>
>> -- 
>> Konrad `ktoso` Malawski
>> Akka <http://akka.io> @ Lightbend <http://lightbend.com>
>>
>> On 21 April 2016 at 14:04:04, Charlie Evans (charles...@gmail.com) wrote:
>>
>> Hi all, 
>>
>> I just switched from eclipse to intellij for scala development. The sbt 
>> plugin is very handy but Intellij can't seem to handle the akka http routes 
>> and implicits. In eclipse the code is fine and sbt compiles the code just 
>> fine. Is there any settings I can change to make Intellij handle everything 
>> better and get rid of these red lines?
>>
>> Thanks
>> --
>> >>>>>>>>>> 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 akka-user+...@googlegroups.com.
>> To post to this group, send email to akka...@googlegroups.com.
>> Visit this group at https://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>>

-- 
>>>>>>>>>>      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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to