Glad you solved the problem!
In my personal experience it’s always best to compile and look at errors 
directly in sbt when “things go weird”.
IDEs sometimes get confused in their own ways, slightly differently than the 
actual scalac compiler, when you do much type-level things.

Happy hakking!

-- 
Cheers,
Konrad 'ktoso’ Malawski
Akka @ Typesafe

On 30 March 2015 at 01:32:46, Allen Nie ([email protected]) wrote:

Dear Konrad,

          Thank you for responding. I solved the problem. It turns out my 
original type was very wrong: type RowIterator = Either[Iterator[OrdinalRow], 
Iterator[NamedRow]]

          I changed it to type RowIterator = Iterator[Either[OrdinalRow, 
NamedRow]], and it works fine now!

          The perplexing error message was produced by IntelliJ's in-line 
warning, and when I compiled, that warning never appeared. The compiler gave me 
much nicer warning and I found the bug.

Sincerely,
Allen




On Sunday, March 29, 2015 at 6:54:18 PM UTC-4, Konrad Malawski wrote:
Hi Allen!
The error looks a bit weird… We don’t have any parameter named g2 (well, it 
only takes one parameter) in the snippet you provided.

Would you be able to provide a more complete snippet and complete compile error?
Thanks!

-- 
Cheers,
Konrad 'ktoso’ Malawski
Akka @ Typesafe

On 30 March 2015 at 00:15:00, Allen Nie ([email protected]) wrote:

Hi,

     I'm trying to use Akka Stream to parallelize a sequence of operations..and 
I have those types:


     type OrdinalRow = Vector[String]
     type NamedRow = Map[String, String]
       type NormalRow= Either[OrdinalRow, NamedRow]
      type RowIterator = Either[Iterator[OrdinalRow], Iterator[NamedRow]]

   
    The RunnableFlow functions will take in NormalRow, and the iterator 
provided has the type of RowIterator.

    Then I wanted to start constructing a source:


        protected val source: Source[NormalRow, Unit] = Source(() => 
data.dataIterator)

    data.dataIterator returns a iterator with RowIterator type. However, it 
says "unspecified value parameter g2"....Can anyone let me know what's going 
on? Why is this happening and can it be fixed?

Sincerely,
Allen
--
>>>>>>>>>> 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.
--
>>>>>>>>>> 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.

-- 
>>>>>>>>>>      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