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

generated output, after dune promote, can cause mdx to fail #408

Open
gregsgit opened this issue Nov 22, 2022 · 2 comments
Open

generated output, after dune promote, can cause mdx to fail #408

gregsgit opened this issue Nov 22, 2022 · 2 comments

Comments

@gregsgit
Copy link

(lang dune 3.6)
(using mdx 0.3)
1> dune runtest ;; succeeds
2> dune promote
3> dune runtest ;; fails with [mdx] Fatal error: Failure("File "", line 182, characters 52-53:\nParagraph should begin on its own line.")

Attached is transcript. Search for "dune runtest" and see second one fail.
Also attached are pre-promotion and post-promotion versions of the .mli source file.

mdx_session.log
whisk_api.mli_postmdx.txt
whisk_api.mli_orig.txt

@gregsgit
Copy link
Author

gregsgit commented Nov 22, 2022

May be complaining about the semicolon right before "OneOfEffects" in:

val effspec1 : EffectSpec.t =
          SeqOfEffects
           [AtAddr
             {Whisk_api.EffectSpec.addr = 12345;
              val_constrs =
               [{expr1 = ValExpr (RegRef "r2");
                 expr2 =
                  BinopExpr
                   {Whisk_api.Expr.op = "+"; op1 = ValExpr (RegRef "SP");
                    op2 = ValExpr (Immediate 64)}}]};
            OneOfEffects
             [FunCall {Whisk_api.EffectSpec.fun_name = "db_query"; val_constrs = []};
              SysCall
               {Whisk_api.EffectSpec.syscall_name = "fprintf"; val_constrs = []}]]

@Leonidas-from-XIV
Copy link
Collaborator

Hi @gregsgit! This should not be happening, to correct something into something it cannot parse.

Do you have a repo to reproduce it on (preferably with a commit-hash)?

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