Closed nbredikhin closed 7 years ago
Hi. Sorry for answering so late. I'll take a look on windows when I get home and see if I can reproduce.
I was able to reproduce something and fix it. I just find it weird that it manifested only on Windows. Try 0.7.1 and tell me how that works for you.
Looks like it works now. Thank you for this fix!
Can I ask here, how can I force it to reload .luacompleterc btw? It doesn't reload when saving/reopening/editing files, but only when I restart Atom.
And another little question if possible: is/will it be possible to use named types references inside the named types definitions? Like that:
Currently it looks like that for me:
I'm not sure, maybe it should probably be moved to another issue
For your first question, .luacompleterc
should get automatically reloaded. If it doesn't reload for you, then that's a bug and I'll take a look.
And as far as nested namedTypes
go, good catch! I didn't think about that. I'll fix it in a minute.
I opened a separate issue about the .luacompleterc
problem. For the namedTypes
issue, I just pushed a commit, but I'll release it along with the fix for #5.
My issue seems to be very similar to #3, but the difference is that I'm running Atom on Windows 10 x64. Everything works perfectly except
.luacompleterc
.Here's my
.luacompleterc
contents: (I actually tried many different examples of this file, etc, but nothing works)So I tried to debug your package and here is some information I got.
Here you can see my test project structure and also you can see that debugger stops at breakpoint and show the correct file path.
Here's what's being passed to
utils.mergeOptionsCached
method. We can see that it has opened and read my.luacompleterc
with no problems:Then I renamed my function in
.luacompleterc
to avoid caching and checked what does mergeOptionsCached return:I'm not really familiar with Atom packages, but I guess that
LuaCompleteRcProvider
getOptions` returns what it's supposed to return. So do you have any ideas? Thank you in advance.P.S: Sorry for my bad english and thank you for this really useful package.