LuaFormatter icon indicating copy to clipboard operation
LuaFormatter copied to clipboard

Error when formatting `terminate called after throwing an instance of 'std::experimental::filesystem::v1::__cxx11::filesystem_error'`

Open luisiacc opened this issue 4 years ago • 0 comments

I did this:

lua-format -i src/asd.lua

And got this:

terminate called after throwing an instance of 'std::experimental::filesystem::v1::__cxx11::filesystem_error'
  what():  filesystem error: directory iterator cannot open directory: No such file or directory
Aborted

Some notes:

OS: Ubuntu 18.04

If I have a .lua-format file on project-sample/.lua-format or on project-sample/src/.lua-format, then there is no error and the formatting happens succesfully, but if I don't have any .lua-format file at all, then this error appears.

Maybe this tree can be helpful:

 ~#@>  tree -a -C -u -p -g -D ./
./
└── [drwxr-xr-x acc      acc      Nov 12 15:19]  project-sample
    └── [drwxr-xr-x acc      acc      Nov 12 15:18]  src
        └── [-rw-r--r-- acc      acc      Nov 12 15:19]  asd.lua

I originally posted this error on https://github.com/andrejlevkovitch/vim-lua-format/issues/5 , you can look there for more info.

luisiacc avatar Nov 12 '21 20:11 luisiacc