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

Run local installation of OCaml on macOS if installed #20

Open
nathanfallet opened this issue May 6, 2021 · 1 comment
Open

Run local installation of OCaml on macOS if installed #20

nathanfallet opened this issue May 6, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@nathanfallet
Copy link
Owner

Is your feature request related to a problem? Please describe.
When the app is running on a mac where OCaml is installed, the installed version of OCaml can be used instead of the javascript environment.

Describe the solution you'd like
When the console starts loading, check if OCaml is installed on the system, and if so, open a toplevel from it.

Additional context
Can use Process class on macOS: https://www.hackingwithswift.com/example-code/system/how-to-run-an-external-program-using-process
Check if ocaml is installed:

if which ocaml >/dev/null; then 
  echo "ocaml installed"
else
  echo "ocaml not installed"
fi
@nathanfallet nathanfallet added the enhancement New feature or request label May 6, 2021
@nathanfallet nathanfallet self-assigned this May 22, 2021
@nathanfallet
Copy link
Owner Author

What left:

  • Use readabilityHandler (see https://stackoverflow.com/a/38088651/8261566)
  • Check for local installation (just check if ocaml executable file exists)
  • Fix comment removal (currently not optimized at all)
  • Sync in and out in the console (not all inputs and then all outputs)

@nathanfallet nathanfallet added ios Issue targeting the iOS app and removed ios Issue targeting the iOS app labels May 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant