Skip to content

iro4cli crashes on a seemingly correct grammar #9

Closed

Description

@shrsv

Hello @c272,

I have been working on an Iro grammar for my FOSS project.

It is a combination of JS, JSON and some custom syntax.

The definition works OK in Iro's web editor (screenshot below):

Selection_1011

However, when I run the same in iro4cli (after fixing various minor errors/warnings), I get the following Runtime unhandled exception:

[WARN] Compile - Some top-level flags are missing and/or not implemented yet.
Unhandled exception. System.NotImplementedException: The method or operation is not implemented.
   at iro4cli.Compile.Compiler.ProcessContext(String contextName, IroSet context, IroSet contexts)
   at iro4cli.Compile.Compiler.Compile(Dictionary`2 vars, ICompileTarget[] targets)
   at iro4cli.Program.Run(IroCLIOptions opts)
   at CommandLine.ParserResultExtensions.WithParsed[T](ParserResult`1 result, Action`1 action)
   at iro4cli.Program.Main(String[] args)
Aborted (core dumped)

Please find the grammar in the file: lama2.txt

Presently, I am able to get the generated outputs from the web-editor. However, it'll be really great to know your thoughts on why the particular grammar might be failing.

Thanks again, for your efforts :)

Activity

  1. self-assigned this
    on Jan 25, 2023
  2. c272 commented on Jan 25, 2023

    @c272
    Owner

    Hi @shrsv, thank you for bringing this to my attention.
    I've found the root cause of the issue and I'll push a patch for this in the next few days.

  3. added
    bug
    on Jan 25, 2023
  4. added a commit that references this issue on Jan 31, 2023
  5. c272 commented on Jan 31, 2023

    @c272
    Owner

    Hi @shrsv, I've just posted a pre-release version of a build that should fix this issue. If you could try it out and let me know if there are any remaining/new issues, that would be very helpful. Hope this helps!

    https://github.com/c272/iro4cli/releases/tag/v0.4.1-rc1

  6. shrsv commented on Jan 31, 2023

    @shrsv
    Author

    @c272 - Just tested it out; iro successfully generated Textmate plist from my grammar file. Looks like it's working. Thanks for the fix :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions