Giter Club home page Giter Club logo

Comments (2)

alphapapa avatar alphapapa commented on July 28, 2024

Hi,

Thanks for reporting. I don't use this feature often, so I'm not as likely to notice if something breaks. It's possible that a change in Helm or in Org has caused this.

I would be glad if you could help debug it! Here's what I'd suggest:

  1. The error you showed involves a byte-compiled function. You should get a more useful error if the function isn't byte-compiled. So open helm-org-rifle.el and eval-buffer it, then do the action again.
  2. Use toggle-debug-on-error to enable a full backtrace.

Together, that will probably be enough to locate the problem. If not, you can try using Edebug. Edebug is powerful but complicated. It's thoroughly described in the manual, but the simplest way to use it is:

  1. In the source code buffer, put point on or in a function you want to debug.
  2. C-u C-M-x for edebug-defun.
  3. Perform the action that runs the code. Execution will stop when reaching the debugged function. You can then step through it with n, SPC, o, g, etc, and q to exit.

However, note that debugging within Helm sessions can be tricky because of changing buffers, windows, etc. Sometimes it's necessary to C-g here or there, change the active window, etc. to exit the debugging session and restore control flow. I got the hang of it after a while, but it's hard to explain, more like a learned intuition. So in some cases, it may be easier to use old-fashioned message calls for debugging than Edebug.

BTW, I'd recommend doing the debugging first in a clean config. You can easily use https://github.com/alphapapa/makem.sh to set one up (I haven't added that script to this package yet). For example:

$ cp ../makem.sh/makem.sh .
$ mkdir sandbox
$ ./makem.sh --sandbox-dir sandbox --auto-install interactive

That will install the latest version of all dependencies (except Org, which you will need to update manually if you want a newer version) into a new, permanent sandbox directory and launch an interactive Emacs session with helm-org-rifle already loaded from the local repo. Then you can proceed with debugging it without local configuration getting in the way.

from org-rifle.

Hurricos avatar Hurricos commented on July 28, 2024

Hi there,

This is still an issue. I'll help debug if I find time -- my error is:

funcall-interactively: Wrong number of arguments: #[(candidate) "������A�¢�
�r�q�b�Š-�" [candidate input0 --dash-source-3-- buffer pos org-refile] 3 ("/home/mkennedy/.emacs.d/elpa/helm-org-rifle-20200512.1943/helm-org-rifle.elc" . 34384) nil], 0

from org-rifle.

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.