R-nvim / R.nvim

Neovim plugin to edit R files
GNU General Public License v3.0
128 stars 15 forks source link

nvimcom error executing command: slotNames #128

Closed PMassicotte closed 2 weeks ago

PMassicotte commented 2 months ago

I am facing a nvimcom error when executing this set of commands:

library(rphylopic)

uuid <- get_uuid(name = "Fistulifera solaris", n = 1)
img <- get_phylopic(uuid = uuid) 
nvimcom error executing command: slotNames(img@content[[1]]@c
ontent[[103]]@d@segments[[17]])
Error in img@content[[1]]@content[[103]]@d@segments[[18]] : 
  subscript out of bounds

It works fine in R/radian, but crashes within nvim.

Any ideas?

jalvesaq commented 2 months ago

Trying to replicate the issue:

> img <- get_phylopic(uuid = uuid)
Error in value[[3L]](cond) : 
  Problem downloading vector file. Please try again.
PMassicotte commented 2 months ago

Interesting,

image

PMassicotte commented 2 months ago

Maybe the service was down when you tried?

jalvesaq commented 1 month ago

I'm still getting the same result. Printing uuid I get "ad77846b-1071-4800-9e7b-eae4675fcecb".

PMassicotte commented 1 month ago

humm weird, let me try to find out what is going on.

PMassicotte commented 1 month ago

I have the same result as you, the crash is when I execute get_phylopic(uuid = uuid)

jalvesaq commented 2 weeks ago

Finally, this bug is fixed on the branch https://github.com/jalvesaq/R.nvim/commits/unnamed_list/ I plan to merge it tomorrow.

PMassicotte commented 2 weeks ago

Thank you very much!

jalvesaq commented 2 weeks ago

A simpler code to replicate the bug:

x <- list(1, "a", 1, "a")

After sending the line above to R, do \ro and \r=. The forth element will be color highlighted as numeric.

PMassicotte commented 2 weeks ago

This is what I have.

image

jalvesaq commented 2 weeks ago

This is the bug. But on the unnamed_list branch, [[4]] should have the same color as [[2]].

PMassicotte commented 2 weeks ago

This is the bug. But on the unnamed_list branch, [[4]] should have the same color as [[2]].

I confirm, fixed on my side.