Git Product home page Git Product logo

Comments (6)

itchyny avatar itchyny commented on July 28, 2024 1

Thank you, I didn't check my plugin against neovim. Now it should work properly.

from calendar.vim.

itchyny avatar itchyny commented on July 28, 2024

Start the calendar with -debug option and investigate the responses in ~/.vim/cache/calendar.vim/download/.

from calendar.vim.

JJJHolscher avatar JJJHolscher commented on July 28, 2024

~/.cache/calendar.vim/download is empty after calling :Calendar -debug and after setting let g:calendar_debug = 1.
~/.vim did not exist and after making ~/.vim/cache/calendar.vim/download it too stayed empty.
~/.cache/calendar.vim/google contains a valid-looking access token and a refresh token.

from calendar.vim.

itchyny avatar itchyny commented on July 28, 2024

Sorry the default download directory is ~/.cache/calendar.vim/download. Any case, could you debug with echom content here?

from calendar.vim.

JJJHolscher avatar JJJHolscher commented on July 28, 2024

thank you for your assistance
I get

{'refresh_token': '1//09...2F8', 'scope': 'https://www.googleapis.com/auth/calendar https://www.googleapis.com/auth/tasks', 'access_tokes': 'ya2...163', 'expires_in': 3599, 'token_type': 'Bearer'}

This token seems to be identical to what is stored in ~/.cache/calendar.vim/google/access_token
ls -l ~/.cache/calendar.vim/google returns

-rw------- 1 user user 490 Feb  2 12:36 access_token
-rw------- 1 user user 125 Feb  2 12:36 refresh_token

from calendar.vim.

JJJHolscher avatar JJJHolscher commented on July 28, 2024

I remade my API keys to be sure. Both gcalcli and the python library gcsa can work with it.
I tested it with a different account and the different account again works with gcalcli and gcsa but gets calendar.vim to give the same behavior as before.
I uninstalled all my neovim plugins to no avail (I use packer).
I also uninstalled packer and just cloned calendar.vim into ~/.local/share/nvim/site/pack/vendor/start while keeping a very vanilla init.vim
Removing let g:calendar_google_calendar = 1 does get me a(n empty) calendar upon calling :Calendar.

What did work was using vim instead of neovim. My vim was vanilla aside from cloning this repo into ~/.vim/pack/vendor/start, sourcing the credentials and setting let g:calendar_google_calendar = 1. I did not need to log in even (It probably reuses the login from nvim).
I would prefer to use neovim however.

from calendar.vim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.