Skip to content
Snippets Groups Projects
Unverified Commit 1fadbf5f authored by sunlin's avatar sunlin Committed by GitHub
Browse files

[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.
parent 14581397
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment