sniprun: Process failed to start

Describe the bug I’ve installed the plugin using Packer and had it run install.sh just as the documentation said but whenever I try and execute any piece of code using SnipRun, the following error occurrs.

What do the bug concerns? SnipRun itself, a particular interpreter? The bug seems to stem from SnipRun itself as far as I can tell.

To Reproduce Steps to reproduce the behavior:

  1. Install SnipRun
  2. Execute some Rust code

Expected behavior Expected execution of the code snipped tried.

Screenshots Screenshot from 2022-01-17 13-10-49

Environment:

  • Neovim version:
NVIM v0.6.1
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by nixbld

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "
/nix/store/1gpfwjr4rm2hw4jcb226m3nj9rf5sayq-neovim-unwrapped-0.6.1/share/nvim
"
  • OS/distribution:
    • NixOS
  • GNU libc version:
ldd (GNU libc) 2.33
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

Additional context I checked /home/iktefish/.local/share/nvim/site/pack/packer/start/sniprun/target/release to see if the binary is present, and it looks like it is (shown in screenshot). Screenshot from 2022-01-17 13-20-02

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 18 (9 by maintainers)

Most upvoted comments

Wonderful, i’ll leave a note up in the doc so future users can avoid so much trouble

Thank you for the patient debugging, I hope the experience will be better from now on (though, sniprun has its set off limitations😅), and feel free to close this issue

Amazing catch, bash ./install.sh failed to compile SnipRun, now I got what went wrong.

For anyone facing this problem in the future: If you only have nixpkgs.rustc and nixpkgs.cargo installed in a dev-shell on a per-project basis rather than having it installed system wide, the script won’t be able to build the bin. Run the script from a dev-shell that has the required packages or install the packages system wide, I tried both just now and both worked.

@michaelb Btw sir, awesome plugin!