diff options
author | sunlin <sunlin7@yahoo.com> | 2021-01-20 17:15:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-20 17:15:31 +0800 |
commit | 1fadbf5fb1e8b683da23635d7b229bf6fa9ba75e (patch) | |
tree | c180e1722adb7c3398819c8d0f817a85cd1598ba /3rd | |
parent | 1458139721646236406825a03a21152d98753515 (diff) | |
download | lua-language-server-1fadbf5fb1e8b683da23635d7b229bf6fa9ba75e.zip |
[main.lua] fix empty rootPath cause try "/log" folder
When run follow command with get error message,
```
$ bin/Linux/lua-language-server -E main.lua
bin/Linux/lua-language-server: filesystem error: cannot create directories: Permission denied [/log]
```
Which is caused by empty `rootPath' and the folder path for log with be `/log' in follow line,
https://github.com/sumneko/lua-language-server/blob/1458139721646236406825a03a21152d98753515/main.lua#L40
This change try to assign a default value `"."' for `rootPath' will fix the error.
Diffstat (limited to '3rd')
0 files changed, 0 insertions, 0 deletions