emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug: JS code in code block isn't executed, it throws an error [9.3.6 (9


From: Sergey
Subject: Bug: JS code in code block isn't executed, it throws an error [9.3.6 (9.3.6-25-g685b2c-elpaplus @ /Users/serg/.spacemacs-emacs/elpa/28.0/develop/org-plus-contrib-20200316/)]
Date: Sun, 22 Mar 2020 20:45:07 +0300


Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

     https://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------

# The code block

```
#+BEGIN_SRC js
console.log('test')
#+END_SRC
```

# The error itself

```
/private/var/folders/1t/d2tthcgx6pqd831qg5nbc5vm0000gn/T/babel-pRbyYA/js-script-RJxHlE:1
require('sys').print(require('sys').inspect(function(){
               ^

TypeError: require(...).print is not a function
    at Object.<anonymous> 
(/private/var/folders/1t/d2tthcgx6pqd831qg5nbc5vm0000gn/T/babel-pRbyYA/js-script-RJxHlE:1:16)
    at Module._compile (internal/modules/cjs/loader.js:1147:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1167:10)
    at Module.load (internal/modules/cjs/loader.js:996:32)
    at Function.Module._load (internal/modules/cjs/loader.js:896:14)
    at Function.executeUserEntryPoint [as runMain] 
(internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47

```


Emacs  : GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin19.3.0, NS 
appkit-1894.30 Version 10.15.3 (Build 19D76))
of 2020-03-21
Package: Org mode version 9.3.6 (9.3.6-25-g685b2c-elpaplus @ 
/Users/serg/.spacemacs-emacs/elpa/28.0/develop/org-plus-contrib-20200316/)

current state:
==============
(setq
org-src-mode-hook '(org-src-babel-configure-edit-buffer 
org-src-mode-configure-edit-buffer)
org-link-shell-confirm-function 'yes-or-no-p
org-babel-after-execute-hook '(spacemacs/ob-fix-inline-images)
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function
org-src-tab-acts-natively t
org-odt-format-headline-function 'org-odt-format-headline-default-function
org-imenu-depth 8
org-download-annotate-function 'org-download-annotate-default
org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
org-mode-hook '(#[0 "\300\301\302\303\304$\207"
                   [add-hook change-major-mode-hook org-show-all append local] 
5]
                 #[0 "\300\301\302\303\304$\207"
                   [add-hook change-major-mode-hook org-babel-show-result-all 
append local] 5]
                 org-babel-result-hide-spec org-babel-hide-all-hashes
                 #[0 "\301\211\207" [imenu-create-index-function 
org-imenu-get-tree] 2]
                 spacemacs/org-setup-evil-surround spacemacs/load-yasnippet 
toc-org-enable
                 org-download-enable org-bullets-mode 
dotspacemacs//prettify-spacemacs-docs
                 spacemacs//org-babel-do-load-languages 
spacemacs//evil-org-mode org-eldoc-load
                 spacemacs//init-company-org-mode company-mode)
org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
org-archive-hook '(org-attach-archive-delete-maybe)
org-agenda-restore-windows-after-quit t
org-confirm-elisp-link-function 'yes-or-no-p
org-startup-with-inline-images t
org-download-file-format-function 'org-download-file-format-default
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-metaup-hook '(org-babel-load-in-session-maybe)
org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 "\n\n(fn 
ENTRY)"]
org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"]
org-babel-pre-tangle-hook '(save-buffer)
org-tab-first-hook '(org-babel-hide-result-toggle-maybe 
org-babel-header-arg-expand)
org-babel-load-languages '((js . t) (shell . t) (emacs-lisp . t))
org-log-done 'time
org-ascii-format-drawer-function #[771 "\207" [] 4 "\n\n(fn NAME CONTENTS 
WIDTH)"]
org-src-lang-modes '(("arduino" . arduino) ("redis" . redis) ("php" . php) ("C" 
. c) ("C++" . c++)
                      ("asymptote" . asy) ("bash" . sh) ("beamer" . latex) 
("calc" . fundamental)
                      ("cpp" . c++) ("ditaa" . artist) ("dot" . fundamental) 
("elisp" . emacs-lisp)
                      ("ocaml" . tuareg) ("screen" . shell-script) ("shell" . 
sh) ("sqlite" . sql))
org-occur-hook '(org-first-headline-recenter)
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines
                  org-optimize-window-after-visibility-change)
org-speed-command-hook '(org-speed-command-activate 
org-babel-speed-command-activate)
org-clock-persist-file "/Users/serg/.spacemacs-emacs/.cache/org-clock-save.el"
org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-function
org-latex-prefer-user-labels t
org-publish-timestamp-directory 
"/Users/serg/.spacemacs-emacs/.cache/.org-timestamps/"
org-export-async-init-file 
"/Users/serg/.spacemacs-emacs/layers/+emacs/org/local/org-async-init.el"
org-id-locations-file "/Users/serg/.spacemacs-emacs/.cache/.org-id-locations"
org-confirm-shell-link-function 'yes-or-no-p
org-link-parameters '(("attachment" :follow org-attach-open-link :export 
org-attach-export-link
                        :complete org-attach-complete-link)
                       ("id" :follow org-id-open) ("eww" :follow eww :store 
org-eww-store-link)
                       ("rmail" :follow org-rmail-open :store 
org-rmail-store-link)
                       ("mhe" :follow org-mhe-open :store org-mhe-store-link)
                       ("irc" :follow org-irc-visit :store org-irc-store-link 
:export org-irc-export)
                       ("info" :follow org-info-open :export org-info-export 
:store
                        org-info-store-link)
                       ("gnus" :follow org-gnus-open :store org-gnus-store-link)
                       ("docview" :follow org-docview-open :export 
org-docview-export :store
                        org-docview-store-link)
                       ("bibtex" :follow org-bibtex-open :store 
org-bibtex-store-link)
                       ("bbdb" :follow org-bbdb-open :export org-bbdb-export 
:complete
                        org-bbdb-complete-link :store org-bbdb-store-link)
                       ("w3m" :store org-w3m-store-link)
                       ("orgit-rev" :store orgit-rev-store :follow 
orgit-rev-open :export
                        orgit-rev-export :complete orgit-rev-complete-link)
                       ("orgit-log" :store orgit-log-store :follow 
orgit-log-open :export
                        orgit-log-export :complete orgit-log-complete-link)
                       ("orgit" :store orgit-status-store :follow 
orgit-status-open :export
                        orgit-status-export :complete 
orgit-status-complete-link)
                       ("file+sys") ("file+emacs") ("shell" :follow 
org-link--open-shell)
                       ("news" :follow
                        #[257 "\301\300\302Q!\207" ["news" browse-url ":"] 5 
"\n\n(fn URL)"])
                       ("mailto" :follow
                        #[257 "\301\300\302Q!\207" ["mailto" browse-url ":"] 5 
"\n\n(fn URL)"])
                       ("https" :follow
                        #[257 "\301\300\302Q!\207" ["https" browse-url ":"] 5 
"\n\n(fn URL)"])
                       ("http" :follow
                        #[257 "\301\300\302Q!\207" ["http" browse-url ":"] 5 
"\n\n(fn URL)"])
                       ("ftp" :follow
                        #[257 "\301\300\302Q!\207" ["ftp" browse-url ":"] 5 
"\n\n(fn URL)"])
                       ("help" :follow org-link--open-help)
                       ("file" :complete org-link-complete-file)
                       ("elisp" :follow org-link--open-elisp) ("doi" :follow 
org-link--open-doi))
org-latex-format-headline-function 'org-latex-format-headline-default-function
org-present-mode-hook '(spacemacs//org-present-start)
org-link-translation-function 'toc-org-unhrefify
org-link-elisp-confirm-function 'yes-or-no-p
org-latex-format-inlinetask-function 
'org-latex-format-inlinetask-default-function
org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
org-image-actual-width nil
org-present-mode-quit-hook '(spacemacs//org-present-end)
org-html-format-headline-function 'org-html-format-headline-default-function
org-directory "~/.org-notes/"
org-download-link-format-function 'org-download-link-format-function-default
org-download-abbreviate-filename-function 'file-relative-name
org-default-notes-file "/Users/serg/org/notes.org"
)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]