lua-path icon indicating copy to clipboard operation
lua-path copied to clipboard

Lack of LuaFileSystem is not notified (Linux)

Open mfrigerio17 opened this issue 2 years ago • 0 comments

I write this more for reference for users who may have the same problems.

When LuaFileSystem is not installed, doing

path = require "path"

does not produce any message and seems to succeed. However the returned table lacks many of the functions of the API, e.g. exists(). Solution: install LuaFileSystem first.

This issue is about the fact that loading the module should produce a warning or something. This is the case for require "path.fs" but not for require "path", which is normal usage.

mfrigerio17 avatar Nov 15 '23 10:11 mfrigerio17