Skip to content

lfescript execution error #246

Closed
Closed

Description

@fooflare

Each time I execute a lfescript, I get:
bad module definition: attribute
I tried with the factorial example from the repo (for being sure I had not any mistake I was not seeing) and I got the same error.

Activity

  1. rvirding commented on Jun 18, 2016

    @rvirding
    Member

    Which version are you running?

  2. rvirding commented on Jun 18, 2016

    @rvirding
    Member

    And could you show your file as well, if it is not too big?

  3. fooflare commented on Jun 18, 2016

    @fooflare
    Author

    I am running the master branch version.
    Of course, it is just a hello world script. I was just making some tests but I didn't get too far :)

    #!/usr/bin/env lfescript
    ;;! -smp enable -sname hello_world -mnesia debug verbose
    
    (defun main (_args)
      (lfe_io:format "Hello world!" ()))
    
  4. yurrriq commented on Jun 18, 2016

    @yurrriq
    Contributor

    FWIW I s/lfe/lfescript/ in the shebang.

  5. rvirding commented on Jun 18, 2016

    @rvirding
    Member

    You have exposed an error! I made some changes to internal forms, the define-module form, and got it wrong in lfescript. I will push a fix tomorrow, it will be version 1.1.1.

    Thank you for finding it.

  6. fooflare commented on Jun 18, 2016

    @fooflare
    Author

    Thanks to you for a so great work.

  7. yurrriq commented on Jun 18, 2016

    @yurrriq
    Contributor

    We should write a test for this case.

  8. added a commit that references this issue on Jul 26, 2020
    45cb0fb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions