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

Cannot run cfw:open-org-calendar: (wrong-type-argument stringp nil) #161

Open
drivet opened this issue May 25, 2024 · 1 comment
Open

Cannot run cfw:open-org-calendar: (wrong-type-argument stringp nil) #161

drivet opened this issue May 25, 2024 · 1 comment

Comments

@drivet
Copy link

drivet commented May 25, 2024

Hello,

When I try to run cfw:open-org-calendar I get a (wrong-type-argument stringp nil) error.

I won't paste the whole stack trace here, but I did trace the problem back to cfw:org-summary-format and cfw:org-get-timerange, in particular, this let* clause in cfw:org-summary-format:

(extra (cfw:org-tp item 'extra)))

And this one in cfw:org-get-timerange:

(extra (cfw:org-tp text 'extra)))

The problem is that the "extra" variable, in both cases, ends up being nil and is used as part of a string-match call afterwards. The string-match call is expecting a string, not a nil, and so it blows up.

I don't know what the "extra" property is or why it's returning nil or whether it's always done that...if you force the value or extra to be the empty string instead of nil then things seem to load properly, though.

@drivet drivet changed the title Cannot run cfw:open-org-calendar (wrong-type-argument stringp nil) Cannot run cfw:open-org-calendar: (wrong-type-argument stringp nil) May 25, 2024
@drivet
Copy link
Author

drivet commented May 25, 2024

Actually...I see there's a PR for exactly this issue....it just hasn't been merged

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

1 participant