Skip to content

Remove path-no-dep - #948

Merged
emillon merged 1 commit into
ocaml:masterfrom
emillon:remove-path-no-dep
Jul 4, 2018
Merged

emillon merged 1 commit into
ocaml:masterfrom
emillon:remove-path-no-dep

Conversation

@emillon

@emillon emillon commented Jul 3, 2018 •

Copy link
Copy Markdown
Collaborator

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.

Comment thread src/super_context.ml Outdated
Loc.fail
loc
"${dep:%s} is not supported in jbuild files.\n\
Did you mean: ${path:%s}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general dune prints: Hint: Did you mean...

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. What about this:

Hint: Did you mean ${path:xxx} instead?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good idea. The payload probably only makes sense for suggestions/corrections.

@emillon
emillon force-pushed the remove-path-no-dep branch 2 times, most recently from 7a4a497 to 2b843a4 Compare July 3, 2018 15:46
@emillon emillon changed the title WIP: Remove path-no-dep Remove path-no-dep Jul 3, 2018
@emillon emillon added this to the 1.0.0 milestone Jul 3, 2018
@emillon
emillon force-pushed the remove-path-no-dep branch from 2b843a4 to 04e40aa Compare July 4, 2018 08:18
@ghost

ghost commented Jul 4, 2018

Copy link
Copy Markdown

I believe the travis failure is due to a missing make promote

See ocaml#944

Signed-off-by: Etienne Millon <[email protected]>
@emillon
emillon force-pushed the remove-path-no-dep branch from 04e40aa to 35ff646 Compare July 4, 2018 08:40
@emillon

emillon commented Jul 4, 2018

Copy link
Copy Markdown
Collaborator Author

🤦‍♂️ I'll fix it & merge, thanks!

@emillon
emillon merged commit 1626faf into ocaml:master Jul 4, 2018
@emillon
emillon deleted the remove-path-no-dep branch July 4, 2018 08:56
@emillon emillon mentioned this pull request Jul 6, 2018
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

Successfully merging this pull request may close these issues.

1 participant