{"issue":{"created_at":"2011-11-21T16:13:13Z","state":"closed","updated_at":"2011-11-21T20:54:34Z","user":{"gravatar_id":"cfc6715040fb4be90ba8d83db52de956","id":532284,"url":"https://api.github.com/users/ubunatic","login":"ubunatic","avatar_url":"https://secure.gravatar.com/avatar/cfc6715040fb4be90ba8d83db52de956?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":2,"body":"I debugged the lua.vim script and found a problem on windows (7):\r\nI reproduced it manually on the command line:\r\n\r\n    C:\\somedir> luac -p 'C:/home/juve/workspace/test/main.lua'\r\n\r\nproduces an error:\r\n\r\n    luac: cannot open 'C:/home/juve/workspace/test/main.lua': Invalid argument\r\n\r\nUsing default double quotes works fine.\r\n\r\n    C:\\somedir> luac -p \"C:/home/juve/workspace/test/main.lua\"\r\n\r\nThe problem derives from vim's shellescape (I guess):\r\n\r\n    function xolox#lua#checksyntax\r\n    line 18: execute 'silent make!' compiler_args shellescape(expand('%'))\r\n\r\nThe status line in Vim shows:\r\n\r\n    lua.vim 0.6.27: Syntax error on line 0: luac: cannot open 'C:/home/juve/workspace/test/main.lua': Invalid argument","assignee":null,"id":2306172,"number":1,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"luac has problems with shellescape","closed_at":"2011-11-21T16:26:32Z","html_url":"https://github.com/xolox/vim-lua-ftplugin/issues/1","url":"https://api.github.com/repos/xolox/vim-lua-ftplugin/issues/1","milestone":null},"action":"created","comment":{"created_at":"2011-11-21T20:54:34Z","updated_at":"2011-11-21T20:54:34Z","user":{"gravatar_id":"f8d3b4213f6ac612d8d14f097defcbc3","id":100832,"url":"https://api.github.com/users/xolox","login":"xolox","avatar_url":"https://secure.gravatar.com/avatar/f8d3b4213f6ac612d8d14f097defcbc3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Hi Uwe,\r\n\r\nI've had so many bug reports about the [shellslash](http://vimdoc.sourceforge.net/htmldoc/options.html#%27shellslash%27) option breaking the [shellescape()](http://vimdoc.sourceforge.net/htmldoc/eval.html#shellescape%28%29) function that I now consider it a bug when my Vim plug-ins don't work around this issue :-). Anyway, I've just released version 0.6.28 of the Lua file type plug-in which should work regardless of the shellslash setting. Thanks for the feedback!\r\n\r\n \\- Peter","id":2820958,"url":"https://api.github.com/repos/xolox/vim-lua-ftplugin/issues/comments/2820958"}}