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

fix: improve error message for status db #6479

Merged
merged 1 commit into from
Nov 15, 2022

Conversation

rgrinberg
Copy link
Member

@rgrinberg rgrinberg commented Nov 15, 2022

When we tell the user a stanza is forbidden under [(include_subdirs
$type)] we should write the correct $type rather than guess it's
[unqualified]

Adding Ali as a reviewer as this only affects error messages for coq

Signed-off-by: Rudi Grinberg me@rgrinberg.com

@rgrinberg rgrinberg force-pushed the ps/rr/fix__improve_error_message_for_status_db branch from b372e74 to b20d343 Compare November 15, 2022 16:13
@Alizter
Copy link
Collaborator

Alizter commented Nov 15, 2022

What's the point however? Isn't unqualified the only option?

@rgrinberg
Copy link
Member Author

Coq has the qualified option.

Moreover, I'm going to lift the requirement for OCaml as well.

@Alizter
Copy link
Collaborator

Alizter commented Nov 15, 2022

@rgrinberg In that case looks fine. I guess you can't write a test to for the behaviour yet without coq lang right? If you lift the restriction on OCaml we should remember to add include-subdirs/error4.t or something.

@rgrinberg
Copy link
Member Author

It's just an error message anyway. There's more important things to test.

When we tell the user a stanza is forbidden under [(include_subdirs
$type)] we should write the correct $type rather than guess it's
[unqualified]

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>

ps-id: a1282255-744e-4d60-931a-4f2b323cc143
@rgrinberg rgrinberg force-pushed the ps/rr/fix__improve_error_message_for_status_db branch from b20d343 to a7f2886 Compare November 15, 2022 19:22
@rgrinberg rgrinberg merged commit 279f5cc into main Nov 15, 2022
jchavarri added a commit to jchavarri/dune that referenced this pull request Nov 16, 2022
* main:
  test(melange): demonstrate error in melange compilation trying to build @ALL (ocaml#6485)
  chore(nix): make it faster to get melange (ocaml#6347)
  refactor: status db style tweaks (ocaml#6478)
  fix: improve error message for status db (ocaml#6479)
  refactor: remove unused [flags] parameter (ocaml#6480)
  refactor(ctypes): remove pesky aliases (ocaml#6482)
  chore: tweak `hacking.rst` following `dune.exe` move to _boot (ocaml#6484)
  feature(coq): automatic detection of native
  chore(coq): bump Coq lang to 0.7
  test: disable formatting for a single dune file (ocaml#6465)
  refactor: clean up module compilation (ocaml#6461)
  doc: add button to copy code blocks in Dune manual (ocaml#6428)
  refactor: deforest a set conversion (ocaml#6473)
  refactor: remove temporary map used for sorting (ocaml#6472)
  fix(melange): handle include_subdirs unqualified (ocaml#6475)
jchavarri added a commit to jchavarri/dune that referenced this pull request Nov 16, 2022
* main:
  test(melange): demonstrate error in melange compilation trying to build @ALL (ocaml#6485)
  chore(nix): make it faster to get melange (ocaml#6347)
  refactor: status db style tweaks (ocaml#6478)
  fix: improve error message for status db (ocaml#6479)
  refactor: remove unused [flags] parameter (ocaml#6480)
  refactor(ctypes): remove pesky aliases (ocaml#6482)
  chore: tweak `hacking.rst` following `dune.exe` move to _boot (ocaml#6484)
  feature(coq): automatic detection of native
  chore(coq): bump Coq lang to 0.7
  test: disable formatting for a single dune file (ocaml#6465)
  refactor: clean up module compilation (ocaml#6461)
  doc: add button to copy code blocks in Dune manual (ocaml#6428)
  refactor: deforest a set conversion (ocaml#6473)
  refactor: remove temporary map used for sorting (ocaml#6472)
  fix(melange): handle include_subdirs unqualified (ocaml#6475)
@Alizter Alizter deleted the ps/rr/fix__improve_error_message_for_status_db branch November 26, 2022 14:46
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.

2 participants