Fuco1 / org-clock-budget

Budget your time with org!
77 stars 5 forks source link

(wrong-number-of-arguments (1 . 1) 2) in org-clock-sum when trying to run #5

Closed boudiccas closed 6 months ago

boudiccas commented 7 years ago

I'm getting an error report when I try to run org-clock-budget which says

(wrong-number-of-arguments (1 . 1) 2) in org-clock-sum

Nothing has changed in my setup, and I'm guessing that its related to something with the actual time clocking. Can you give me any guidance as to what is wrong please?

alphapapa commented 7 years ago

Are you running maint or master then?

boudiccas commented 7 years ago

master

alphapapa commented 7 years ago

Yes, that explains it, as the fix was erroneously applied to maint instead of master. That still needs to be fixed, AFAIK, although since Org 9.1 is about to be released, I guess it won't matter then.

alphapapa commented 7 years ago

By the way, I just noticed this in a message from Nicolas Goaziou; it might be part of the problem:

As I wrote, it is still a problem of mixed installation. Quoting the manual

Recent Emacs distributions include a packaging system which lets you install Elisp libraries. You can install Org with ‘M-x package-install RET org’.

Important: you need to do this in a session where no ‘.org’ file has been visited, i.e., where no Org built-in function have been loaded. Otherwise autoload Org functions will mess up the installation.

Then, to make sure your Org configuration is taken into account, initialize the package system with ‘(package-initialize)’ in your ‘.emacs’ before setting any Org option. If you want to use Org’s package repository, check out the Org ELPA page (http://orgmode.org/elpa.html).

Some users install Org launching a new Emacs session without any configuration file.

boudiccas commented 7 years ago

I've got org-clock-budget working in org version 9.1!

Using the stock install doesn't allow org-clock-budget to work, however, if you include this -

(setq org-agenda-show-future-repeats nil)

it works! However, there is one caveat - it doesn't allow you to just use hours (which I think is org-clock-budget's default), instead it uses like this '1d 10:34', or '20d 20:00'. I don't know if org-clock-budget could be tweaked to get back to the original hours, which I much prefer, or is there some other way in which we can get org-clock-budget displaying back in hours please?

I have no idea what jiggery-pokery is going on under the bonnet, but hey-ho, its works!

Fuco1 commented 7 years ago

I've changed my workflow in the last year or so and haven't used this much but I'm thinking getting back to my old way of doing things. I will have a look but can't promise as to when.