Comments (5)
When running as a script prolog doesn't do any output unless you print it to the screen yourself with e.g. write
or format
. If run in a session you will see the output that you are looking for. I think the error is from org-babel trying to read the results and not finding anything. I will look into it.
from ob-prolog.
The error should now not show anymore.
from ob-prolog.
Got your update. I'm still not getting any output after loading the factorial code above with
#+BEGIN_SRC prolog
factorial(10,What).
#+END_SRC
I'm used to org-mode babel giving me output on a code block like this. Also, no Prolog REPL is started. *Messages* says it's writing to /tmp/babel..., but it's only echoing the command. How can I get the "usual" babel behavior?
from ob-prolog.
Not sure if related, but elpa's prolog mode 1.22 (from marmalade) has a bug that I've reported https://github.com/usergenic/emacs.d/issues/1.
from ob-prolog.
Sorry I've been a bit slow on this, but I think that it is doing what it is supposed to be doing. If don't print anything, what do you expect a program to return? If you run the program in a session you can get the output that I think you are after, but running a program that has no output shouldn't give any output either.
from ob-prolog.
Related Issues (20)
- Gives error: Wrong number of arguments: (1 . 1), 2 HOT 1
- create_prolog_flag/3 error upon using ob-prolog HOT 3
- Symbol's function definition is void: org-babel--get-vars
- org-babel-load-session:prolog has unnecessary parameters HOT 7
- Use of obsolete function in org-babel-prolog--parse-goal
- Code block produced no output HOT 2
- Implement org-babel-variable-assignments:prolog
- emacs hangs when executing the following block HOT 1
- Can't make it work. . . HOT 8
- Not working for me HOT 4
- Symbol’s function definition is void: prolog-program-switches
- Querying without adding to database? HOT 2
- Session freezes on 'Correct to "..."?'
- Convert prolog output according to specification HOT 1
- Make :goal also able to expand elisp
- Check if there are any header arguments that ob-prolog should support
- Stack overflow when trying to run the example HOT 4
- Goals with shell special characters fail
- Variables doesn't show up in external exec results HOT 1
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 ob-prolog.