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

Error after update/install #314

Closed
khalidchawtany opened this issue Nov 15, 2015 · 4 comments
Closed

Error after update/install #314

khalidchawtany opened this issue Nov 15, 2015 · 4 comments

Comments

@khalidchawtany
Copy link

Each time I run any of PlugUpdate / PlugInstall command, I get the error below. After the error message by a second, it disappears, as if is feed to it, to simulate press Enter prompt.

Error detected while processing function <SNR>2_job_handler..<SNR>2_tick..<SNR>2_upd
ate_finish..<SNR>2_finish..plug#end:
line   50:
E183: User defined commands must start with an uppercase letter
@junegunn
Copy link
Owner

Looks like you have invalid config in your vimrc, i.e. lowercase command in on option. Please post your vimrc.

@khalidchawtany
Copy link
Author

Awch :(
You were right, I had 'on': ['obsess'] instead of 'on': ['Obsess']

Sorry for the noise, and many thanks for your great plugins ;)

Just one small suggestion:

Can you make the plugin show a more informative error message?

@junegunn
Copy link
Owner

Well, I think the message is pretty straightforward, but I realized that there are more fundamental problems.

  1. You don't see the error message upfront when you start vim.
  2. The current code was written to check if an argument to on option starts with an uppercase letter and ignore it otherwise. However, cmd =~ '^[A-Z]' can return true even if cmd starts with a lowercase letter when &ignorecase is set, which is what you just experienced.

Both problems are trivial to fix. I'll fix them.

EDIT: I had some facts mixed up, but anyway some improvements needed.

@khalidchawtany
Copy link
Author

Lovely 👍

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

2 participants