Repository navigation
Remove path-no-dep - #948
Conversation
| Loc.fail | ||
| loc | ||
| "${dep:%s} is not supported in jbuild files.\n\ | ||
| Did you mean: ${path:%s}" |
There was a problem hiding this comment.
In general dune prints: Hint: Did you mean...
There was a problem hiding this comment.
👍 added this. It looks a bit weird because the question mark is missing, but at the same time if we add a question mark at the end it looks like it's part of the suggestion.
There was a problem hiding this comment.
I see. What about this:
Hint: Did you mean ${path:xxx} instead?
There was a problem hiding this comment.
Looks good, I just made this change.
| $ dune build --root dune-invalid @test-path-no-dep | ||
| Entering directory 'dune-invalid' | ||
| File "dune", line 7, characters 17-54: | ||
| Error: The ${path-no-dep:file-that-does-not-exist} syntax has been removed from dune. |
There was a problem hiding this comment.
I'm not entirely sure, but shouldn't this say The ${path:...} syntax has been removed from dune., i.e. without the actual payload. It's seems to me that if we print the actual payload, we are talking about this instance of the syntax rather than the syntax in general. What do you think?
There was a problem hiding this comment.
That's a good idea. The payload probably only makes sense for suggestions/corrections.
7a4a497 to
2b843a4
Compare
2b843a4 to
04e40aa
Compare
|
I believe the travis failure is due to a missing |
See ocaml#944 Signed-off-by: Etienne Millon <[email protected]>
04e40aa to
35ff646
Compare
|
🤦♂️ I'll fix it & merge, thanks! |
As discussed in #944, it's not clear whether we need this feature - if necessary we can add a variable that refers to the root.