8000 fix: stop using slang parser in regular dune files by gridbugs · Pull Request #9530 · ocaml/dune · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: stop using slang parser in regular dune files #9530

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

Conversation

gridbugs
Copy link
Collaborator

This was accidentally used to parse run actions in regular dune files. This was problematic as the slang dsl is still experimental and intended for use in package management only at least for now. This change specializes the parser used for run actions so that the slang dsl parser is only used when parsing lockfiles.

This was accidentally used to parse run actions in regular dune files.
This was problematic as the slang dsl is still experimental and intended
for use in package management only at least for now. This change
specializes the parser used for run actions so that the slang dsl parser
is only used when parsing lockfiles.

Signed-off-by: Stephen Sherratt <stephen@sherra.tt>
@gridbugs gridbugs requested a review from rgrinberg December 19, 2023 01:22
@gridbugs
Copy link
Collaborator Author

fixes #9529

Copy link
Member
@rgrinberg rgrinberg left a comment

Choose a reason for hiding this comment

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

LGTM. Although should we just fix the bug with slang?

@gridbugs
Copy link
Collaborator Author

Yeh I'll definitely fix the bug with slang (though I'm starting to think it's a more general bug). Regardless, since slang is still quite experimental I don't think we should be exposing it to non-pkg yet.

@gridbugs gridbugs merged commit 8a91310 into ocaml:main Dec 19, 2023
@gridbugs gridbugs deleted the stop-parsing-regular-dune-files-with-slang-parser branch December 19, 2023 05:56
@emillon emillon mentioned this pull request Jan 5, 2024
10 tasks
@emillon emillon linked an issue Jan 5, 2024 that may be closed by this pull request
emillon pushed a commit to emillon/dune that referenced this pull request Jan 5, 2024
This was accidentally used to parse run actions in regular dune files.
This was problematic as the slang dsl is still experimental and intended
for use in package management only at least for now. This change
specializes the parser used for run actions so that the slang dsl parser
is only used when parsing lockfiles.

Signed-off-by: Stephen Sherratt <stephen@sherra.tt>
emillon pushed a commit to emillon/dune that referenced this pull request Jan 5, 2024
This was accidentally used to parse run actions in regular dune files.
This was problematic as the slang dsl is still experimental and intended
for use in package management only at least for now. This change
specializes the parser used for run actions so that the slang dsl parser
is only used when parsing lockfiles.

Signed-off-by: Stephen Sherratt <stephen
8000
@sherra.tt>
emillon added a commit that referenced this pull request Jan 5, 2024
* Add test for parse error when using run action (#9528)

Signed-off-by: Stephen Sherratt <stephen@sherra.tt>

* fix: stop using slang parser in regular dune files (#9530)

This was accidentally used to parse run actions in regular dune files.
This was problematic as the slang dsl is still experimental and intended
for use in package management only at least for now. This change
specializes the parser used for run actions so that the slang dsl parser
is only used when parsing lockfiles.

Signed-off-by: Stephen Sherratt <stephen@sherra.tt>

* chore: add metadata (xref, changelog) for 9530 (#9634)

Signed-off-by: Etienne Millon <me@emillon.org>

---------

Signed-off-by: Stephen Sherratt <stephen@sherra.tt>
Signed-off-by: Etienne Millon <me@emillon.org>
Co-authored-by: Stephen Sherratt <stephen@sherra.tt>
emillon added a commit to emillon/opam-repository that referenced this pull request Jan 5, 2024
CHANGES:

- Fix version check in `runtest_alias` for `cram` stanza (ocaml/dune#9454, @emillon)

- Fix stack overflow when a `(run)` action can not be parsed. (ocaml/dune#9530, fixes
  ocaml/dune#9529, @gridbugs)
nberth pushed a commit to nberth/opam-repository that referenced this pull request Jun 18, 2024
CHANGES:

- Fix version check in `runtest_alias` for `cram` stanza (ocaml/dune#9454, @emillon)

- Fix stack overflow when a `(run)` action can not be parsed. (ocaml/dune#9530, fixes
  ocaml/dune#9529, @gridbugs)
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.

Stack overflow on parse error in run action
2 participants
0