~xerool/fennel-ls#29: 
Malformed Carriage R̲eturns in trans-compiled lua source code of the plugin

I tried installing from luarocks and mason in neovim I just get various errors regarding strings When I look in the source the ‘\r’ characters in the fennel source had been converted to ‘^M’. I haven't come across this issue before.

Some examples json-rpc.lua:16 utils.lua:8 utils.lua:10

System details

macOS 14.5

#Neovim setup

NVIM v0.10.0 Build type: Release LuaJIT 2.1.1713484068 mason.nvim version v1.10.0 mason is installing fennel-ls 0.1.2-2

#Externally from neovim and mason

I have tried luarocks 3.11.0 Fennel 1.4.2 on PUC Lua 5.1

Status
REPORTED
Submitter
~andrewcrook
Assigned to
No-one
Submitted
4 months ago
Updated
4 months ago
Labels
No labels applied.

~xerool 4 months ago

Not sure why this is happening. Thanks for letting me know.

~andrewcrook 4 months ago

I actually think this is a bug in fennel under neovim (print “\r\n”) was trans-compiled to print("\13\n”) and display as ^M when run. I will raise an issue for it.

~andrewcrook 4 months ago

Register here or Log in to comment, or comment via email.