From: "numbchild@gmail.com" <numbchild@gmail.com>
To: Org-mode <emacs-orgmode@gnu.org>
Subject: ob-haskell.el evaluation error.
Date: Wed, 21 Jun 2017 13:21:13 +0800 [thread overview]
Message-ID: <CAL1eYuKnmxEBkNq=+c0SFHfj5LxB9AtdoEAenk3mH62aGFY6Gg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3609 bytes --]
Confirmed with minimal Emacs config.
I'm using latest Emacs which build from source code, and latest version
Org-mode which load from source code.
Here is the steps to reproduce the issue:
1. emacs-minimal-init (command which load minimal init file)
2. [M-x run-haskell] ; load haskell inferior for `ob-haskell`.
3. press [C-c C-c] on haskell src block like this:
#+BEGIN_SRC haskell :session "*haskell*"
1 + 9
#+END_SRC
I got error:
#+BEGIN_EXAMPLE
Debugger entered--Lisp error: (error "‘org-babel-script-escape’ expects a
string")
signal(error ("‘org-babel-script-escape’ expects a string"))
error("`org-babel-script-escape' expects a string")
org-babel-script-escape(nil)
org-babel-execute:haskell("2 + 8" ((:colname-names) (:rowname-names)
(:result-params "replace") (:result-type . value) (:results . "replace")
(:exports . "code") (:session . "none") (:cache . "no") (:noweb . "no")
(:hlines . "no") (:tangle . "no") (:padlines . "no")))
org-babel-execute-src-block(nil ("haskell" "2 + 8" ((:colname-names)
(:rowname-names) (:result-params "replace") (:result-type . value)
(:results . "replace") (:exports . "code") (:padlines . "no") (:tangle .
"no") (:hlines . "no") (:noweb . "no") (:cache . "no") (:session . "none"))
"" nil 110 "(ref:%s)"))
org-ctrl-c-ctrl-c(nil)
funcall-interactively(org-ctrl-c-ctrl-c nil)
call-interactively(org-ctrl-c-ctrl-c nil nil)
command-execute(org-ctrl-c-ctrl-c)
#+END_EXAMPLE
In ~*haskell*~ buffer:
#+BEGIN_EXAMPLE
GHCi, version 8.0.1: http://www.haskell.org/ghc/ :? for help
Loaded GHCi configuration from /home/stardiviner/.ghci
λ> 2 + 8
"org-babel-haskell-eoe"
10
λ> "org-babel-haskell-eoe"
λ> 2 + 8
"org-babel-haskell-eoe"
10
λ> "org-babel-haskell-eoe"
λ>
#+END_EXAMPLE
In other way: when I start haskell inferior process with command:
[M-x haskell-interactive-bring].
The error is:
#+BEGIN_EXAMPLE
Debugger entered--Lisp error: (error "Buffer *haskell* does not exist or
has no process")
signal(error ("Buffer *haskell* does not exist or has no process"))
error("Buffer %s does not exist or has no process" #<buffer *haskell*>)
org-babel-execute:haskell("main :: IO ()\nmain = do\n putStrLn \"Hello,
World!\"" ((:colname-names) (:rowname-names) (:result-params "replace")
(:result-type . value) (:results . "replace") (:exports . "code") (:session
. "none") (:cache . "no") (:noweb . "no") (:hlines . "no") (:tangle . "no")
(:padlines . "no")))
org-babel-execute-src-block(nil ("haskell" "main :: IO ()\nmain = do\n
putStrLn \"Hello, World!\"" ((:colname-names) (:rowname-names)
(:result-params "replace") (:result-type . value) (:results . "replace")
(:exports . "code") (:padlines . "no") (:tangle . "no") (:hlines . "no")
(:noweb . "no") (:cache . "no") (:session . "none")) "" nil 53 "(ref:%s)"))
org-ctrl-c-ctrl-c(nil)
funcall-interactively(org-ctrl-c-ctrl-c nil)
call-interactively(org-ctrl-c-ctrl-c nil nil)
command-execute(org-ctrl-c-ctrl-c)
#+END_EXAMPLE
*Problem*:
=haskell-interactive-bring= started =*haskell*= process buffer does not
work with
Org-mode Babel ob-haskell's session =*haskell*=.
But I have process buffer ~*haskell*~ running.
This is weird.
I used to report error at here:
https://github.com/haskell/haskell-mode/issues/1429
[stardiviner] <Hack this world!> GPG key ID: 47C32433
IRC(freeenode): stardiviner Twitter: @numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/
[-- Attachment #2: Type: text/html, Size: 9255 bytes --]
reply other threads:[~2017-06-21 5:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAL1eYuKnmxEBkNq=+c0SFHfj5LxB9AtdoEAenk3mH62aGFY6Gg@mail.gmail.com' \
--to=numbchild@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public 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).