google / google/vim-maktaba

maktaba#library#Require doesn't respect names from addon-info.json

Open
#115 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

Maktaba has trouble consistently reading the right plugin names from addon-info.json for some functions like `maktaba#library#Require`. If you have a library plugin that looks like

```
somedirname/
somedirname/addon-info.json <-- contains {"name": "mylib"}
somedirname/autoload/mylib.vim
```

and you execute

``` VimL
set rtp+=path/to/somedirname
call maktaba#library#Require('mylib')
```

the Require call will fail saying mylib was not found.

Calling `maktaba#plugin#Detect()` will fix this, but maktaba ought to be able to detect the right plugin name without it.

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.