digestif icon indicating copy to clipboard operation
digestif copied to clipboard

Path manipulation functions on Windows

Open wanderecon opened this issue 5 years ago • 1 comments

Hi Astoff!

Thanks for developing a fantastic package!

I am using lua 5.3.5 (32-bit).

I have installed digestif using luarocks, but have the following error when I try to run digestif in cmd or when it is called in nvim.

I am new to this, so any help would be appreciated!

C:\Program Files (x86)\lua\5.3\bin\lua.exe: ...ram files (x86)\lua\5.3\/share/lua/5.3/digestif\util.lua:322: 
bad argument #1 to 'match' (string expected, got nil)
stack traceback:
        [C]: in function 'lpeg.match'
        ...ram files (x86)\lua\5.3\/share/lua/5.3/digestif\util.lua:322: in local 'f'
        ...ram files (x86)\lua\5.3\/share/lua/5.3/digestif\util.lua:27: in function 'digestif.util.foldl1'
        (...tail calls...)
        ...m files (x86)\lua\5.3\/share/lua/5.3/digestif\config.lua:7: in main chunk
        [C]: in function 'require'
        ...les (x86)\lua\5.3\/share/lua/5.3/digestif\Manuscript.lua:4: in main chunk
        [C]: in function 'require'
        ...am files (x86)\lua\5.3\/share/lua/5.3/digestif\Cache.lua:5: in main chunk
        [C]: in function 'require'
        ...les (x86)\lua\5.3\/share/lua/5.3/digestif\langserver.lua:1: in main chunk
        [C]: in function 'require'
        ...\5.3\\lib\luarocks\rocks-5.3\digestif\0.2-1\bin\digestif:2: in main chunk
        [C]: in ? ```

wanderecon avatar Feb 09 '20 17:02 wanderecon

This error happens in one of the path manipulation functions. I am not able to test the program on Windows, so I can't fix this. Patches are very welcome, though.

astoff avatar Feb 13 '20 19:02 astoff

This has been a while ago and the report error location is out of date, so I'll close the issue. Feel free to report similar bugs, if you find any.

astoff avatar Nov 10 '22 21:11 astoff