andreyorst / powerline.kak

Kakoune modeline, but with passion
MIT License
50 stars 8 forks source link

ModuleLoad missing #10

Closed McSwaggens closed 5 years ago

McSwaggens commented 5 years ago

Problem description

Installed powerline.kak using plug-kak and using the example configuration listed in the README.md. I'm getting the following 2 error messages in the *debug* buffer:

.../modules/position.kak:13:848: 'hook' no such hook: 'ModuleLoad'                     
plug.kak: Error occured while loading andreyorst/powerline.kak plugin:                                                               

And yes... The last line is blank. No powerline commands show up either.

Environment information

Kakoune version: 09e1ec97a9d7925c9d4411f4f274919aeea1bf75 OS version: ArchLinux, kernel 5.1.11 fish executable version: 3.0.2-1080-g097d6c3c5

andreyorst commented 5 years ago

You need latest master build to use this plugin. It uses new module system introduced after the last stable release.

McSwaggens commented 5 years ago

That fixed the issue but then I got an the following issue:

plug.kak: Can't declare highlighters for kakrc.                                                                                                                       
          Detailed error: 2:6: 'add-highlighter' no such id: 'kakrc'                                                                                                  
plug.kak: Error occured while loading andreyorst/powerline.kak plugin:                                                                                                
          2:6: 'evaluate-commands' 26:2202: 'evaluate-commands' no such command: 'defer'

For anyone wondering, I fixed the above error by switching to the dev branch on plug.kak which supports the defer command and everything works perfectly now. Thanks.

Vintodrimmer commented 5 years ago

I have built the latest master branch version, yet the problem persists.

Could it be due to this commit or am I doing something wrong?

andreyorst commented 5 years ago

No, you're right, Kakoune recently changed this hook's name. I'll update my plugins asap