wbthomason / packer.nvim

A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config
MIT License
7.72k stars 262 forks source link

Special character Symbol confused as escape sequence #1088

Closed pannet1 closed 1 year ago

pannet1 commented 1 year ago

https://github.com/lewis6991/gitsigns.nvim/issues/649

Post the contents of ~/.cache/nvim/packer.nvim.log here nuked the log file prior running minimum config nothing is logged.

Error detected while processing /home/pannet1/minimal.lua: E5112: Error while creating lua chunk: /home/pannet1 /minimal.lua:19: invalid escape sequence near ''' Press ENTER or type command to continue
ghost commented 1 year ago

I also had this issue after a recent update. The actual error seems to be caused by something in a different package (in this case gitsigns.nvim). The downstream package has been fixed with release tag v0.5 but calling :PackerUpdate wasn't fixing the problem. Turns out, I had pinned a specific commit in my config. So make sure if you're pinned to a specific commit that it's at least d7e0bcbe45bd9d5d106a7b2e11dc15917d272c7a for this specific package