codesnap.nvim icon indicating copy to clipboard operation
codesnap.nvim copied to clipboard

Bug: Crash when syntax detection fails.

Open gorillamoe opened this issue 3 months ago • 3 comments

When the syntax detection fails, it crashes nvim.

It should be handled gracefully instead of crashing.

thread '<unnamed>' panicked at library/core/src/panicking.rs:218:5:
                                                                   panic in a function that cannot unwind
                         note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
                      thread caused non-unwinding panic. aborting.

gorillamoe avatar Oct 18 '25 09:10 gorillamoe

X-Refs:

  • https://github.com/mistricky/codesnap.nvim/issues/157
  • https://github.com/mistricky/codesnap.nvim/issues/133

gorillamoe avatar Oct 18 '25 09:10 gorillamoe

@gorillamoe Codesnap v2.0.0-beta.17 has been released. Could you test whether everything works correctly on beta 17? This version introduces some breaking changes, so it's best to completely uninstall your previous Codesnap installation and follow the v2 README

mistricky avatar Nov 19 '25 04:11 mistricky

Pretty busy day, I'll give it a shot tomorrow (Thursday, CEST). Thanks for the hard work!

gorillamoe avatar Nov 19 '25 19:11 gorillamoe