Giter Site home page Giter Site logo

Comments (13)

itchyny avatar itchyny commented on May 5, 2024

However even if I paste the code I get error that I can not be verified.

Please paste the error message.

from calendar.vim.

mattn avatar mattn commented on May 5, 2024

Try to remove start ?

calendar#util#system('rundll32 url.dll,FileProtocolHandler

from calendar.vim.

majkinetor avatar majkinetor commented on May 5, 2024

url.dll is not present on the system.
Also, I hardcoded google's code in the client.vim and it didn't help.

start itself does protocol handling (i.e. start "" "mailto:foo@bar")

from calendar.vim.

majkinetor avatar majkinetor commented on May 5, 2024

About error message, it just says what it does when the code isn't correct. So there are two problems here: the one with the external browser and code verification later.

from calendar.vim.

itchyny avatar itchyny commented on May 5, 2024

I close this issue because

  1. I asked my friends who have Windows 7 to check url.dll exists, all said yes. They also replied me that start rundll32 url.dll,FileProtocolHandler works on Windows 7.
  2. I still do not understand how you have trouble in code verification. Error occurs in your browser? An error message appears on Vim?

from calendar.vim.

majkinetor avatar majkinetor commented on May 5, 2024
  1. I asked my friends who have Windows 7 to check url.dll exists, all said yes. They also replied me that start rundll32 url.dll,FileProtocolHandler works on Windows 7.

Which probably means that I had some program installed which later removed it during uninstall. In anyway, there is more portable and less error prone way to launch url in default browser as I noted above. The same method is used in number of other vim plugins. The third one is explorer [http://url]. Those lines are far less likely not to work on any given system.

  1. I still do not understand how you have trouble in code verification. Error occurs in your browser? An error message appears on Vim?

No, browser showed me the code OK. I pasted the code into the vim. Later I hardcoded that code in client.vim just before you send it to google and it still produced the same error.

from calendar.vim.

itchyny avatar itchyny commented on May 5, 2024

What is the error message?
PLEASE copy and paste all the error message.
If it is difficult to copy the message, please post a screenshot.

from calendar.vim.

majkinetor avatar majkinetor commented on May 5, 2024

Sorry for not posting this earlier, I deinstalled it. Was surprised that it gave browser now... but I see you made a fix.

calendar.vimFail in authorization to Google

offtopic: I like your implementation of drawing big numbres and letters (from pixel) folder. Is this available as library ? If not, I will probably externalize it when I find time.

from calendar.vim.

itchyny avatar itchyny commented on May 5, 2024

Please check the downloaded file.

  1. Comment out call s:cache.delete(a:id) in calendar#webapi#callback(id, cb) in webapi.vim.
  2. Authorization to Google fails.
  3. See what's in the cache file: ~/.cache/calendar.vim/download/.

from calendar.vim.

majkinetor avatar majkinetor commented on May 5, 2024

That was helpful. There was no data in there. The problem was that environment variable https_proxy wasn't set and curl doesn't use the one from the system in Windows. You should make some mention in the documentation about it.

After adding it everything works fine. Thanks for your patience.

from calendar.vim.

robbie-cao avatar robbie-cao commented on May 5, 2024

I have the same issue to authorize Google in Mac.
My environment https_proxy is also empty. What setting shall I apply to https_proxy?

from calendar.vim.

itchyny avatar itchyny commented on May 5, 2024

Do you have curl or wget installed?

from calendar.vim.

robbie-cao avatar robbie-cao commented on May 5, 2024

Yes, both curl and wget installed

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.