{"action":"created","issue":{"url":"https://api.github.com/repos/neovim/neovim/issues/9391","repository_url":"https://api.github.com/repos/neovim/neovim","labels_url":"https://api.github.com/repos/neovim/neovim/issues/9391/labels{/name}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/9391/comments","events_url":"https://api.github.com/repos/neovim/neovim/issues/9391/events","html_url":"https://github.com/neovim/neovim/issues/9391","id":393718003,"node_id":"MDU6SXNzdWUzOTM3MTgwMDM=","number":9391,"title":"executable() returns TRUE for \"vimdoc\" (python script)","user":{"login":"wsdjeg","id":13142418,"node_id":"MDQ6VXNlcjEzMTQyNDE4","avatar_url":"https://avatars2.githubusercontent.com/u/13142418?v=4","gravatar_id":"","url":"https://api.github.com/users/wsdjeg","html_url":"https://github.com/wsdjeg","followers_url":"https://api.github.com/users/wsdjeg/followers","following_url":"https://api.github.com/users/wsdjeg/following{/other_user}","gists_url":"https://api.github.com/users/wsdjeg/gists{/gist_id}","starred_url":"https://api.github.com/users/wsdjeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wsdjeg/subscriptions","organizations_url":"https://api.github.com/users/wsdjeg/orgs","repos_url":"https://api.github.com/users/wsdjeg/repos","events_url":"https://api.github.com/users/wsdjeg/events{/privacy}","received_events_url":"https://api.github.com/users/wsdjeg/received_events","type":"User","site_admin":false},"labels":[{"id":109461219,"node_id":"MDU6TGFiZWwxMDk0NjEyMTk=","url":"https://api.github.com/repos/neovim/neovim/labels/platform:windows","name":"platform:windows","color":"d4c5f9","default":false},{"id":713599092,"node_id":"MDU6TGFiZWw3MTM1OTkwOTI=","url":"https://api.github.com/repos/neovim/neovim/labels/system","name":"system","color":"c5def5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/neovim/neovim/milestones/6","html_url":"https://github.com/neovim/neovim/milestone/6","labels_url":"https://api.github.com/repos/neovim/neovim/milestones/6/labels","id":655037,"node_id":"MDk6TWlsZXN0b25lNjU1MDM3","number":6,"title":"todo","description":"Low priority. Not planned for the current target, may be reassigned.","creator":{"login":"justinmk","id":1359421,"node_id":"MDQ6VXNlcjEzNTk0MjE=","avatar_url":"https://avatars0.githubusercontent.com/u/1359421?v=4","gravatar_id":"","url":"https://api.github.com/users/justinmk","html_url":"https://github.com/justinmk","followers_url":"https://api.github.com/users/justinmk/followers","following_url":"https://api.github.com/users/justinmk/following{/other_user}","gists_url":"https://api.github.com/users/justinmk/gists{/gist_id}","starred_url":"https://api.github.com/users/justinmk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinmk/subscriptions","organizations_url":"https://api.github.com/users/justinmk/orgs","repos_url":"https://api.github.com/users/justinmk/repos","events_url":"https://api.github.com/users/justinmk/events{/privacy}","received_events_url":"https://api.github.com/users/justinmk/received_events","type":"User","site_admin":false},"open_issues":277,"closed_issues":252,"state":"open","created_at":"2014-05-10T20:43:04Z","updated_at":"2018-12-27T21:10:51Z","due_on":null,"closed_at":null},"comments":10,"created_at":"2018-12-23T02:42:34Z","updated_at":"2018-12-28T10:46:47Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"<!-- Before reporting: search existing issues and check the FAQ. -->\r\n\r\n- `nvim --version`: \r\n\r\n```\r\nNVIM v0.3.2-1015-gaec096fc5\r\nBuild type: RelWithDebInfo\r\nLuaJIT 2.0.5\r\nCompilation: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x64/cl.exe /DWIN32 /D_WINDOWS /W3 /MD /Zi /O2 /Ob1 /DNDEBUG -DMIN_LOG_LEVEL=3 /W3 -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE -DWIN32 -D_WIN32_WINNT=0x0600 -DINCLUDE_GENERATED_DECLARATIONS -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -IC:/projects/neovim/build/config -IC:/projects/neovim/src -IC:/projects/neovim/.deps/usr/include -IC:/projects/neovim/build/src/nvim/auto -IC:/projects/neovim/build/include\r\nCompiled by appveyor@APPVYR-WIN\r\n\r\nFeatures: -acl +iconv -jemalloc +tui \r\nSee \":help feature-compile\"\r\n\r\n   system vimrc file: \"$VIM\\sysinit.vim\"\r\n  fall-back for $VIM: \"C:/Program Files/nvim/share/nvim\"\r\n\r\nRun :checkhealth for more info\r\n```\r\n- Vim (version: ) behaves differently? yes\r\n- Operating system/version: win7\r\n- Terminal name/version: NONE\r\n- `$TERM`: cmd.exe\r\n\r\n### Steps to reproduce using `nvim -u NORC`\r\n\r\n1. In install google vimdoc. \r\n\r\nin cmd.exe windows:\r\n\r\n```\r\ngit clone https://github.com/google/vimdoc.git\r\ncd vimdoc\r\npython setup.py config\r\npython setup.py build\r\npython setup.py install\r\n```\r\nnow in cmd windows I can use `python -m vimdoc -h` to get vimdoc help info. in windows user should not be able to use `vimdoc -h`, because `vimdoc` is not executable file in windows.\r\n\r\n\r\n```\r\nnvim -u NORC\r\n:echo executable('vimdoc')\r\nIt return 1\r\n```\r\n\r\n\r\n\r\n### Actual behaviour\r\n\r\nIn neovim, `:echo executable('vimdoc')` return 1, but in vim8 it return 0.\r\n\r\nEDIT:\r\n\r\nnow `exepath('vimdoc')` return `C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python37\\Scripts\\vimdoc`\r\n\r\n### Expected behaviour\r\n\r\nI think, in window os, It should return 0.\r\n"},"comment":{"url":"https://api.github.com/repos/neovim/neovim/issues/comments/450339681","html_url":"https://github.com/neovim/neovim/issues/9391#issuecomment-450339681","issue_url":"https://api.github.com/repos/neovim/neovim/issues/9391","id":450339681,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDMzOTY4MQ==","user":{"login":"wsdjeg","id":13142418,"node_id":"MDQ6VXNlcjEzMTQyNDE4","avatar_url":"https://avatars2.githubusercontent.com/u/13142418?v=4","gravatar_id":"","url":"https://api.github.com/users/wsdjeg","html_url":"https://github.com/wsdjeg","followers_url":"https://api.github.com/users/wsdjeg/followers","following_url":"https://api.github.com/users/wsdjeg/following{/other_user}","gists_url":"https://api.github.com/users/wsdjeg/gists{/gist_id}","starred_url":"https://api.github.com/users/wsdjeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wsdjeg/subscriptions","organizations_url":"https://api.github.com/users/wsdjeg/orgs","repos_url":"https://api.github.com/users/wsdjeg/repos","events_url":"https://api.github.com/users/wsdjeg/events{/privacy}","received_events_url":"https://api.github.com/users/wsdjeg/received_events","type":"User","site_admin":false},"created_at":"2018-12-28T10:46:47Z","updated_at":"2018-12-28T10:46:47Z","author_association":"CONTRIBUTOR","body":"Hi, I do not knwo if it is a bug of neovim's `executable()`, my reproduce step is:\r\n\r\n1. open neovim, run `:echo executable('rg')`, it return 1\r\n2. run flygrep, or just run denite\r\n3. `:echo executable('rg')` then return 0, `:echo executable('cmd')` return 1\r\n4. run `let $PATH= 'D:\b\\bin;'. $PATH`, then `:echo executable('rg')` then return 1\r\n\r\nNOTE: my rg.exe whole path is `D:\\bin\\rg.exe`\r\n\r\n________________________________\r\nwsdjeg@outlook.com\r\n\r\nFrom: Wang Shidong<mailto:notifications@github.com>\r\nDate: 2018-12-28 16:21\r\nTo: neovim/neovim<mailto:neovim@noreply.github.com>\r\nCC: Wang Shidong<mailto:wsdjeg@outlook.com>; Your activity<mailto:your_activity@noreply.github.com>\r\nSubject: Re: [neovim/neovim] executable() returns TRUE for \"vimdoc\" (python script) (#9391)\r\n\r\nvimdoc, is just a python script, if I run:\r\n\r\nexe 'e '.  exepath('vimdoc')\r\n\r\nI can see:\r\n\r\n#!C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python37\\python.exe\r\nimport vimdoc.__main__\r\nvimdoc.__main__.main()\r\n\r\n\r\n―\r\nYou are receiving this because you are subscribed to this thread.\r\nReply to this email directly, view it on GitHub<https://github.com/neovim/neovim/issues/9391#issuecomment-450315858>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AMiJkrjsnDNeqlmCZR_Cqx9aZNExAXYjks5u9dSRgaJpZM4Zfr1x>.\r\n"}}
{"actor":{"display_login":"wsdjeg"}}