Giter Site home page Giter Site logo

Comments (6)

ndwarshuis avatar ndwarshuis commented on July 19, 2024

Can you post what headlines seem to be causing the problem? I've also never tested this on mac; I know there are a few problems in windows.

from org-sql.

plur9 avatar plur9 commented on July 19, 2024

Sure. Here it is:

  • TODO Task 1
  • Inserted task
  • TODO Task 2
    ** TODO Another task
  • [#B] One more

Interesting to note is also that update in general doesn't work second time. For example:

  • reset => OK
  • update (4 records) => OK
  • delete one heading
  • update (3 records) => says OK but nothing changes in db

from org-sql.

ndwarshuis avatar ndwarshuis commented on July 19, 2024

I can't reproduce this on my system but I'm using linux and I don't have a Mac to test this. It sounds like the SQL buffer is getting hung on a command that isn't completing. Two things:

  1. Try deleting the *SQL: Org* buffer (and killing the process) after the hang and repeating the commands in the OP. Since you probably won't be able to do anything when org-sql is hung, Ctrl-G should kill the command and allow you to kill the buffer.
  2. If 1 succeeds, go into the source code and run edebug-eval-top-level-form on the function org-sql-user-update right before running the command that hangs (this will run the debugger whenever org-sql-user-update is called). Run the hanging command and step through the function (press space repeatedly) and you will see output in the minibuffer as you evaluate each sexp. Post the output that shows up after stepping through (org-sql-update-db) (if it is normal it should be (nil nil nil) but I'm guessing it will have some error message in the place of one of the nils.)

from org-sql.

ndwarshuis avatar ndwarshuis commented on July 19, 2024

To make 2 easier above, I just pushed a commit that will print the errors you are supposed to see if they exist and you follow the edebug steps. 58a2482 adds a debug option which can be enabled by running (setq org-sql-debug t). If necessary, please activate this and run your command sequence again instead of 2, and post the output here if it says anything besides "Run successfully" or "Not run".

from org-sql.

vonHabsi avatar vonHabsi commented on July 19, 2024

Consider running .trace and .log statements in the SQL: Org buffer before executing org-sql-user-reset and org-sql-user-update. The .help command will give you more info on it.

That's what helped me to diagnose my issue

from org-sql.

plur9 avatar plur9 commented on July 19, 2024

Awesome! Plan to give it a try asap when I get some time. Will report.

from org-sql.

Related Issues (16)

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.