Bug#942294: scide can not display example codes in Help browser
Package: supercollider
Version: 1:3.10.0+repack-1
Dear Maintainer,
On startup scide shows errors and can not display example codes in Help
browser.
$ scide &
*** ERROR in JavaScript: "Uncaught ReferenceError: $ is not defined"
* line: 215
* source ID: "file:///home/sohet/.local/share/SuperCollider/Help/scdoc.js"
*** ERROR in JavaScript: "Uncaught ReferenceError: CodeMirror is not defined"
* line: 3
* source ID: "file:///home/sohet/.local/share/SuperCollider/Help/editor.js"
*** ERROR in JavaScript: "Uncaught ReferenceError: $ is not defined"
* line: 157
* source ID: "file:///home/sohet/.local/share/SuperCollider/Help/scdoc.js"
Symlinks in ~/.local/share/SuperCollider/Help/lib are broken.
$ ls -l ~/.local/share/SuperCollider/Help/lib
total 0
lrwxrwxrwx 1 sohet sohet 46 Oct 14 09:53 codemirror-5.39.2.min.js -> ../../../javascript/codemirror/codemirror.js
lrwxrwxrwx 1 sohet sohet 54 Oct 14 09:54 codemirror-addon-simple-5.39.2.min.js -> ../../../javascript/codemirror/addon/mode/simple.js
lrwxrwxrwx 1 sohet sohet 42 Oct 14 09:54 jquery.min.js -> ../../../javascript/jquery/jquery.min.js
When I install libjs-jquery and libjs-codemirror, and link to them, then
scide displays example codes well in Help browser.
$ ls -l ~/.local/share/SuperCollider/Help/lib
total 0
lrwxrwxrwx 1 sohet sohet 46 Oct 14 09:53 codemirror-5.39.2.min.js -> /usr/share/javascript/codemirror/codemirror.js
lrwxrwxrwx 1 sohet sohet 54 Oct 14 09:54 codemirror-addon-simple-5.39.2.min.js -> /usr/share/javascript/codemirror/addon/mode/simple.js
lrwxrwxrwx 1 sohet sohet 42 Oct 14 09:54 jquery.min.js -> /usr/share/javascript/jquery/jquery.min.js
The bug has also been reported elsewhere.
<https://bugs.launchpad.net/ubuntu/+source/supercollider/+bug/1833752>
<https://github.com/supercollider/supercollider/issues/4367>
Reply to: