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 on open Aerojump #13

Open
henryoliver opened this issue Nov 21, 2019 · 13 comments
Open

Error on open Aerojump #13

henryoliver opened this issue Nov 21, 2019 · 13 comments

Comments

@henryoliver
Copy link

I can't launch the plugin, maybe the error still exists.

NVIM v0.4.3

init.vim

Plug 'ripxorip/aerojump.nvim', { 'do': ':UpdateRemotePlugins' }
Error detected while processing function remote#define#request:
line    2:
Error invoking '/Users/henryoliver/.config/nvim/plugged/aerojump.nvim/rplugin/python3/aerojump:command:Aerojump' on channel 4 (python3-rplugin-host):
error caught in request handler '/Users/henryoliver/.config/nvim/plugged/aerojump.nvim/rplugin/python3/aerojump:command:Aerojump [[], [90, 90]]':
Traceback (most recent call last):
  File "/Users/henryoliver/.config/nvim/plugged/aerojump.nvim/rplugin/python3/aerojump/__init__.py", line 229, in Aerojump
    settings['input'] = args[0]
IndexError: list index out of range
Press ENTER or type command to continue

Thanks!

@ripxorip
Copy link
Owner

Hi! I think you are missing a parameter when starting the plugin. Whats the command you are using to summon the plugin?

@henryoliver
Copy link
Author

henryoliver commented Nov 22, 2019

Hi @ripxorip, I just installed the plugin and later I did : Aerojump

Error detected while processing function remote#define#CommandBootstrap[5]..remote#define#request:
line    2:
Error invoking '/Users/henryoliver/.config/nvim/plugged/aerojump.nvim/rplugin/python3/aerojump:command:Aerojump' on channel 4 (python3-rplugin-host):
error caught in request handler '/Users/henryoliver/.config/nvim/plugged/aerojump.nvim/rplugin/python3/aerojump:command:Aerojump [[], [1, 1]]':
Traceback (most recent call last):
  File "/Users/henryoliver/.config/nvim/plugged/aerojump.nvim/rplugin/python3/aerojump/__init__.py", line 229, in Aerojump
    settings['input'] = args[0]
IndexError: list index out of range
Press ENTER or type command to continue

The only way that seems to work is if I use mapping keys on my vimrc:
nmap <Leader>as <Plug>(AerojumpSpace)
but even with that, does not seems to work on find words and I'm getting this other error after typing:

Error detected while processing function remote#define#CommandBootstrap[5]..remote#define#request:
line    2:
Error invoking '/Users/henryoliver/.config/nvim/plugged/aerojump.nvim/rplugin/python3/aerojump:command:AerojumpUp' on channel 4 (python3-rplugin-host):
error caught in request handler '/Users/henryoliver/.config/nvim/plugged/aerojump.nvim/rplugin/python3/aerojump:command:AerojumpUp [[], [4, 4]]':
Traceback (most recent call last):
  File "/Users/henryoliver/.config/nvim/plugged/aerojump.nvim/rplugin/python3/aerojump/__init__.py", line 314, in AerojumpUp
    self.__update_highlights(self.aj.get_highlights())
  File "/Users/henryoliver/.config/nvim/plugged/aerojump.nvim/rplugin/python3/aerojump/aerojump.py", line 262, in get_highlights
    return self.highlights
AttributeError: 'AerojumpSpace' object has no attribute 'highlights'
Press ENTER or type command to continue
"Aerojump" [New File]
Error detected while processing CursorMoved Autocommands for "<buffer=13>":
E121: Undefined variable: b:original_commentstring
Press ENTER or type command to continue

@ripxorip
Copy link
Owner

Well :Aeorjump without any additional params won't work since its expecting which mode etc to run. Are you running from the latest commit on master? Trying to reproduce your error but I am not able to. Are you running the plugin on an empty buffer perhaps?

@ripxorip
Copy link
Owner

Empty buffer shall not cause any crashes anymore.

@ripxorip
Copy link
Owner

You have run :UpdateRemotePlugins first?

@henryoliver
Copy link
Author

Yes,

remote/host: python3 host registered plugins ['aerojump', 'deoplete', 'far']
remote/host: generated rplugin manifest: /Users/henryoliver/.local/share/nvim/rplugin.vim
Press ENTER or type command to continue

And just ran :PlugUpdate

  7 - aerojump.nvim: Already up to date.                                                                                                              │   10     current,

I can't find anything on the doc that say how can you actually use Aerojump beside the vimrc mapping, here is my vimrc mapping:

" Aerojump
nmap <Leader>j <Plug>(AerojumpBolt)
nmap <Leader>aa <Plug>(AerojumpDefault)

And here is an screenshot when I use aa (AerojumpDefault) on my project file (buffer with a file on it)
image

aa (AerojumpDefault) and typing the word React
image

Error detected while processing function remote#define#CommandBootstrap[5]..remote#define#request:
line    2:
Error invoking '/Users/henryoliver/.config/nvim/plugged/aerojump.nvim/rplugin/python3/aerojump:command:AerojumpDown' on channel 4 (python3-rplugin-host):
error caught in request handler '/Users/henryoliver/.config/nvim/plugged/aerojump.nvim/rplugin/python3/aerojump:command:AerojumpDown [[], [3, 3]]':
Traceback (most recent call last):
  File "/Users/henryoliver/.config/nvim/plugged/aerojump.nvim/rplugin/python3/aerojump/__init__.py", line 332, in AerojumpDown
    self.__update_highlights(self.aj.get_highlights())
  File "/Users/henryoliver/.config/nvim/plugged/aerojump.nvim/rplugin/python3/aerojump/aerojump.py", line 262, in get_highlights
    return self.highlights
AttributeError: 'Aerojump' object has no attribute 'highlights'
Press ENTER or type command to continue

Something weird is happening there, it may be a conflict with Deoplete autocomplete plugin.

@ripxorip
Copy link
Owner

Aha!! I think I know what the problem is. Can you try once more but without any caps?

@ripxorip
Copy link
Owner

I wrote the plugin to be case insensitive so I think it gets confused when you start with a capital letter.

@henryoliver
Copy link
Author

Ok, just updated everything, and did:

  1. Open a very simple HTML file
    image

  2. Pressed <Leader>aa and typed the word meta
    image

Nothing gets matched and when hit enter it just goes back to the buffer.

@henryoliver
Copy link
Author

@ripxorip any idea about what could be the cause of this issue? Seems like the plugins tries to run into the input line instead of the current buffer.

@ripxorip
Copy link
Owner

ripxorip commented Dec 5, 2019

Hi sorry for the delay. Are you by any chance running Mac/Linux? If so I would be interested to see if you could reproduce this behavior in an isolated environment such as Docker. That way I could easily debug it on my end. One other solution would be to provide you with an instrumented version of the plugin and sending me some logs. Cheers.

@henryoliver
Copy link
Author

No problem @ripxorip, thanks for your help so far! I'm using macOS Catalina here. Could I send you some logs from the plugin? Is this possible? I think this may be a good start.

@dimroc
Copy link

dimroc commented Apr 24, 2020

Thanks for the plugin!
I also have the issue below and the inability to have case sensitive search. I have a suspicion that it's colliding with another plugin, either CoC tab completion or Semshi python.

This is when running on Redhat linux, not Mac OSX.

AttributeError: 'Aerojump' object has no attribute 'highlights'

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

3 participants