Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#use directive generates unparseable code #2

Open
craigfe opened this issue Aug 27, 2020 · 2 comments
Open

#use directive generates unparseable code #2

craigfe opened this issue Aug 27, 2020 · 2 comments

Comments

@craigfe
Copy link

craigfe commented Aug 27, 2020

The README contains a section on importing generator code from other files. This appears to be broken in the current version of cinaps (or, at least, I cannot get it to work). Adding the following to the test file:

(*$ #use "imported.cinaps";;
    let () = List.iter to_print ~f:printf
*)
(*$*)

produces the output:

❭ dune runtest
File "test_staged.ml", line 16, characters 4-5:
Error: Syntax error: 'end' expected
File "test/test_staged_gen.ml", line 34, characters 28-34:
34 |   (fun () -> let module M = struct
                                 ^^^^^^
  This 'struct' might be unmatched

This failure is contained in this branch.

@rgrinberg
Copy link
Collaborator

rgrinberg commented Apr 9, 2021

I think this feature went away when non staged mode was removed. @xclerc or @jeremiedimino can confirm.

@ghost
Copy link

ghost commented Apr 19, 2021

Indeed, the readme needs to be updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants