google / google/vim-maktaba

maktaba#plugin#Install('nonexistent/path/') should throw an error

Open
#27 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Vim Script
Stars
588
Forks
41
PR merge metrics
No merged PRs in 30d

Description

Calling `maktaba#plugin#Install('nonexistent/path/')` to install nonexistent plugin paths actually succeeds, registering and returning a plugin object:

```
:echo maktaba#plugin#Install('nonexistent/path/')
{'HasDir': function('maktaba#plugin#HasDir'), 'flags': {}, …}
:echo maktaba#plugin#IsRegistered('path')
1
```

Seems like it should throw `NotFound` or something.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.