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

Typos error in Ty.ty #69

Open
lyrm opened this issue Aug 3, 2018 · 3 comments
Open

Typos error in Ty.ty #69

lyrm opened this issue Aug 3, 2018 · 3 comments

Comments

@lyrm
Copy link
Collaborator

lyrm commented Aug 3, 2018

I was writing an exercise without copy/paste today (!) and I inadvertently wrote :

let exercise_1 =
  Section (
      [ Text "Variable: "; Code "n"],
      test_variable [%ty float] "n" 10 )

There are actually 2 mistakes in this exercise but a learn-ocaml command with as many options as possible (--display-outcomes etc...) gives me:

Updating app at ./www
references (no changes)

(The previous extract code comes from a variables/test.ml file and I have two exercises: variables and references)

So : no error message, nothing about variables and no server launch....

The error causing this is that I forgot the colon in [%ty: float] ...
(After correction, I finally have the right error message for my second mistakes : 10 is not a float....)

Will it be possible to have nice error messages for this kind of stupid typos in Ty.ty ?

@AltGr
Copy link
Collaborator

AltGr commented Aug 3, 2018

So : no error message, nothing about variables and no server launch....

the "no server launch" part clearly indicates that an error was caught, but the message must have been lost somewhere. What was the exit code of the process?

@lyrm
Copy link
Collaborator Author

lyrm commented Aug 3, 2018

the "no server launch" part clearly indicates that an error was caught, but the message must have been lost somewhere. What was the exit code of the process?

2

@lyrm
Copy link
Collaborator Author

lyrm commented Aug 15, 2018

I have found an similar issue when there is no given solution function in solution.ml for a graded function. An error is obviously raised internally but nothing is written when building but it still fails.

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

No branches or pull requests

3 participants