michaelb / sniprun

A neovim plugin to run lines/blocs of code (independently of the rest of the file), supporting multiples languages
MIT License
1.43k stars 46 forks source link

Error detected while processing function SnipRunLauncher #265

Closed chenhui2016 closed 8 months ago

chenhui2016 commented 8 months ago

Ubuntu 22.04

Nvim 0.9.4

image

michaelb commented 8 months ago

Hi thanks for submitting an issue about this problem.... However I don't have enough data to understand what's going on (and I'm quite unable to reproduce). My ideas for now are:

chenhui2016 commented 8 months ago

Thanks for your reply! I just want to run c language using sniprun, I installed sniprun correctly and using the default configuration. 1: :checkhealth sniprun say image 2:I'm not customize sniprun's binary_path 3.I just used the default installation method and installed sniprun correctly. image

michaelb commented 8 months ago

The checkhealth suggests something very important (the sniprun binary) doesn't exist

There should be no reason the binary is not present, save for internet connection strangeness (unlikely), or an inoportune neovim crash/close while the binary wasn't completely downloaded.

In both case I would try to reinstall the plugin, but if it doesn't work, I'd find where the plugin manager (lazy.nvim in your case) put sniprun, check the./target/release/sniprun binary and try to run the ./install.sh script

chenhui2016 commented 8 months ago

Thanks for your reply! Fine , The reason is Internet connetction! image

But, if I manually download a binary file, where should I place it? Is it this address /home/ch/.local/share/nvim/lazy/sniprun?

chenhui2016 commented 8 months ago

OK, I have solved. The last question, I don’t know if it’s a bug or if it will have any impact in the future. 1.When I manage the plugin in the lazy interface I run checkhealth and everything is correct.

  1. When I finished running the cpp file and got the correct results, then I ran the checkhealth command, the following error occurred: image
  2. Is this a bug? And I made the changes and reinstalled sniprun according to its error report, and it still shows this error.
  3. Thank you very much for making this plug-in. Thank you very much.
michaelb commented 8 months ago

2 -> strange, I will look into it but I'm not sure I'll be able to do something

4 -> if sniprun works for you..., well it works, don't mind the checkhealth

5 -> you're welcome