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

Vim(let):E716: Key not present in Dictionary: "headers.subject" #208

Closed
TamasSmahajcsikszabo opened this issue Sep 27, 2021 · 16 comments · Fixed by #216
Closed

Vim(let):E716: Key not present in Dictionary: "headers.subject" #208

TamasSmahajcsikszabo opened this issue Sep 27, 2021 · 16 comments · Fixed by #216

Comments

@TamasSmahajcsikszabo
Copy link

Hi,
I'm using neovim 0.5.0 and recently installed himalaya 0.4.0.
CLI works fine and prints inbox of my Outlook account, but in nvim, if I call :Himalaya, I get:
Vim(let):E716: Key not present in Dictionary: "headers.subject"

Could you please advise?

Thank you,
Tamas

@soywod
Copy link
Member

soywod commented Sep 27, 2021

How did you install the vim plugin?

@TamasSmahajcsikszabo
Copy link
Author

With Vimplug, such as Plug 'soywod/himalaya', {'rtp': 'vim'}

@wjcagle
Copy link

wjcagle commented Sep 28, 2021

I'm having the same issue here.

@soywod
Copy link
Member

soywod commented Sep 29, 2021

The problem is that the CLI is versioned but not the Vim plugin (since plugin managers clone the git repo). For now, I would advise to align the CLI version with the Vim plugin branch. If you use the v0.4.0 of the CLI then use the v0.4.0 branch/tag from the Vim plugin instead. What I could do is to use the master branch as the production one (the last master commit = a tagged version) and develop on a development branch. If you have better idea, let me know!

@wjcagle
Copy link

wjcagle commented Sep 29, 2021

I just tried making sure they're both aligned. I've got the v0.4.0 versions for both. I'm still getting the same error.

@soywod
Copy link
Member

soywod commented Sep 29, 2021

Do you also use vim-plug? If so then could you add the tag entry in your plug command? Sth like Plug 'soywod/himalaya', {'rtp': 'vim', 'tag': 'v0.4.0'} and try again?

@wjcagle
Copy link

wjcagle commented Sep 29, 2021

I do. Let me give that a try.

@wjcagle
Copy link

wjcagle commented Sep 29, 2021

Looks like it's working now. I had to totally delete my HImalaya plugin and let it re-download complately. but it's working now. Thank you!

@wjcagle
Copy link

wjcagle commented Sep 29, 2021

OK, it seems I'm having other issues now. If I try to write a message, for example, I get Vim(call):E716: Key not present in Dictionary: "template, "\r", "", "g"), "\n"))" I was getting a similar message replying to an e-mail.

@TamasSmahajcsikszabo
Copy link
Author

@soywod I did what you've advised above (aligning the plugin version to the CLI; both at 0.4.0) and it solved the issue on my end. Himalaya is working as expected. Thank you for the help!

@wjcagle
Copy link

wjcagle commented Sep 29, 2021

@TamasSmahajcsikszabo No problems writing e-mail or anything? Because I'm having problems with that now.

@TamasSmahajcsikszabo
Copy link
Author

@wjcagle Inbox search, listing work well, but when writing new messages, I can confirm your error message. I get the same error, such as:
Vim(call):E716: Key not present in Dictionary: "template, "\r", "", "g"), "\n"))"

@soywod
Copy link
Member

soywod commented Sep 29, 2021

Then I advise you to wait for the v0.5.0, I should release it in the next days. Sorry for those bugs, the project is still young!

@TamasSmahajcsikszabo
Copy link
Author

@soywod No worries, thank you, keep up the good work.

@soywod
Copy link
Member

soywod commented Sep 29, 2021

Thanks for the kind words. I let you know when the new release is available!

@wjcagle
Copy link

wjcagle commented Sep 30, 2021

Agreed. Keep up the good work, and I'll look forward to v.0.5.0. :)

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

Successfully merging a pull request may close this issue.

3 participants