Giter VIP home page Giter VIP logo

Comments (8)

jvican avatar jvican commented on July 26, 2024

Hi @dimbleby, thanks for passing by.

This PR #44 does show that the expected behaviour is indeed to throw errors for uncaptured variables. I just tried to model the akka logic very badly (don't pay attention to it) so that i can copy/paste your code from here to convince you that it works.

Despite the example I provide works, it looks like you may have found a corner case that our macros are not handling. In order to fix it, it would be useful if you can share that code or, even better, to submit a PR just like the one I did showing that your example fails.

As a side note, you got the concept correctly.

from spores.

dimbleby avatar dimbleby commented on July 26, 2024

Hi, thanks for the quick response.

I've put a complete (but small) example project here - in particular, see these lines.

from spores.

jvican avatar jvican commented on July 26, 2024

Great! I think it's a bug that should have a rather straightforward fix. Have you been able to reproduce it without the use of delayed?

from spores.

dimbleby avatar dimbleby commented on July 26, 2024

Sure, it makes no difference.

from spores.

jvican avatar jvican commented on July 26, 2024

Nice, I'll work on it and get back to you when I get it solved. Thanks for the error report!

from spores.

jvican avatar jvican commented on July 26, 2024

Hi @dimbleby, as I expected, this issue only occurs in 0.2.1, but it doesn't in the most up-to-date 0.2.3 version. I've just added three tests that replicate exactly your toy project, and they fail. When cloning your project and changing spores version to 0.2.3 AND publishing locally, the project compiles just fine.

We're due to cut a release very soon. If you find yourself in a hurry, publish locally via sbt. Hope to have solved your problem, I'll be waiting for your confirmation.

from spores.

dimbleby avatar dimbleby commented on July 26, 2024

Great, thanks. I'll look forward to trying again with the new release.

If you're satisfied that this is fixed, please feel free to close the issue without waiting for my confirmation - I can always open a new one if I still see problems!

from spores.

jvican avatar jvican commented on July 26, 2024

Great, thanks!

Let's do that. You can see that tests are passing #44.

from spores.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.