8000 Fix utop-eval-phrase on recent tuareg-mode by Wilfred · Pull Request #241 · ocaml-community/utop · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix utop-eval-phrase on recent tuareg-mode #241

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

Merged
merged 1 commit into from
Jul 6, 2018

Conversation

Wilfred
Copy link
Contributor
@Wilfred Wilfred commented Jul 6, 2018

tuareg-next-phrase was moved to tuareg_indent.el in
ocaml/tuareg@b40e733c1 and removed entirely in
ocaml/tuareg@b2ad75f3d5 (September 2017).

As a result, utop-eval-phrase crashes due to the missing function.

Instead, write a small function to move to the next phrase, similar to
the movement logic in tuareg-eval-phrase.

tuareg-next-phrase was moved to tuareg_indent.el in
ocaml/tuareg@b40e733c1 and removed entirely in
ocaml/tuareg@b2ad75f3d5 (September 2017).

As a result, utop-eval-phrase crashes due to the missing function.

Instead, write a small function to move to the next phrase, similar to
the movement logic in tuareg-eval-phrase.
@rgrinberg
Copy link
Collaborator

Thanks. cc @Chris00 here. I realize, that it was hard to predict this breakage, but it's good to be aware of things when they break.

@rgrinberg rgrinberg merged commit 48100fc into ocaml-community:master Jul 6, 2018
@rgrinberg
Copy link
Collaborator

Perhaps we should also stop relying on the private functions from tuareg as well.

@Wilfred Wilfred deleted the fix-next-phrase branch July 6, 2018 23:34
@Wilfred
Copy link
Contributor Author
Wilfred commented Jul 6, 2018

Yep, that thought had crossed my mind. :)

I'm not sure what a good alternative would be, but this gets it working in the meantime.

rgrinberg added a commit to rgrinberg/opam-repository that referenced this pull request Jul 15, 2018
CHANGES:

* 4.07.0 compatibility (ocaml-community/utop#238, @hcarty)
* Fix compatibility with latest tuareg-mode (ocaml-community/utop#241, @Wilfred)
* Do not expand include directories (ocaml-community/utop#242, @sliquister)
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
0