christopherjwhite / org-toodledo

Emacs enhancement for syncing org-mode tasks with Toodledlo
83 stars 16 forks source link

Problem with (require 'org-toodledo) #42

Open inuse opened 9 years ago

inuse commented 9 years ago

emacs 24.3.1 on ubuntu org-toodledo: Version: 20140331.606 org: Version: 20140825 both from melpa, toodledo sync was working very well until I foolishly upgraded org and org-toodledo

This is the error on startup, doesn't complete the load. Any ideas?

Debugger entered--Lisp error: (void-variable org-toodledo-fields)
byte-code("\301\302\303\304^H\"\"\207" [org-toodledo-fields remove nil mapcar #[(f) "^H       \235?\205^H^@^H\207" [f org-toodledo-fields-dont-ask] 2]] 5)
(defvar org-toodledo-fields-ask (byte-code "\301\302\303\304^H\"\"\207" [org-toodledo-fields remove nil mapcar #[(f) "^H      \235?\205^H^@^H\207" [f org-toodledo-fields-dont-ask] 2]] 5) ("/home/gdunn/.emacs.$
require(org-toodledo)
eval-buffer(#<buffer  *load*> nil "/home/gdunn/.emacs" nil t)  ; Reading at buffer position 755
load-with-code-conversion("/home/gdunn/.emacs" "/home/gdunn/.emacs" t t)
load("~/.emacs" t t)
#[0 "^H\205\262^@     \306=\203^Q^@\307^H\310Q\202;^@ \311=\204^^^@\307^H\312Q\202;^@\313\307\314\315#\203*^@\316\202;^@\313\307\314\317#\203:^@\320\nB^R\321\202;^@\316\322^S\323^A\322\211#\210^K\322=\203a^@\$
command-line()
normal-top-level() 
kalafut commented 9 years ago

FWIW, I saw this too. Uninstalled the org-toodledo package (using melpa), reinstalled it, worked.

inuse commented 9 years ago

No luck with that, alas. Tried uninstalling everything (org/org-toodledo) and reinstalling all from the same repo, as well. No change.

On Fri, Aug 29, 2014 at 6:28 PM, Jim Kalafut notifications@github.com wrote:

FWIW, I saw this too. Uninstalled the org-toodledo package (using melpa), reinstalled it, worked.

Reply to this email directly or view it on GitHub: https://github.com/christopherjwhite/org-toodledo/issues/42#issuecomment-53937095

inuse commented 9 years ago

Can anyone chime in with a known-good (org,org-toodledo) version tuplet? Thanks.

inuse commented 9 years ago

If I manually define org-toofledo-fields in my .emacs (just cut and paste from org-toodledo.el, I get a successful startup, but then an error when I try to sync):

Symbol's function definition is void: org-toodledo-task-title

Is this a problem that org-toodledo.el isn't being loaded properly (is that even possible)?

christopherjwhite commented 9 years ago

In an effort to reduce warnings on load, I made org-toodledo-fields a constant that is evaluated at compile time using eval-when-compile. I'm wondering if it is not getting compiled (or compiled correctly). I'm using the same emacs version, but on Mac OS.

Try this:

  1. Find the directory where org-toodledo.el resides (C-h f org-toodledo-sync then click on org-toodledo.el in the help area).
  2. Then force recompilation: M-x byte-force-recompile and then enter the directory name

Let me know if that works for you.

inuse commented 9 years ago

That didn't help, alas.

I put the entire eval-when-compile block into my .emacs, and things load, and an org-toodledo-sync starts to compare my local tasks with the server's, but when I choose a version (local vs. server), it errors with "Symbol's function definition is void: org-toodledo-context-to-id"

On Wed, Sep 3, 2014 at 9:08 PM, Christopher J. White < notifications@github.com> wrote:

In an effort to reduce warnings on load, I made org-toodledo-fields a constant that is evaluated at compile time using eval-when-compile. I'm wondering if it is not getting compiled (or compiled correctly). I'm using the same emacs version, but on Mac OS.

Try this:

  1. Find the directory where org-toodledo.el resides (C-h f org-toodledo-sync then click on org-toodledo.el in the help area).
  2. The force recompilation: M-x byte-force-recompile and then enter the directory name

Let me know if that works for you.

— Reply to this email directly or view it on GitHub https://github.com/christopherjwhite/org-toodledo/issues/42#issuecomment-54391328 .

christopherjwhite commented 9 years ago

Hmm - did you leave "eval-when-compile" in there? I would say drop the eval-when-compile. Make sure you have the line:

(org-toodledo-make-lookup-function "context")

As that is the line that creates the function org-toodledo-context-to-id. If you're putting this in your .emacs, make sure you put it after (require 'org-toodledo) to ensure that loading the file doesn't undo what you just set in some way.

On 9/4/14, 9:19 AM, Graham Dunn wrote:

That didn't help, alas.

I put the entire eval-when-compile block into my .emacs, and things load, and an org-toodledo-sync starts to compare my local tasks with the server's, but when I choose a version (local vs. server), it errors with "Symbol's function definition is void: org-toodledo-context-to-id"

On Wed, Sep 3, 2014 at 9:08 PM, Christopher J. White < notifications@github.com> wrote:

In an effort to reduce warnings on load, I made org-toodledo-fields a constant that is evaluated at compile time using eval-when-compile. I'm wondering if it is not getting compiled (or compiled correctly). I'm using the same emacs version, but on Mac OS.

Try this:

  1. Find the directory where org-toodledo.el resides (C-h f org-toodledo-sync then click on org-toodledo.el in the help area).
  2. The force recompilation: M-x byte-force-recompile and then enter the directory name

Let me know if that works for you.

— Reply to this email directly or view it on GitHub

https://github.com/christopherjwhite/org-toodledo/issues/42#issuecomment-54391328 .

— Reply to this email directly or view it on GitHub https://github.com/christopherjwhite/org-toodledo/issues/42#issuecomment-54474129.

inuse commented 9 years ago

I've added that line, however moving it after (require 'org-toodledo) throws the original "Symbol's value as variable is void: org-toodledo-fields" error.

I've edited org-toodledo.el and commented out the eval-when-compile part (lines 600 and 640) and everything is working now.

Strange though.

On Thu, Sep 4, 2014 at 9:22 AM, Christopher J. White < notifications@github.com> wrote:

Hmm - did you leave "eval-when-compile" in there? I would say drop the eval-when-compile. Make sure you have the line:

(org-toodledo-make-lookup-function "context")

As that is the line that creates the function org-toodledo-context-to-id. If you're putting this in your .emacs, make sure you put it after (require 'org-toodledo) to ensure that loading the file doesn't undo what you just set in some way.

On 9/4/14, 9:19 AM, Graham Dunn wrote:

That didn't help, alas.

I put the entire eval-when-compile block into my .emacs, and things load, and an org-toodledo-sync starts to compare my local tasks with the server's, but when I choose a version (local vs. server), it errors with "Symbol's function definition is void: org-toodledo-context-to-id"

On Wed, Sep 3, 2014 at 9:08 PM, Christopher J. White < notifications@github.com> wrote:

In an effort to reduce warnings on load, I made org-toodledo-fields a constant that is evaluated at compile time using eval-when-compile. I'm wondering if it is not getting compiled (or compiled correctly). I'm using the same emacs version, but on Mac OS.

Try this:

  1. Find the directory where org-toodledo.el resides (C-h f org-toodledo-sync then click on org-toodledo.el in the help area).
  2. The force recompilation: M-x byte-force-recompile and then enter the directory name

Let me know if that works for you.

— Reply to this email directly or view it on GitHub

< https://github.com/christopherjwhite/org-toodledo/issues/42#issuecomment-54391328

.

— Reply to this email directly or view it on GitHub < https://github.com/christopherjwhite/org-toodledo/issues/42#issuecomment-54474129 .

— Reply to this email directly or view it on GitHub https://github.com/christopherjwhite/org-toodledo/issues/42#issuecomment-54474823 .

christopherjwhite commented 9 years ago

Arg, right. I may have just drop that eval-when-compile and refactor that code. A lot of it is old old inherited stuff that could use a refresh in how it's handled. It was a pain to try and get working in the first place, so not entirely surprised that it caused a glitch.

On 9/4/14, 9:43 AM, Graham Dunn wrote:

I've added that line, however moving it after (require 'org-toodledo) throws the original "Symbol's value as variable is void: org-toodledo-fields" error.

I've edited org-toodledo.el and commented out the eval-when-compile part (lines 600 and 640) and everything is working now.

Strange though.

On Thu, Sep 4, 2014 at 9:22 AM, Christopher J. White < notifications@github.com> wrote:

Hmm - did you leave "eval-when-compile" in there? I would say drop the eval-when-compile. Make sure you have the line:

(org-toodledo-make-lookup-function "context")

As that is the line that creates the function org-toodledo-context-to-id. If you're putting this in your .emacs, make sure you put it after (require 'org-toodledo) to ensure that loading the file doesn't undo what you just set in some way.

On 9/4/14, 9:19 AM, Graham Dunn wrote:

That didn't help, alas.

I put the entire eval-when-compile block into my .emacs, and things load, and an org-toodledo-sync starts to compare my local tasks with the server's, but when I choose a version (local vs. server), it errors with "Symbol's function definition is void: org-toodledo-context-to-id"

On Wed, Sep 3, 2014 at 9:08 PM, Christopher J. White < notifications@github.com> wrote:

In an effort to reduce warnings on load, I made org-toodledo-fields a constant that is evaluated at compile time using eval-when-compile. I'm wondering if it is not getting compiled (or compiled correctly). I'm using the same emacs version, but on Mac OS.

Try this:

  1. Find the directory where org-toodledo.el resides (C-h f org-toodledo-sync then click on org-toodledo.el in the help area).
  2. The force recompilation: M-x byte-force-recompile and then enter the directory name

Let me know if that works for you.

— Reply to this email directly or view it on GitHub

<

https://github.com/christopherjwhite/org-toodledo/issues/42#issuecomment-54391328

.

— Reply to this email directly or view it on GitHub <

https://github.com/christopherjwhite/org-toodledo/issues/42#issuecomment-54474129

.

— Reply to this email directly or view it on GitHub

https://github.com/christopherjwhite/org-toodledo/issues/42#issuecomment-54474823 .

— Reply to this email directly or view it on GitHub https://github.com/christopherjwhite/org-toodledo/issues/42#issuecomment-54478484.

inuse commented 9 years ago

Thanks for developing this, btw, I use it extensively.

On Thu, Sep 4, 2014 at 10:50 AM, Christopher J. White < notifications@github.com> wrote:

Arg, right. I may have just drop that eval-when-compile and refactor that code. A lot of it is old old inherited stuff that could use a refresh in how it's handled. It was a pain to try and get working in the first place, so not entirely surprised that it caused a glitch.

On 9/4/14, 9:43 AM, Graham Dunn wrote:

I've added that line, however moving it after (require 'org-toodledo) throws the original "Symbol's value as variable is void: org-toodledo-fields" error.

I've edited org-toodledo.el and commented out the eval-when-compile part (lines 600 and 640) and everything is working now.

Strange though.

On Thu, Sep 4, 2014 at 9:22 AM, Christopher J. White < notifications@github.com> wrote:

Hmm - did you leave "eval-when-compile" in there? I would say drop the eval-when-compile. Make sure you have the line:

(org-toodledo-make-lookup-function "context")

As that is the line that creates the function org-toodledo-context-to-id. If you're putting this in your .emacs, make sure you put it after (require 'org-toodledo) to ensure that loading the file doesn't undo what you just set in some way.

On 9/4/14, 9:19 AM, Graham Dunn wrote:

That didn't help, alas.

I put the entire eval-when-compile block into my .emacs, and things load, and an org-toodledo-sync starts to compare my local tasks with the server's, but when I choose a version (local vs. server), it errors with "Symbol's function definition is void: org-toodledo-context-to-id"

On Wed, Sep 3, 2014 at 9:08 PM, Christopher J. White < notifications@github.com> wrote:

In an effort to reduce warnings on load, I made org-toodledo-fields a constant that is evaluated at compile time using eval-when-compile. I'm wondering if it is not getting compiled (or compiled correctly). I'm using the same emacs version, but on Mac OS.

Try this:

  1. Find the directory where org-toodledo.el resides (C-h f org-toodledo-sync then click on org-toodledo.el in the help area).
  2. The force recompilation: M-x byte-force-recompile and then enter the directory name

Let me know if that works for you.

— Reply to this email directly or view it on GitHub

<

https://github.com/christopherjwhite/org-toodledo/issues/42#issuecomment-54391328

.

— Reply to this email directly or view it on GitHub <

https://github.com/christopherjwhite/org-toodledo/issues/42#issuecomment-54474129

.

— Reply to this email directly or view it on GitHub

< https://github.com/christopherjwhite/org-toodledo/issues/42#issuecomment-54474823

.

— Reply to this email directly or view it on GitHub < https://github.com/christopherjwhite/org-toodledo/issues/42#issuecomment-54478484 .

— Reply to this email directly or view it on GitHub https://github.com/christopherjwhite/org-toodledo/issues/42#issuecomment-54488442 .

DSMasterson commented 9 years ago

Chris,

What's the roadmap for org-toodledo (if any)? Are you going to get it into the Org-Mode distribution?

On Thu, Sep 4, 2014 at 7:52 AM, Graham Dunn notifications@github.com wrote:

Thanks for developing this, btw, I use it extensively.

On Thu, Sep 4, 2014 at 10:50 AM, Christopher J. White < notifications@github.com> wrote:

Arg, right. I may have just drop that eval-when-compile and refactor that code. A lot of it is old old inherited stuff that could use a refresh in how it's handled. It was a pain to try and get working in the first place, so not entirely surprised that it caused a glitch.

On 9/4/14, 9:43 AM, Graham Dunn wrote:

I've added that line, however moving it after (require 'org-toodledo) throws the original "Symbol's value as variable is void: org-toodledo-fields" error.

I've edited org-toodledo.el and commented out the eval-when-compile part (lines 600 and 640) and everything is working now.

Strange though.

On Thu, Sep 4, 2014 at 9:22 AM, Christopher J. White < notifications@github.com> wrote:

Hmm - did you leave "eval-when-compile" in there? I would say drop the eval-when-compile. Make sure you have the line:

(org-toodledo-make-lookup-function "context")

As that is the line that creates the function org-toodledo-context-to-id. If you're putting this in your .emacs, make sure you put it after (require 'org-toodledo) to ensure that loading the file doesn't undo what you just set in some way.

On 9/4/14, 9:19 AM, Graham Dunn wrote:

That didn't help, alas.

I put the entire eval-when-compile block into my .emacs, and things load, and an org-toodledo-sync starts to compare my local tasks with the server's, but when I choose a version (local vs. server), it errors with "Symbol's function definition is void: org-toodledo-context-to-id"

On Wed, Sep 3, 2014 at 9:08 PM, Christopher J. White < notifications@github.com> wrote:

In an effort to reduce warnings on load, I made org-toodledo-fields a constant that is evaluated at compile time using eval-when-compile. I'm wondering if it is not getting compiled (or compiled correctly). I'm using the same emacs version, but on Mac OS.

Try this:

  1. Find the directory where org-toodledo.el resides (C-h f org-toodledo-sync then click on org-toodledo.el in the help area).
  2. The force recompilation: M-x byte-force-recompile and then enter the directory name

Let me know if that works for you.

— Reply to this email directly or view it on GitHub

<

https://github.com/christopherjwhite/org-toodledo/issues/42#issuecomment-54391328

.

— Reply to this email directly or view it on GitHub <

https://github.com/christopherjwhite/org-toodledo/issues/42#issuecomment-54474129

.

— Reply to this email directly or view it on GitHub

<

https://github.com/christopherjwhite/org-toodledo/issues/42#issuecomment-54474823

.

— Reply to this email directly or view it on GitHub <

https://github.com/christopherjwhite/org-toodledo/issues/42#issuecomment-54478484

.

— Reply to this email directly or view it on GitHub < https://github.com/christopherjwhite/org-toodledo/issues/42#issuecomment-54488442>

.

— Reply to this email directly or view it on GitHub https://github.com/christopherjwhite/org-toodledo/issues/42#issuecomment-54488816 .

David Masterson Programmer at Large

srustamo commented 9 years ago

I am having exactly the same problem, with < Debugger entered--Lisp error: (void-variable org-toodledo-fields)>error. Emacs 24.3 (9.0) OSX., org-toodledo-20140331.606 Recompiling did not help.

The discussion above which helped inuse is a bit convoluted, I did not succeed with following his fix.

I suppose it will take some time to address this issue, meanwhile any clear instruction about temp fix for this would help.

srustamo commented 9 years ago

inuse's fix (commenting out lines 600 and 640), recompiling, adding (org-toodledo-make-lookup-function "context") in .emacs as suggested by christopherjwhite worked.