Closed serg3295 closed 3 years ago
I think this is a bug of lfs.
Probably. Thanks.
As a workaround.
I did set absolute path instead of relative and make new test
local srcDir = '/home/serg/temp/tstdir'
.
In this case script works both in debugger and lua interpreter.
Edit
with the "lua.debug.settings.console": "integratedTerminal"
setting, the script works correctly in the debugger even with a relative path.
I am trying to debug script containing
lfs.attributes()
call. Directory./tstdir
is located in ${workspaceFolder}. When I run this script with lua interpreter lfs.attributes() returns 'table' as expected. But under debugger it returnsnil
and error message 'cannot obtain information from file './tstdir': No such file or directory'. Change./tstdir
ontstdir
gives the same result. What I'm doing wrong?To reproduce
Environment
Edit I have tested this script on Windows 10 with settings:
All works correctly. So, the problem is on linux only.