{"action":"created","issue":{"url":"https://api.github.com/repos/dapetcu21/atom-autocomplete-lua/issues/4","repository_url":"https://api.github.com/repos/dapetcu21/atom-autocomplete-lua","labels_url":"https://api.github.com/repos/dapetcu21/atom-autocomplete-lua/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/dapetcu21/atom-autocomplete-lua/issues/4/comments","events_url":"https://api.github.com/repos/dapetcu21/atom-autocomplete-lua/issues/4/events","html_url":"https://github.com/dapetcu21/atom-autocomplete-lua/issues/4","id":186677009,"number":4,"title":".luacompleterc doesn't work on Windows","user":{"login":"dcr30","id":3995234,"avatar_url":"https://avatars.githubusercontent.com/u/3995234?v=3","gravatar_id":"","url":"https://api.github.com/users/dcr30","html_url":"https://github.com/dcr30","followers_url":"https://api.github.com/users/dcr30/followers","following_url":"https://api.github.com/users/dcr30/following{/other_user}","gists_url":"https://api.github.com/users/dcr30/gists{/gist_id}","starred_url":"https://api.github.com/users/dcr30/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcr30/subscriptions","organizations_url":"https://api.github.com/users/dcr30/orgs","repos_url":"https://api.github.com/users/dcr30/repos","events_url":"https://api.github.com/users/dcr30/events{/privacy}","received_events_url":"https://api.github.com/users/dcr30/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-01T23:37:51Z","updated_at":"2016-11-06T18:02:09Z","closed_at":null,"body":"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`.\r\n\r\nHere's my `.luacompleterc` contents:\r\n_(I actually tried many different examples of this file, etc, but nothing works)_\r\n```json\r\n{\r\n  \"global\": {\r\n    \"type\": \"table\",\r\n    \"fields\": {\r\n      \"myfunc\":  { \r\n        \"type\": \"function\",\r\n        \"description\": \"Just testing\",\r\n        \"args\": [{ \"name\": \"arg1\" }, { \"name\": \"arg2\", \"displayName\": \"[arg2]\" }]\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nSo I tried to debug your package and here is some information I got.\r\n\r\n1. Here you can see my test project structure and also you can see that debugger stops at breakpoint and show the correct file path.\r\n![image](https://cloud.githubusercontent.com/assets/3995234/19911358/1a7ce268-a0a4-11e6-9a93-f9f607f8e3d2.png)\r\n\r\n2. Here's what's being passed to `utils.mergeOptionsCached` method. We can see that it has opened and read my `.luacompleterc` with no problems: \r\n![image](https://cloud.githubusercontent.com/assets/3995234/19911402/6a0a3c54-a0a4-11e6-9f98-059dbdb106c7.png)\r\n\r\n3. Then I renamed my function in `.luacompleterc` to avoid caching and checked what does mergeOptionsCached return:\r\n![image](https://cloud.githubusercontent.com/assets/3995234/19911452/ac38ca46-a0a4-11e6-8b93-05cff5c91578.png)\r\n![image](https://cloud.githubusercontent.com/assets/3995234/19911477/d7b6e98c-a0a4-11e6-80bc-380bed81adcb.png)\r\n\r\nI'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.\r\n\r\n_P.S: Sorry for my bad english and thank you for this really useful package._"},"comment":{"url":"https://api.github.com/repos/dapetcu21/atom-autocomplete-lua/issues/comments/258698182","html_url":"https://github.com/dapetcu21/atom-autocomplete-lua/issues/4#issuecomment-258698182","issue_url":"https://api.github.com/repos/dapetcu21/atom-autocomplete-lua/issues/4","id":258698182,"user":{"login":"dcr30","id":3995234,"avatar_url":"https://avatars.githubusercontent.com/u/3995234?v=3","gravatar_id":"","url":"https://api.github.com/users/dcr30","html_url":"https://github.com/dcr30","followers_url":"https://api.github.com/users/dcr30/followers","following_url":"https://api.github.com/users/dcr30/following{/other_user}","gists_url":"https://api.github.com/users/dcr30/gists{/gist_id}","starred_url":"https://api.github.com/users/dcr30/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcr30/subscriptions","organizations_url":"https://api.github.com/users/dcr30/orgs","repos_url":"https://api.github.com/users/dcr30/repos","events_url":"https://api.github.com/users/dcr30/events{/privacy}","received_events_url":"https://api.github.com/users/dcr30/received_events","type":"User","site_admin":false},"created_at":"2016-11-06T18:02:09Z","updated_at":"2016-11-06T18:02:09Z","body":"Looks like it works now. Thank you for this fix!\r\n\r\nCan 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.\r\n\r\nAnd another little question if possible: is/will it be possible to use named types references inside the named types definitions? Like that:\r\n![image](https://cloud.githubusercontent.com/assets/3995234/20040189/ff0fc57c-a463-11e6-8339-8158c2cb4f7e.png)\r\n\r\nCurrently it looks like that for me:\r\n![image](https://cloud.githubusercontent.com/assets/3995234/20040204/39bc92fe-a464-11e6-88b3-38901674e8a0.png)"}}
{"actor":{"display_login":"dcr30"}}