Giter Club home page Giter Club logo

Comments (5)

smondet avatar smondet commented on September 9, 2024

Confirming that the upgrade to v0.9.0 causes this, and js_of_ocaml reports:

There are some missing primitives
Dummy implementations (raising 'Failure' exception) will be used if they are not available at runtime.
You can prevent the generation of dummy implementations with the commandline option '--disable genprim'
Missing primitives:
  Base_am_testing

from ppx_inline_test.

hhugo avatar hhugo commented on September 9, 2024

this is coming from base (https://github.com/janestreet/base/blob/711aa92e22ba8904e9a247666c7caabcdd711682/src/import0.ml#L246).

You should be able to get the right runtime.js with
js_of_ocaml +base/runtime.js main.byte

from ppx_inline_test.

smondet avatar smondet commented on September 9, 2024

@hhugo So I tracked down why I am using base; and it's because now the dependencies have been "inverted" Sexplib now depends on Base http://opam.ocaml.org/packages/sexplib/sexplib.v0.9.0/. But why?

from ppx_inline_test.

 avatar commented on September 9, 2024

@smondet we made this decision for two reasons:

  1. so that Base can use S-expression and still have no dependency
  2. so that the code of Sexplib can benefit from using Base

(2) was one of the reason we started Base. There is a lot of code in the libraries that come before Core_kernel: sexplib, bin_prot, typerep, ... And often when we improved a standard thing in Core_kernel, the code before it didn't benefited from the improvement. Having Base as the root package allows to desgin all of the codebase using the same base.

from ppx_inline_test.

hhugo avatar hhugo commented on September 9, 2024

I believe this is fixed by the latest JaneStreet releases. reopen if you still have issues.

from ppx_inline_test.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.