learn-ocaml
learn-ocaml copied to clipboard
Typos error in Ty.ty
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 ?
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?
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
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.