janestreet / bonsai

A library for building dynamic webapps, using Js_of_ocaml
MIT License
367 stars 39 forks source link

Bonsai Compilation #31

Closed Montana closed 1 year ago

Montana commented 1 year ago

Hey all,

In this case, I don’t think the janestreet-bleeding repo solves the problem. The problem is that gen_js_api.1.0.6+newsyntax refers to some package that exists neither in that repo (gen_js_api is not a Jane Street package) nor in the main opam repo. So there’s no way to install the dependency that is needed by the latest version of Bonsai.

Here is what happens when I try to install Bonsai on a new switch with janestreet-bleeding:

opam install 'bonsai.v0.15~preview.124.13+29'
The following dependencies couldn't be met:
  - bonsai → virtual_dom >= v0.15~preview.124.13+29 → gen_js_api >= 1.0.6+newsyntax
      no matching version

No solution found, exiting.

It seems that opam wants to downgrade my version of Bonsai now as well. I’m using ocaml-4.10.0+flambda with Bonsai v0.15~preview.123.18+275, which should be close enough to run Bonsai, if not more than enough.

I'm aware there's an external-packages branch of janestreet/opam-repository. So I could just do something like:

opam repo add janestreet-external https://github.com/janestreet/opam-repository.git#external-packages

Then I could just run opam install bonsai. I thought this might work, but this didn't either.

Cheers, Montana Mendy

bcc32 commented 1 year ago

This appears to be some machine-generated nonsense that mostly quotes verbatim from https://discuss.ocaml.org/t/compiling-bonsai/7107/7. You have also posted https://github.com/janestreet/base/issues/143 and https://github.com/janestreet/core/issues/159 which also appear to be AI-generated spam issues. Please stop doing that.

Montana commented 1 year ago

Hi @bcc32,

You got it. These were questions that were never answered (or had a satisfactory answer) and I added more info than the original OP's. I apologize for the inconvenience.

Cheers, Montana