astoff / digestif

A language server for TeX and friends
Other
255 stars 6 forks source link

Path manipulation functions on Windows #13

Closed wanderecon closed 1 year ago

wanderecon commented 4 years ago

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 ? ```
astoff commented 4 years ago

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 commented 1 year ago

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.