Closed macjabeth closed 7 years ago
Huh? Which one is it? Deprecated warning or argument must be a string? Also, what's your Atom version, plugin version and OS?
Atom Version: 1.14.2 Plugin Version: 0.8.0 OS: Linux (Ubuntu)
Not sure what the error was, it just showed up at the bottom and I clicked on the button to create an issue on here for it.
The deprecation error isn't showing up at the bottom anymore, though.
EDIT: Scratch that, it is showing up again.
same. appears after typing anything in editor with lua syntax.
same
This happens on new unsaved files, which haven't got a path
associated to them so path.dirname
gets undefined
or null
which of course aren't strings
To expand. The problem is in line 38 of luacompleterc.js, in that line path.dirname
is called with filePath
as argument, which is defined above in line 33 as editor.getBuffer().getPath()
which can return null
on unsaved files.
I think that the LuaCompleteRcProvider
should return the previousOptions
if filePath
is null
as done here
Argument to
path.dirname
must be a string