Comments (15)
The missing fonts make sense (our favorite font has a complex license that doesn't make it clear we can redistribute it with the source, check in the static/fonts/
subdirectory to manually include it) ; but the CSS is normally configured with sane fallbacks. This is mentionned in the License and Copyright section of the README.
The replace is not a function
error seems more worrying to me, do you know where it comes from?
from learn-ocaml.
Hmm, no. This is the first time I meet this one.
My version of js_of_ocaml is 3.2.1.
from learn-ocaml.
Might be related indeed, I have only tested with jsoo 3.1.0 (which is the one indicated in the opam file).
Was the basic functionality working?
from learn-ocaml.
The web user interface is out of order. However, I can interact with the server using learn-ocaml-client
.
from learn-ocaml.
Isn't it strange that opam installed 3.2.1 instead of 3.1.0 given that I followed the installation procedure to install learn-ocaml's opam dependencies?
from learn-ocaml.
Did you update you opam environment recently? It might be related to js_of_ocaml "sub" packages (js_of_ocaml-lwt for example) not in the sync, i.e. with a different version than js_of_ocaml. I had the same issue once, after an opam update.
from learn-ocaml.
Thanks @OCamlPro-Couderc, that might be the case indeed!
from learn-ocaml.
There is something weird in my opam installation. Look:
ann➜teaching/learn-ocaml/learn-ocaml(docs-classroom)» opam install js_of_ocaml.3.1.0 [9:43:23]
[NOTE] Package js_of_ocaml is already installed (current version is 3.1.0).
yann➜teaching/learn-ocaml/learn-ocaml(docs-classroom)» js_of_ocaml --version [9:43:27]
3.2.1
yann➜teaching/learn-ocaml/learn-ocaml(docs-classroom)» which js_of_ocaml [9:43:33]
/home/yann/git/teaching/learn-ocaml/learn-ocaml/_opam/bin/js_of_ocaml
yann➜teaching/learn-ocaml/learn-ocaml(docs-classroom)» _opam/bin/js_of_ocaml --version [9:43:43]
3.2.1
yann➜teaching/learn-ocaml/learn-ocaml(docs-classroom)» echo $PATH [9:44:03]
/home/yann/git/teaching/learn-ocaml/learn-ocaml/_opam/bin:/home/yann/usr/bin:/home/yann/.opam/4.05.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
from learn-ocaml.
Pff, that's really on the js_of_ocaml package maintainers...
I had a PR for this but only fixed part of the missing constraints.
@yurug, can you check opam list js_of_ocaml\*
?
from learn-ocaml.
Things are getting stranger:
» opam list js_of_ocaml\*
# Packages matching: (installed | available) & name-match(js_of_ocaml*)
# Name # Installed # Synopsis
js_of_ocaml 3.1.0 Compiler from OCaml bytecode to Javascript
js_of_ocaml-camlp4 3.1.0 Compiler from OCaml bytecode to Javascript
js_of_ocaml-compiler 3.2.1 Compiler from OCaml bytecode to Javascript
js_of_ocaml-lwt 3.1.0 Compiler from OCaml bytecode to Javascript
js_of_ocaml-ocamlbuild -- Compiler from OCaml bytecode to Javascript
js_of_ocaml-ppx 3.2.0 Compiler from OCaml bytecode to Javascript
js_of_ocaml-ppx_deriving_json -- Compiler from OCaml bytecode to Javascript
js_of_ocaml-toplevel 3.2.0 Compiler from OCaml bytecode to Javascript
js_of_ocaml-tyxml 3.2.0 Compiler from OCaml bytecode to Javascript
from learn-ocaml.
opam install js_of_ocaml-compiler.3.1.0
fixed the problem.
We probably should fill an issue on the js_of_ocaml-compiler side and declare this specific version of the compiler package in our opam file.
from learn-ocaml.
So this explains that: it's indeed the broken dependency constraints in opam-repository that led you to have inconsistent versions of the various jsoo packages, leading to a broken install.
opam install js_of_ocaml-compiler.3.1.0 js_of_ocaml-ocamlbuild.3.1.0 js_of_ocaml-ppx.3.1.0 js_of_ocaml-toplevel.3.1.0 js_of_ocaml-tyxml.3.1.0
should fix it manually
from learn-ocaml.
It seems to me that the issue is not with inter-dependencies but with js_of_ocaml-compiler.3.2.1 itself.
@AltGr, why do you think different versions matter here?
from learn-ocaml.
Err, I don't know actually, maybe I jumped to conclusions. Just tried upgrading all to their latest versions, and the problems seem to be gone, though.
from learn-ocaml.
ocamlbuild
-use-ocamlfind
-plugin-tag "package(js_of_ocaml.ocamlbuild)"
-no-links
main.d.js
- ocamlfind ocamlopt -package unix -package ocamlbuild -linkpkg -package js_of_ocaml.ocamlbuild myocamlbuild.ml /usr/lib/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
ocamlfind: Package `js_of_ocaml.ocamlbuild' not found
Command exited with code 2.
Compilation unsuccessful after building 1 target (0 cached) in 00:00:00.
Makefile:3: recipe for target 'all' failed
make: *** [all] Error 10
I am getting this error when i try to run make command
from learn-ocaml.
Related Issues (20)
- Bug: Stack overflows on Safari
- Feature: Add feedback button in student UI ?
- Question: Why https://ocaml.org/p/learn-ocaml/latest says `Documentation status is unknown`? HOT 2
- Feature: View synced (not graded) version of students' code HOT 3
- Feature: Add a selector to hide tokens from partition-view pages HOT 1
- Feature: Ensure `learn-ocaml build serve` immediately handles requests at second run HOT 1
- Task: Integrate feedback from https://github.com/ocsigen/js_of_ocaml/issues/1436
- Feature: Add ability to assign different exercises to each student automatically
- Feature: Add multiple choice questions to the description page
- Bug: the Closed/Open state should appear for Assigned exercises HOT 1
- Feature: Add automated comment in PRs when `static-builds.yml` succeeded
- Feature: rewrite URLs so that `%3D` chars are rendered as `=` HOT 3
- Feature: compatibility with reverse proxy headers (X-Real-IP and/or X-Forwarded-For)
- Bug: learn-ocaml master builds with many warnings HOT 2
- Bug: we always get "0 codes were not graded"
- Minor bug: `docker/build-and-push` does not include labels
- Question: open several issues in teaching-feedback as "FAQ"?
- Task: Reduce the CI/CD redundancy
- Bug: file `translations/fr.po.header` is missing HOT 1
- Bug: potential dead CSS code in `learnocaml_student_view.css`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from learn-ocaml.