emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: [ob-js] error: require(...).print is not a function [9.3 (release_9.3 @ /Users/xcy/src/emacs-mac/lisp/org/)]
@ 2020-12-02  7:42 Xu Chunyang
  2020-12-05 17:21 ` edwargix
  0 siblings, 1 reply; 2+ messages in thread
From: Xu Chunyang @ 2020-12-02  7:42 UTC (permalink / raw)
  To: emacs-orgmode

* The issue

ob-js does not work for me, e.g.,

#+begin_src js
1 + 2
#+end_src

throws the error:

/private/var/folders/7f/s191h4q97p90374yw15ssrs00000gn/T/babel-gBvsRp/js-script-zTHHhe:1
require('sys').print(require('sys').inspect(function(){
               ^

TypeError: require(...).print is not a function
    at Object.<anonymous>
(/private/var/folders/7f/s191h4q97p90374yw15ssrs00000gn/T/babel-gBvsRp/js-script-zTHHhe:1:16)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Function.executeUserEntryPoint [as runMain]
(internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47

* Information

M-! node -v
v14.15.0

Emacs  : GNU Emacs 27.1 (build 2, x86_64-apple-darwin19.6.0, Carbon
Version 162 AppKit 1894.6)
 of 2020-11-11
Package: Org mode version 9.3 (release_9.3 @ /Users/xcy/src/emacs-mac/lisp/org/)

* Another issue: What's SBCL in the commentary?

;;; Commentary:

;; Now working with SBCL for both session and external evaluation.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bug: [ob-js] error: require(...).print is not a function [9.3 (release_9.3 @ /Users/xcy/src/emacs-mac/lisp/org/)]
  2020-12-02  7:42 Bug: [ob-js] error: require(...).print is not a function [9.3 (release_9.3 @ /Users/xcy/src/emacs-mac/lisp/org/)] Xu Chunyang
@ 2020-12-05 17:21 ` edwargix
  0 siblings, 0 replies; 2+ messages in thread
From: edwargix @ 2020-12-05 17:21 UTC (permalink / raw)
  To: Xu Chunyang; +Cc: emacs-orgmode

Xu Chunyang <xuchunyang56@gmail.com> writes:

> * Another issue: What's SBCL in the commentary?

SBCL stands for "Steel Bank Common Lisp" and is a high-performance
(arguably *the* most highly performant) Common Lisp compiler and
interpreter. More info here: http://www.sbcl.org/

I would highly doubt that SCBL has anything to do with your JS problem.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-05 17:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-02  7:42 Bug: [ob-js] error: require(...).print is not a function [9.3 (release_9.3 @ /Users/xcy/src/emacs-mac/lisp/org/)] Xu Chunyang
2020-12-05 17:21 ` edwargix

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).