p00f / cphelper.nvim

Neovim helper for competitive programming. Use https://sr.ht/~p00f/cphelper.nvim instead
MIT License
130 stars 9 forks source link

Error while parsing through problem #27

Closed pyfb78 closed 2 years ago

pyfb78 commented 2 years ago

I was using the plugin to parse through the following problem, however, I received an error.

Error executing vim.schedule lua callback: ....local/share/nvim/cphelper.nvim/lua/cphelper/prepare.lua:24: attempt to perform arithmetic on local 'sep_pos'
(a nil value)
stack traceback:
        ....local/share/nvim/cphelper.nvim/lua/cphelper/prepare.lua:24: in function 'prepare_folders'
        ....local/share/nvim/cphelper.nvim/lua/cphelper/receive.lua:32: in function <....local/share/nvim/cphelper.nvim/lua/cphelper/receive.lua:27>

Here is the problem. https://dmoj.ca/problem/pickit

I think the reason that there is an error is that the problem is not from a contest, so the plugin doesn't know how to create the folders.

p00f commented 2 years ago

Thanks, this is now fixed

pyfb78 commented 2 years ago

The same thing happened here for this problem: https://judge.yosupo.jp/problem/staticrmq

I'm pretty sure for the same reason as well.

p00f commented 2 years ago

Thanks, this is also fixed