Skip to content

First draft of "Run file as standalone bytecode executable" feature.#2190

Draft
Tim-ats-d wants to merge 2 commits into
ocamllabs:masterfrom
Tim-ats-d:exec-standalone-file
Draft

First draft of "Run file as standalone bytecode executable" feature.#2190
Tim-ats-d wants to merge 2 commits into
ocamllabs:masterfrom
Tim-ats-d:exec-standalone-file

Conversation

@Tim-ats-d

@Tim-ats-d Tim-ats-d commented Jun 25, 2026

Copy link
Copy Markdown
Contributor
  • A "run" button appears on OCaml editor trying to launch the currently visualized file:

    • If a dune-project is present at the root of the workspace, then we try to dune exec it; elsewhere, we simply use ocaml input_file.ml
  • VSCode Debug features, predefined tasks configuration are also provided

Things TODO:

  • The launch action debuggers currently fail to execute.
  • Test it on different setup
  • Add a change entry

Comment thread src/standalone_file.ml Outdated
@Tim-ats-d Tim-ats-d marked this pull request as draft June 25, 2026 13:07
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