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

E5555: API call: col value outside range #190

Open
tzachar opened this issue Jun 16, 2021 · 6 comments
Open

E5555: API call: col value outside range #190

tzachar opened this issue Jun 16, 2021 · 6 comments

Comments

@tzachar
Copy link
Contributor

tzachar commented Jun 16, 2021

When pressing ctr while standing on the last character in line I get the following:

Error detected while processing function <SNR>37_save_pos:                                                                                                                    
line    3:                                                                                                                                                                    
E5555: API call: col value outside range            

Probably have something to do with zero/one based indexing of columns.

@hkupty
Copy link
Collaborator

hkupty commented Jun 16, 2021

Thanks for the issue. I'll have a look!

@ianliu
Copy link
Contributor

ianliu commented Aug 13, 2021

I've opened a PR that fixes this issue: #194

@hkupty
Copy link
Collaborator

hkupty commented Aug 16, 2021

For some reason I didn't get a notification for this one. I've merged the PR, thanks a lot @ianliu!
@tzachar can you please check?

@tzachar
Copy link
Contributor Author

tzachar commented Aug 16, 2021

Hi,

This fixes the erorr, but jumps the cursor one line upwards.
I can't decide which is more annoying :)

@timoleistner
Copy link

timoleistner commented Sep 12, 2021

I also get the following error by visually selecting a chunk and writing ctr

E5108: Error executing lua ...nvim/site/pack/packer/start/iron.nvim/lua/iron/marks.lua:33: end
_line value outside range

This only happens if a new terminal is opened.

Edit:
Executing a shorter chunk gives

E5108: Error executing lua ...nvim/site/pack/packer/start/iron.nvim/lua/iron/marks.lua:33: end
_col value outside range

But looking at marks.lua line 16 and 17

end_line = opts.to_line or opts.from_line,
end_col = opts.to_col

and setting either value to - 1 still gives the same error message. How can I fix this?

Update:
I've found that this seems not to be an issue of this plugin, but of the extmark (nvim_buf_set_extmark) function from treesitter or neovim itself.
Already mentioned here and here and here

@hkupty
Copy link
Collaborator

hkupty commented May 18, 2022

I've recently fixed some issues in extracting and sending the data to the repl in #221 . Please let me know if this issue is fixed by that one as well.

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

4 participants