Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with (require 'org-toodledo) #42

Open
inuse opened this issue Aug 28, 2014 · 13 comments
Open

Problem with (require 'org-toodledo) #42

inuse opened this issue Aug 28, 2014 · 13 comments

Comments

@inuse
Copy link

inuse commented Aug 28, 2014

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
Copy link

kalafut commented Aug 29, 2014

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

@inuse
Copy link
Author

inuse commented Aug 29, 2014

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 [email protected]
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:
#42 (comment)

@inuse
Copy link
Author

inuse commented Aug 31, 2014

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

@inuse
Copy link
Author

inuse commented Sep 3, 2014

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
Copy link
Owner

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
Copy link
Author

inuse commented Sep 4, 2014

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 <
[email protected]> 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
#42 (comment)
.

@christopherjwhite
Copy link
Owner

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 <
[email protected]> 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

#42 (comment)
.


Reply to this email directly or view it on GitHub
#42 (comment).

@inuse
Copy link
Author

inuse commented Sep 4, 2014

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 <
[email protected]> 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 <
[email protected]> 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

<
#42 (comment)

.


Reply to this email directly or view it on GitHub
<
#42 (comment)
.


Reply to this email directly or view it on GitHub
#42 (comment)
.

@christopherjwhite
Copy link
Owner

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 <
[email protected]> 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 <
[email protected]> 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

<

#42 (comment)

.


Reply to this email directly or view it on GitHub
<

#42 (comment)

.


Reply to this email directly or view it on GitHub

#42 (comment)
.


Reply to this email directly or view it on GitHub
#42 (comment).

@inuse
Copy link
Author

inuse commented Sep 4, 2014

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

On Thu, Sep 4, 2014 at 10:50 AM, Christopher J. White <
[email protected]> 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 <
[email protected]> 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 <
[email protected]> 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

<

#42 (comment)

.


Reply to this email directly or view it on GitHub
<

#42 (comment)

.


Reply to this email directly or view it on GitHub

<
#42 (comment)

.


Reply to this email directly or view it on GitHub
<
#42 (comment)
.


Reply to this email directly or view it on GitHub
#42 (comment)
.

@DSMasterson
Copy link

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 [email protected]
wrote:

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

On Thu, Sep 4, 2014 at 10:50 AM, Christopher J. White <
[email protected]> 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 <
[email protected]> 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 <
[email protected]> 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

<

#42 (comment)

.


Reply to this email directly or view it on GitHub
<

#42 (comment)

.


Reply to this email directly or view it on GitHub

<

#42 (comment)

.


Reply to this email directly or view it on GitHub
<

#42 (comment)

.


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
#42 (comment)
.

David Masterson
Programmer at Large

@srustamo
Copy link

srustamo commented Oct 8, 2014

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
Copy link

srustamo commented Oct 8, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants