Git Product home page Git Product logo

Comments (5)

ljos avatar ljos commented on June 17, 2024

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.

ljos avatar ljos commented on June 17, 2024

The error should now not show anymore.

from ob-prolog.

borgauf avatar borgauf commented on June 17, 2024

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.

borgauf avatar borgauf commented on June 17, 2024

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.

ljos avatar ljos commented on June 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.