p00f / cphelper.nvim

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

Nothing happens when run CphReceive #5

Closed lanithenothing closed 3 years ago

lanithenothing commented 3 years ago

github

lanithenothing commented 3 years ago

I press competitive companion icon, but again nothing happens.

p00f commented 3 years ago

Can you paste the output of :version here?

p00f commented 3 years ago

@laniakeaaa can you please paste the output of :version here?

p00f commented 3 years ago

Probable fix is sudo luarocks remove http then sudo luarocks install http --lua-version 5.1

p00f commented 3 years ago

(You need to have lua 5.1 installed to do this)

p00f commented 3 years ago

I'll change the readme

p00f commented 3 years ago

I've changed the readme, can you try again?

robusta301 commented 3 years ago

I have a same problem with this output 2021-04-30_23-51-44

p00f commented 3 years ago

@robusta301 Okay your neovim uses lua 5.2, uninstall the old rock sudo luarocks remove http --lua-version 5.1 then install the correct version sudo luarocks install http --lua-version 5.2

p00f commented 3 years ago

Assuming 5.1 was a wrong assumption, I'll change the readme again tomorrow

robusta301 commented 3 years ago

I managed to run :CphReceive and Parse Task in the browser, it run but nothing happens

p00f commented 3 years ago

Ok, run :debug CphReceive then type cont (as instructed) and press enter. Then parse task in browser and paste the debug output here

p00f commented 3 years ago

As an example, here is the expected behaviour without :debug

https://user-images.githubusercontent.com/36493671/116740458-af2c9580-aa12-11eb-922a-09098402f055.mp4

And here's the expected output with :debug (yours might be different because there's something wrong)

https://user-images.githubusercontent.com/36493671/116740610-e26f2480-aa12-11eb-920b-d5e68d9ba6cb.mp4

p00f commented 3 years ago

You don't have to run :CphReceive in an empty cpp file, you can run it on neovim's start screen too (in both cases it will create the contest solution file in its own directory and open that file)

p00f commented 3 years ago

I've changed the readme again, @laniakeaaa @robusta301 can you try uninstalling the rock and installing as mentioned in the README?

Juantamayo26 commented 3 years ago

This version work? Or is just 2.0.5? image

p00f commented 3 years ago

This version work? Or is just 2.0.5? image

Yes, use --lua-version 5.1

p00f commented 3 years ago

I've added a demo video to the README

p00f commented 3 years ago

Closing (no response from issue author)