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 is thrown if you run ":Semshi goto error" before opening a file #21

Closed
CaerphillyMediaLtd opened this issue Oct 23, 2018 · 1 comment

Comments

@CaerphillyMediaLtd
Copy link

Seems it's not handled, the following error occurs:

Error detected while processing function remote#define#CommandBootstrap[5]..remote#define#request:
line    2:
error caught in request handler '/home/levi/.vim/plugged/semshi/rplugin/python3/semshi:command:Semshi [['goto', 'error']]':
Traceback (most recent call last):
  File "/home/levi/.vim/plugged/semshi/rplugin/python3/semshi/plugin.py", line 119, in cmd_semshi
    func(self, *args[1:])
  File "/home/levi/.vim/plugged/semshi/rplugin/python3/semshi/plugin.py", line 163, in goto
    self._cur_handler.goto(*args, **kwargs)
AttributeError: 'NoneType' object has no attribute 'goto'

numirias added a commit that referenced this issue Oct 24, 2018
@numirias
Copy link
Owner

Thanks for reporting! An error should be thrown, but of course it should be expressive. I added a proper error message in #22.

(There's an unrelated issue I need to solve before being able to merge that.)

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