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

Calendar integration doesn't work #56

Open
andreas-h opened this issue Apr 8, 2013 · 16 comments
Open

Calendar integration doesn't work #56

andreas-h opened this issue Apr 8, 2013 · 16 comments

Comments

@andreas-h
Copy link

Using Calendar plugin v2.9 and VimOrganizer plugin v0.30, the calendar functions don't work for me. For example, pressing ,dg in an Org document brings up this error:

Error detected while processing function OrgDateDashboard..OrgGenericDateEdit:
line    3:
E121: Undefined variable: g:calendar_navi
E15: Invalid expression: g:calendar_navi
line    4:
E108: No such variable: "g:calendar_navi"
line   35:
E121: Undefined variable: old_cal_navi
E15: Invalid expression: old_cal_navi
Error detected while processing function OrgDateDashboard:
line   34:
E171: Missing :endif
@hsitz
Copy link
Owner

hsitz commented Apr 8, 2013

Hi Andreas --

A couple things:

  1. Why do you think v. 0.30? I assume you're using latest version from
    Github. Some files , e.g., the install.txt file, may still refer to v.
    0.30, but just make sure you're using latest from github.
  2. Are you sure the Calendar plugin is working independent of
    VimOrganizer? Try the ':Calendar' command in a non-.org buffer to see if
    it brings up a calendar.

-- Herb

On Mon, Apr 8, 2013 at 2:55 AM, Andreas Hilboll [email protected]:

Using Calendar plugin v2.9 and VimOrganizer plugin v0.30, the calendar
functions don't work for me. For example, pressing ,dg in an Org document
brings up this error:

Error detected while processing function OrgDateDashboard..OrgGenericDateEdit:
line 3:
E121: Undefined variable: g:calendar_navi
E15: Invalid expression: g:calendar_navi
line 4:
E108: No such variable: "g:calendar_navi"
line 35:
E121: Undefined variable: old_cal_navi
E15: Invalid expression: old_cal_navi
Error detected while processing function OrgDateDashboard:
line 34:
E171: Missing :endif


Reply to this email directly or view it on GitHubhttps://github.com//issues/56
.

@andreas-h
Copy link
Author

Hi Herb,

1.) it says 0.30 in the org.vim file:

$ head -n5 .vim/bundle/VimOrganizer/ftplugin/org.vim 
" org.vim - VimOrganizer plugin for Vim
" -------------------------------------------------------------
" Version: 0.30
" Maintainer: Herbert Sitz <[email protected]>
" Last Change: 2011 Nov 02

I think I took the version from the vim.org website (http://www.vim.org/scripts/script.php?script_id=3342), because I thought that's the official place to go for Vim plugins. If that's not up-to-date, maybe it would be nice if you could update that. But actually now I'm confused, because in the Github master, org.vim also says 0.30.

2.) yes, :Calendar does bring up a calendar in non-org buffers.

@hsitz
Copy link
Owner

hsitz commented Apr 10, 2013

Andreas --

Sorry, you're entirely correct about version number, I haven't updated the
headers with version numbers. Early versions through 0.313 are at Vim.org
site, but that site is difficult to update and I gave up, including note in
text there that more recent versions are at github.

I don't know what's causing your problem. The error message you get is:

Error detected while processing function OrgDateDashboard..OrgGenericDateEdit:
line 3:
E121: Undefined variable: g:calendar_navi
E15: Invalid expression: g:calendar_navi

Sorry, you're entirely correct about version number, I haven't updated
the headers with version numbers. Early versions through 0.313 are at
Vim.org site, but that site is difficult to update and I gave up,
including note in text there that more recent versions are at github.
But that variable 'g:calendar_navi' is one that is supposed to be
initialized in the Calendar plu

What I don't understand is that the variable, 'g:calendar_navi' is one that
is supposed to be initialized in the Calendar plugin, which gets loaded on
Vim's startup.

Are you sure you have the right calendar plugin? There are several
different ones (that use same name), the one you want is by Yasuhiro
Matsumoto:
http://www.vim.org/scripts/script.php?script_id=52

If you are already using the Matsumoto Calendar.vim, you could try putting
this line in your vimrc:

let g:calendar_navi='left'

That at least defines the variable that's causing initial problem, but I'm
not sure it would fix things since I don't know why that variable is
undefined on your setup.

-- Herb

@mk-archaeo
Copy link

Same here.

Calendar plugin commit: 7b0a2c7 (2013-03-26)

VimOrganizer commit: 77fe790 (2013-02-11)

I have set

>>> let g:calendar_navi='top'

following the help-file of Calendar plugin.

Then the message changes to this:

Error detected while processing function OrgDateDashboard..OrgDateEdit..CalEdit:
line   10:
E117: Unknown function: Calendar
Error detected while processing function OrgDateDashboard:
line   30:
E171: Missing :endif

And :Calendar and :CalendarH work as aspected.

Marco

PS: OS is Windows 7

@andreas-h
Copy link
Author

Same here.

Calendar plugin commit: 7b0a2c7 (2012-03-26)

VimOrganizer commit: 77fe790
77fe790 (2013-02-11)

I have set

|>>> let g:calendar_navi='top'|

following the help-file of Calendar plugin.

Then the message changes to this:

|Error detected while processing function OrgDateDashboard..OrgDateEdit..CalEdit:
line 10:
E117: Unknown function: Calendar
Error detected while processing function OrgDateDashboard:
line 30:
E171: Missing :endif
|

And |:Calendar| and |:CalendarH| work as aspected.

Same here. Once I insert ``in my.vimrc, I get the same error:

Error detected while processing function

OrgDateDashboard..OrgGenericDateEdit..CalEdit:
line 9:
E117: Unknown function: Calendar
Error detected while processing function OrgDateDashboard:
line 34:
E171: Missing :endif

I' still on the version I got from vim.org, though. Trying to update to
the most recent Github master brought something like

E121: Undefined variable: B:v
E15: Invalid expression: "syntax match DONETODO" [...]
[...]

My calendar plugin is indeed the one from
http://www.vim.org/scripts/script.php?script_id=52:

"=============================================================================
" What Is This: Calendar
" File: calendar.vim
" Author: Yasuhiro Matsumoto [email protected]
" Last Change: 2013 Mar 19
" Version: 2.9

I'm somewhat at a loss now ...

Thanks for your help!
A.

@hsitz
Copy link
Owner

hsitz commented Apr 10, 2013

I am stumped on that. The :Calendar command actually calls the Calendar()
function, so I'm not seeing how that error comes up. And both are part of
Calendar plugin. I haven't tested much with g:calendar_navi set
explicitly. Does error come up when that setting is commented out? In any
case, next step would be to look at your vimrc.

-- Herb

On Wed, Apr 10, 2013 at 1:18 AM, mk-archaeo [email protected]:

Same here.

Calendar plugin commit: 7b0a2c7 (2012-03-26)

VimOrganizer commit: 77fe79077fe790(2013-02-11)

I have set

let g:calendar_navi='top'

following the help-file of Calendar plugin.

Then the message changes to this:

Error detected while processing function OrgDateDashboard..OrgDateEdit..CalEdit:
line 10:
E117: Unknown function: Calendar
Error detected while processing function OrgDateDashboard:
line 30:
E171: Missing :endif

And :Calendar and :CalendarH work as aspected.

Marco


Reply to this email directly or view it on GitHubhttps://github.com//issues/56#issuecomment-16161109
.

@hsitz
Copy link
Owner

hsitz commented Apr 10, 2013

Andreas -- I'm still stumped by the Calendar error. It might help for me
to look at your vimrc.

Regarding the second error, I think that's probably caused because most
recent version requires a ':syntax on' command in your vimrc. See:
https://github.com/hsitz/VimOrganizer/blob/master/_vimrc

-- Herb

On Wed, Apr 10, 2013 at 1:55 AM, Andreas Hilboll
[email protected]:

Same here.

Calendar plugin commit: 7b0a2c7 (2012-03-26)

VimOrganizer commit: 77fe790
77fe790 (2013-02-11)

I have set

|>>> let g:calendar_navi='top'|

following the help-file of Calendar plugin.

Then the message changes to this:

|Error detected while processing function
OrgDateDashboard..OrgDateEdit..CalEdit:
line 10:
E117: Unknown function: Calendar
Error detected while processing function OrgDateDashboard:
line 30:
E171: Missing :endif
|

And |:Calendar| and |:CalendarH| work as aspected.

Same here. Once I insert ``in my.vimrc, I get the same error:

Error detected while processing function
OrgDateDashboard..OrgGenericDateEdit..CalEdit:
line 9:
E117: Unknown function: Calendar

Error detected while processing function OrgDateDashboard:
line 34:
E171: Missing :endif

I' still on the version I got from vim.org, though. Trying to update to
the most recent Github master brought something like

E121: Undefined variable: B:v
E15: Invalid expression: "syntax match DONETODO" [...]
[...]

My calendar plugin is indeed the one from
http://www.vim.org/scripts/script.php?script_id=52:

"=============================================================================
" What Is This: Calendar
" File: calendar.vim
" Author: Yasuhiro Matsumoto [email protected]
" Last Change: 2013 Mar 19
" Version: 2.9

I'm somewhat at a loss now ...

Thanks for your help!
A.


Reply to this email directly or view it on GitHubhttps://github.com//issues/56#issuecomment-16162538
.

@andreas-h
Copy link
Author

Andreas -- I'm still stumped by the Calendar error. It might help for me
to look at your vimrc.

Thanks for the offer, Herb, here it is:
https://gist.github.com/andreas-h/5356138

Regarding the second error, I think that's probably caused because most
recent version requires a ':syntax on' command in your vimrc. See:
https://github.com/hsitz/VimOrganizer/blob/master/_vimrc

syntax on is in my vimrc ...

Thanks for your time!
Andreas.

@hsitz
Copy link
Owner

hsitz commented Apr 10, 2013

Andreas -- Don't have time to look much at vimrc right now, but if I recall
order of commands for ':syntax on' may make a difference. Could you check
with it coming after the two VimOrganizer autocommand lines? E.g.,:

" enable VimOrganizer
au! BufRead,BufWrite,BufWritePost,BufNewFile *.org
au BufEnter *.org call org#SetOrgFileType()
syntax on

Sorry for the troubles, I'm not really actively growing the project
(though I try to help with problems like yours), work on making
install and setup more foolproof will be at top of list if/when i get
back to it.

On Wed, Apr 10, 2013 at 9:25 AM, Andreas Hilboll
[email protected]:

Andreas -- I'm still stumped by the Calendar error. It might help for me
to look at your vimrc.

Thanks for the offer, Herb, here it is:
https://gist.github.com/andreas-h/5356138

Regarding the second error, I think that's probably caused because most
recent version requires a ':syntax on' command in your vimrc. See:
https://github.com/hsitz/VimOrganizer/blob/master/_vimrc

syntax on is in my vimrc ...

Thanks for your time!
Andreas.


Reply to this email directly or view it on GitHubhttps://github.com//issues/56#issuecomment-16185226
.

@mk-archaeo
Copy link

Thanks for reply.
If g:calendar_navi is commented, it came up with the first errormessage andreas has reported.

I use your plugin over half a year and there were no problem so far (without setting g:calendar_navi), until the last update from calendar.vim

If calendar.vim is diasabled the error is the same i have reported.

Marco

@hsitz
Copy link
Owner

hsitz commented Apr 10, 2013

Marco -- Thanks! If I'm understanding you right I should be able to
upgrade my own calendar.vim, have problem myself, and fix problem very
easily.

Makes sense you get the same error when calendar.vim is disabled, since
it's consistent with the error I was imagining would happen when user had
no calendar.vim at all. I'll try to get fix out later today. .. .

-- Herb

On Wed, Apr 10, 2013 at 10:43 AM, mk-archaeo [email protected]:

Thanks for reply.
If g:calendar_navi it came up with the first errormessage andres has
reported.

I use your plugin over half a year and there were no problem so far
(without setting g:calendar_navi), until the last update from calendar.vim

If calendar.vim is diasabled the error is the same i have reported.

Marco


Reply to this email directly or view it on GitHubhttps://github.com//issues/56#issuecomment-16189936
.

@hsitz
Copy link
Owner

hsitz commented Apr 11, 2013

Sorry, haven't had a chance to fix VimOrganizer to work with new version of
Calendar.vim. However I did take a look and I see what has changed in
Calendar and what needs to be changed in VimOrganizer to accommodate it.
For now you can use a version of Calendar.vim before the March 2013
changes, 2.5 from here: http://www.vim.org/scripts/script.php?script_id=52
or I think there's 2.6 on the Calendar.vim github page somewhere. Will get
changes for March 2013 Calendar.vim in next day or so.

-- Herb

On Wed, Apr 10, 2013 at 10:47 AM, Herbert Sitz [email protected] wrote:

Marco -- Thanks! If I'm understanding you right I should be able to
upgrade my own calendar.vim, have problem myself, and fix problem very
easily.

Makes sense you get the same error when calendar.vim is disabled, since
it's consistent with the error I was imagining would happen when user had
no calendar.vim at all. I'll try to get fix out later today. .. .

-- Herb

On Wed, Apr 10, 2013 at 10:43 AM, mk-archaeo [email protected]:

Thanks for reply.
If g:calendar_navi it came up with the first errormessage andres has
reported.

I use your plugin over half a year and there were no problem so far
(without setting g:calendar_navi), until the last update from
calendar.vim

If calendar.vim is diasabled the error is the same i have reported.

Marco


Reply to this email directly or view it on GitHubhttps://github.com//issues/56#issuecomment-16189936
.

@mk-archaeo
Copy link

Thanks for your effort.

Marco

@hsitz
Copy link
Owner

hsitz commented Apr 12, 2013

If anybody wants, I've attached a modified main org.vim file, the one that
goes in the ftplugin directory. I think it works fine with both older
Calendar.vim and newest Calendar.vim, but I'm going to do a little more
testing and cleanup and push to github probably tomorrow. If anyone uses
it in the meantime I'd appreciate hearing if it it works for you and,
especially, if it doesn't work.

Regards,

Herb

On Thu, Apr 11, 2013 at 12:12 PM, mk-archaeo [email protected]:

Thanks for your effort.

Marco


Reply to this email directly or view it on GitHubhttps://github.com//issues/56#issuecomment-16255079
.

@mk-archaeo
Copy link

Hallo,

I doesn't see any attached file?

Marco

@hsitz
Copy link
Owner

hsitz commented Apr 17, 2013

Sorry, it's on sent message, maybe not allowed in these forums. I'm having
authentication problems trying to push up to github (first time with this
git install) that I'll get sorted out today. If you want me to send you
file you can email me at hesitz aat gmail.com .

-- Herb

On Wed, Apr 17, 2013 at 1:09 AM, mk-archaeo [email protected]:

Hallo,

I doesn't see any attached file?

Marco


Reply to this email directly or view it on GitHubhttps://github.com//issues/56#issuecomment-16492418
.

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

3 participants