Re: [akka-user] Akka Stream quick start guide not working
Hi Simone! All examples in the docs are compiled and tested before we release them, so let ma assure you the code is valid. The entire code is listed here if you’d like to have a look at the complete file: https://github.com/akka/akka/blob/release-2.3-dev/akka-docs-dev/rst/scala/code/docs/stream/TwitterStreamQuickstartDocSpec.scala Can you paste the code snippet which you have trouble getting to work? Are you sure you are using the `akka.stream.scaladsl.FlowGraph` and not the javadsl one? (javadsl understandably does not have Implicits). -- Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe On 2 May 2015 at 20:01:07, Simone Scarduzio (scardu...@gmail.com) wrote: Hi all, I'm a beginner with Akka Stream, but I found a couple of problems trying to compile the quick start example provided in the docs. FlowGraph does not have a closed() method FlowGraph.Implicits does not exist I'm using this sbt dependency: com.typesafe.akka %% akka-stream-experimental % 1.0-RC2 Thanks for your help, _Simone -- 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 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 akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
[akka-user] Akka Stream quick start guide not working
Hi all, I'm a beginner with Akka Stream, but I found a couple of problems trying to compile the quick start example http://doc.akka.io/docs/akka-stream-and-http-experimental/1.0-RC2/scala/stream-quickstart.html#stream-quickstart-scalaprovided in the docs. 1. FlowGraph does not have a closed() method 2. FlowGraph.Implicits does not exist I'm using this sbt dependency: com.typesafe.akka %% akka-stream-experimental % 1.0-RC2 Thanks for your help, _Simone -- 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 http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
Re: [akka-user] Akka Stream quick start guide not working
Hey Konrad, Thanks for the fast reply. I made a summary of my problem in this gist. https://gist.github.com/sscarduzio/7b65ecc3685bbe335e6b Also the code from github is not working, it must be some problem with my environment :( _S On Sat, May 2, 2015 at 7:04 PM, Konrad Malawski konrad.malaw...@typesafe.com wrote: Hi Simone! All examples in the docs are compiled and tested before we release them, so let ma assure you the code is valid. The entire code is listed here if you’d like to have a look at the complete file: https://github.com/akka/akka/blob/release-2.3-dev/akka-docs-dev/rst/scala/code/docs/stream/TwitterStreamQuickstartDocSpec.scala Can you paste the code snippet which you have trouble getting to work? Are you sure you are using the `akka.stream.scaladsl.FlowGraph` and not the javadsl one? (javadsl understandably does not have Implicits). -- Cheers, Konrad 'ktoso’ Malawski Akka http://akka.io @ Typesafe http://typesafe.com On 2 May 2015 at 20:01:07, Simone Scarduzio (scardu...@gmail.com) wrote: Hi all, I'm a beginner with Akka Stream, but I found a couple of problems trying to compile the quick start example http://doc.akka.io/docs/akka-stream-and-http-experimental/1.0-RC2/scala/stream-quickstart.html#stream-quickstart-scala provided in the docs. 1. FlowGraph does not have a closed() method 2. FlowGraph.Implicits does not exist I'm using this sbt dependency: com.typesafe.akka %% akka-stream-experimental % 1.0-RC2 Thanks for your help, _Simone -- 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 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 akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
Re: [akka-user] Akka Stream quick start guide not working
Seems you forgot to extend RawDocument in Document, which manifested itself in being unable to wire up flows of not-compatible types. I forked and fixed the minor typos in your code: https://gist.github.com/ktoso/8140969c4aead4103317 Happy hakking, I hope you’ll enjoy Akka Streams as much as we do :-) -- Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe On 2 May 2015 at 20:24:40, Simone Scarduzio (scardu...@gmail.com) wrote: Hey Konrad, Thanks for the fast reply. I made a summary of my problem in this gist. https://gist.github.com/sscarduzio/7b65ecc3685bbe335e6b Also the code from github is not working, it must be some problem with my environment :( _S On Sat, May 2, 2015 at 7:04 PM, Konrad Malawski konrad.malaw...@typesafe.com wrote: Hi Simone! All examples in the docs are compiled and tested before we release them, so let ma assure you the code is valid. The entire code is listed here if you’d like to have a look at the complete file: https://github.com/akka/akka/blob/release-2.3-dev/akka-docs-dev/rst/scala/code/docs/stream/TwitterStreamQuickstartDocSpec.scala Can you paste the code snippet which you have trouble getting to work? Are you sure you are using the `akka.stream.scaladsl.FlowGraph` and not the javadsl one? (javadsl understandably does not have Implicits). -- Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe On 2 May 2015 at 20:01:07, Simone Scarduzio (scardu...@gmail.com) wrote: Hi all, I'm a beginner with Akka Stream, but I found a couple of problems trying to compile the quick start example provided in the docs. FlowGraph does not have a closed() method FlowGraph.Implicits does not exist I'm using this sbt dependency: com.typesafe.akka %% akka-stream-experimental % 1.0-RC2 Thanks for your help, _Simone -- 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 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 akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
Re: [akka-user] Akka Stream quick start guide not working
Hi Konrad, Unfortunately I have problems to see your changes, when I click your gist link I see identical code to mine. _S On Sat, May 2, 2015 at 7:38 PM, Konrad Malawski konrad.malaw...@typesafe.com wrote: Seems you forgot to extend RawDocument in Document, which manifested itself in being unable to wire up flows of not-compatible types. I forked and fixed the minor typos in your code: https://gist.github.com/ktoso/8140969c4aead4103317 https://gist.github.com/ktoso/8140969c4aead4103317 Happy hakking, I hope you’ll enjoy Akka Streams as much as we do :-) https://gist.github.com/ktoso/8140969c4aead4103317 https://gist.github.com/ktoso/8140969c4aead4103317 -- Cheers, Konrad 'ktoso’ Malawski Akka http://akka.io @ Typesafe http://typesafe.com On 2 May 2015 at 20:24:40, Simone Scarduzio (scardu...@gmail.com) wrote: Hey Konrad, Thanks for the fast reply. I made a summary of my problem in this gist. https://gist.github.com/sscarduzio/7b65ecc3685bbe335e6b Also the code from github is not working, it must be some problem with my environment :( _S On Sat, May 2, 2015 at 7:04 PM, Konrad Malawski konrad.malaw...@typesafe.com wrote: Hi Simone! All examples in the docs are compiled and tested before we release them, so let ma assure you the code is valid. The entire code is listed here if you’d like to have a look at the complete file: https://github.com/akka/akka/blob/release-2.3-dev/akka-docs-dev/rst/scala/code/docs/stream/TwitterStreamQuickstartDocSpec.scala Can you paste the code snippet which you have trouble getting to work? Are you sure you are using the `akka.stream.scaladsl.FlowGraph` and not the javadsl one? (javadsl understandably does not have Implicits). -- Cheers, Konrad 'ktoso’ Malawski Akka http://akka.io @ Typesafe http://typesafe.com On 2 May 2015 at 20:01:07, Simone Scarduzio (scardu...@gmail.com) wrote: Hi all, I'm a beginner with Akka Stream, but I found a couple of problems trying to compile the quick start example http://doc.akka.io/docs/akka-stream-and-http-experimental/1.0-RC2/scala/stream-quickstart.html#stream-quickstart-scala provided in the docs. 1. FlowGraph does not have a closed() method 2. FlowGraph.Implicits does not exist I'm using this sbt dependency: com.typesafe.akka %% akka-stream-experimental % 1.0-RC2 Thanks for your help, _Simone -- 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 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 akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
Re: [akka-user] Akka Stream quick start guide not working
Hey nevermind, I made it work! https://gist.github.com/sscarduzio/7b65ecc3685bbe335e6b#file-workinggraph-scala Wohoo! ;) IntelliJ still gives me all kinds of errors. I guess it's about corrupted cache. Once again, my golden rule is confirmed: only trust sbt compile output. _S On Sat, May 2, 2015 at 8:47 PM, Simone Scarduzio scardu...@gmail.com wrote: Hi Konrad, Unfortunately I have problems to see your changes, when I click your gist link I see identical code to mine. _S On Sat, May 2, 2015 at 7:38 PM, Konrad Malawski konrad.malaw...@typesafe.com wrote: Seems you forgot to extend RawDocument in Document, which manifested itself in being unable to wire up flows of not-compatible types. I forked and fixed the minor typos in your code: https://gist.github.com/ktoso/8140969c4aead4103317 https://gist.github.com/ktoso/8140969c4aead4103317 Happy hakking, I hope you’ll enjoy Akka Streams as much as we do :-) https://gist.github.com/ktoso/8140969c4aead4103317 https://gist.github.com/ktoso/8140969c4aead4103317 -- Cheers, Konrad 'ktoso’ Malawski Akka http://akka.io @ Typesafe http://typesafe.com On 2 May 2015 at 20:24:40, Simone Scarduzio (scardu...@gmail.com) wrote: Hey Konrad, Thanks for the fast reply. I made a summary of my problem in this gist. https://gist.github.com/sscarduzio/7b65ecc3685bbe335e6b Also the code from github is not working, it must be some problem with my environment :( _S On Sat, May 2, 2015 at 7:04 PM, Konrad Malawski konrad.malaw...@typesafe.com wrote: Hi Simone! All examples in the docs are compiled and tested before we release them, so let ma assure you the code is valid. The entire code is listed here if you’d like to have a look at the complete file: https://github.com/akka/akka/blob/release-2.3-dev/akka-docs-dev/rst/scala/code/docs/stream/TwitterStreamQuickstartDocSpec.scala Can you paste the code snippet which you have trouble getting to work? Are you sure you are using the `akka.stream.scaladsl.FlowGraph` and not the javadsl one? (javadsl understandably does not have Implicits). -- Cheers, Konrad 'ktoso’ Malawski Akka http://akka.io @ Typesafe http://typesafe.com On 2 May 2015 at 20:01:07, Simone Scarduzio (scardu...@gmail.com) wrote: Hi all, I'm a beginner with Akka Stream, but I found a couple of problems trying to compile the quick start example http://doc.akka.io/docs/akka-stream-and-http-experimental/1.0-RC2/scala/stream-quickstart.html#stream-quickstart-scala provided in the docs. 1. FlowGraph does not have a closed() method 2. FlowGraph.Implicits does not exist I'm using this sbt dependency: com.typesafe.akka %% akka-stream-experimental % 1.0-RC2 Thanks for your help, _Simone -- 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 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 akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
Re: [akka-user] Akka Stream quick start guide not working
Yep, I got Intellij working too at the end. My build.sbt had this enablePlugins(JavaAppPackaging) line which failed and prevented the internal build system from downloading the latest version of akka stream. It all worked when I removed that line in build.sbt. Then I also realised the graph I wrote made no sense, since I forgot to wire the docProcFlow in the graph; unfortunately the IDE had the above issue and masked the compiler error with other errors. But yeah, all makes sense now. I plan to grow this experiment and see how it works with REST and AMQP. Thanks for your kind help! :) _Simone On Sat, May 2, 2015 at 11:32 PM, Konrad Malawski konrad.malaw...@typesafe.com wrote: Seems I pasted the wrong gist-link, I meant: https://gist.github.com/ktoso/32e8e098616ddd3e9776 (green in intellij for me). In general if you see errors about being unable to find a matching method for ~ types are wrong between the inlet/outlet. -- Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe On 2 May 2015 at 22:09:28, Simone Scarduzio (scardu...@gmail.com) wrote: Hey nevermind, I made it work! https://gist.github.com/sscarduzio/7b65ecc3685bbe335e6b#file-workinggraph-scala Wohoo! ;) IntelliJ still gives me all kinds of errors. I guess it's about corrupted cache. Once again, my golden rule is confirmed: only trust sbt compile output. _S On Sat, May 2, 2015 at 8:47 PM, Simone Scarduzio scardu...@gmail.com wrote: Hi Konrad, Unfortunately I have problems to see your changes, when I click your gist link I see identical code to mine. _S On Sat, May 2, 2015 at 7:38 PM, Konrad Malawski konrad.malaw...@typesafe.com wrote: Seems you forgot to extend RawDocument in Document, which manifested itself in being unable to wire up flows of not-compatible types. I forked and fixed the minor typos in your code: https://gist.github.com/ktoso/8140969c4aead4103317 Happy hakking, I hope you’ll enjoy Akka Streams as much as we do :-) -- Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe On 2 May 2015 at 20:24:40, Simone Scarduzio (scardu...@gmail.com) wrote: Hey Konrad, Thanks for the fast reply. I made a summary of my problem in this gist. https://gist.github.com/sscarduzio/7b65ecc3685bbe335e6b Also the code from github is not working, it must be some problem with my environment :( _S On Sat, May 2, 2015 at 7:04 PM, Konrad Malawski konrad.malaw...@typesafe.com wrote: Hi Simone! All examples in the docs are compiled and tested before we release them, so let ma assure you the code is valid. The entire code is listed here if you’d like to have a look at the complete file: https://github.com/akka/akka/blob/release-2.3-dev/akka-docs-dev/rst/scala/code/docs/stream/TwitterStreamQuickstartDocSpec.scala Can you paste the code snippet which you have trouble getting to work? Are you sure you are using the `akka.stream.scaladsl.FlowGraph` and not the javadsl one? (javadsl understandably does not have Implicits). -- Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe On 2 May 2015 at 20:01:07, Simone Scarduzio (scardu...@gmail.com) wrote: Hi all, I'm a beginner with Akka Stream, but I found a couple of problems trying to compile the quick start example provided in the docs. FlowGraph does not have a closed() method FlowGraph.Implicits does not exist I'm using this sbt dependency: com.typesafe.akka %% akka-stream-experimental % 1.0-RC2 Thanks for your help, _Simone -- 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 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 akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
Re: [akka-user] Akka Stream quick start guide not working
Seems I pasted the wrong gist-link, I meant: https://gist.github.com/ktoso/32e8e098616ddd3e9776 (green in intellij for me). In general if you see errors about being unable to find a matching method for ~ types are wrong between the inlet/outlet. -- Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe On 2 May 2015 at 22:09:28, Simone Scarduzio (scardu...@gmail.com) wrote: Hey nevermind, I made it work! https://gist.github.com/sscarduzio/7b65ecc3685bbe335e6b#file-workinggraph-scala Wohoo! ;) IntelliJ still gives me all kinds of errors. I guess it's about corrupted cache. Once again, my golden rule is confirmed: only trust sbt compile output. _S On Sat, May 2, 2015 at 8:47 PM, Simone Scarduzio scardu...@gmail.com wrote: Hi Konrad, Unfortunately I have problems to see your changes, when I click your gist link I see identical code to mine. _S On Sat, May 2, 2015 at 7:38 PM, Konrad Malawski konrad.malaw...@typesafe.com wrote: Seems you forgot to extend RawDocument in Document, which manifested itself in being unable to wire up flows of not-compatible types. I forked and fixed the minor typos in your code: https://gist.github.com/ktoso/8140969c4aead4103317 Happy hakking, I hope you’ll enjoy Akka Streams as much as we do :-) -- Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe On 2 May 2015 at 20:24:40, Simone Scarduzio (scardu...@gmail.com) wrote: Hey Konrad, Thanks for the fast reply. I made a summary of my problem in this gist. https://gist.github.com/sscarduzio/7b65ecc3685bbe335e6b Also the code from github is not working, it must be some problem with my environment :( _S On Sat, May 2, 2015 at 7:04 PM, Konrad Malawski konrad.malaw...@typesafe.com wrote: Hi Simone! All examples in the docs are compiled and tested before we release them, so let ma assure you the code is valid. The entire code is listed here if you’d like to have a look at the complete file: https://github.com/akka/akka/blob/release-2.3-dev/akka-docs-dev/rst/scala/code/docs/stream/TwitterStreamQuickstartDocSpec.scala Can you paste the code snippet which you have trouble getting to work? Are you sure you are using the `akka.stream.scaladsl.FlowGraph` and not the javadsl one? (javadsl understandably does not have Implicits). -- Cheers, Konrad 'ktoso’ Malawski Akka @ Typesafe On 2 May 2015 at 20:01:07, Simone Scarduzio (scardu...@gmail.com) wrote: Hi all, I'm a beginner with Akka Stream, but I found a couple of problems trying to compile the quick start example provided in the docs. FlowGraph does not have a closed() method FlowGraph.Implicits does not exist I'm using this sbt dependency: com.typesafe.akka %% akka-stream-experimental % 1.0-RC2 Thanks for your help, _Simone -- 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 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 akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.