Git Product home page Git Product logo

Comments (9)

rvirding avatar rvirding commented on September 7, 2024 2

This is a bug which I will fix real soon now. It has also come up in the slack #general channel. There is a quick fix which works in the REPL and the compiler, and is actually fully legal as well 😄

(defun chop
  (((binary ("xyz") (more binary)))
    (io:format "CHOP: ~p~n" `(,more)))

  ((_)                         ;Note the _ here to match all
    'nochop))

from lfe.

oubiwann avatar oubiwann commented on September 7, 2024 1

Thanks for filing this ticket ... we should have done so when this came up a while back, and again when it came up a few weeks ago :-)

from lfe.

rvirding avatar rvirding commented on September 7, 2024 1

This should now work as expected after a commit in develop. I will merge this into master RSN if no one finds any serious errors.

from lfe.

oubiwann avatar oubiwann commented on September 7, 2024 1

Closing since the fix is now merged ...

(@dendrown btw, that rebar3_lfe bug is now fixed 😄)

from lfe.

dendrown avatar dendrown commented on September 7, 2024

Thank you. I'm very glad to see there's a nice work-around while waiting on the fix.

@rvirding : thanks also for the note about the underscore. Somewhere along the line I got the idea that an LFE hyphen was like an Erlang underscore.

from lfe.

dendrown avatar dendrown commented on September 7, 2024

Thanks, Robert. I verified that this fixes the toy example. I'm still having a problem in the actual project.

Yet, this may now likely be a rebar3_lfe plugin issue. Even though I've deleted lfe from the plugin's cache and then watched it pull & rebuild the updated lfe develop branch, I'm still getting the error. However, if I call lfec from the plugin's cache to compile the module individually, I get no error. Also, if I compile the module from the repl, there's no error.

Note that the project still builds fine when I have the work-around you mentioned in place. So, I'm not stopped.at all. In fact, a couple of weeks ago I rewrote that module in Erlang, so I could move forward. Now, I've reinstated the LFE version in the project.

from lfe.

rvirding avatar rvirding commented on September 7, 2024

@dendrown do you still have this problem? If so could you give me an example of how it happens?

from lfe.

dendrown avatar dendrown commented on September 7, 2024

Hi @rvirding . I just went back and took out the work-around in the larger project, and things look good. The code compiles and works as expected. I'm on LFE v2.0.1.

Just note that I'm still using rebar v3.14.1, and I haven't dared to upgrade since I found the lfe_rebar3#68 issue I referenced above.

from lfe.

dendrown avatar dendrown commented on September 7, 2024

Thanks @rvirding and @oubiwann !!

from lfe.

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.