{"action":"created","issue":{"url":"https://api.github.com/repos/Shougo/deoplete.nvim/issues/434","repository_url":"https://api.github.com/repos/Shougo/deoplete.nvim","labels_url":"https://api.github.com/repos/Shougo/deoplete.nvim/issues/434/labels{/name}","comments_url":"https://api.github.com/repos/Shougo/deoplete.nvim/issues/434/comments","events_url":"https://api.github.com/repos/Shougo/deoplete.nvim/issues/434/events","html_url":"https://github.com/Shougo/deoplete.nvim/issues/434","id":208193309,"number":434,"title":"Errors when entering insert in PHP file","user":{"login":"ChrisBFusion","id":6013872,"avatar_url":"https://avatars.githubusercontent.com/u/6013872?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisBFusion","html_url":"https://github.com/ChrisBFusion","followers_url":"https://api.github.com/users/ChrisBFusion/followers","following_url":"https://api.github.com/users/ChrisBFusion/following{/other_user}","gists_url":"https://api.github.com/users/ChrisBFusion/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisBFusion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisBFusion/subscriptions","organizations_url":"https://api.github.com/users/ChrisBFusion/orgs","repos_url":"https://api.github.com/users/ChrisBFusion/repos","events_url":"https://api.github.com/users/ChrisBFusion/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisBFusion/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-02-16T17:36:36Z","updated_at":"2017-02-20T21:46:09Z","closed_at":"2017-02-16T23:25:15Z","body":"**Warning:  I will close the issue without the minimal init.vim and the reproduce ways.**\r\n\r\n# Problems summary\r\nWhen entering a PHP file, deoplete immediately generates errors.\r\n\r\n## Expected\r\nDeoplete to provide completions in PHP files.\r\n\r\n\r\n## Environment Information\r\n\r\n * deoplete version(SHA1): 9f62f1af933f5852b8d797dde4f8d36997a66941\r\nSHA1(/Users/chris/.cache/vimfiles/repos/github.com/Shougo/deoplete.nvim/plugin/deoplete.vim)\r\n\r\n * OS: MacOS 10.12.3\r\n\r\n * neovim version: 0.1.7\r\n\r\n * `:CheckHealth` result(neovim ver.0.1.5-452+):\r\n```\r\nhealth#deoplete#check\r\n========================================================================\r\n## deoplete.nvim\r\n  - SUCCESS: has(\"nvim\") was successful\r\n  - SUCCESS: has(\"python3\") was successful\r\n  - INFO: If you're still having problems, try the following commands:\r\n    $ export NVIM_PYTHON_LOG_FILE=/tmp/log\r\n    $ export NVIM_PYTHON_LOG_LEVEL=DEBUG\r\n    $ nvim\r\n    $ cat /tmp/log_{PID}\r\n    and then create an issue on github\r\n\r\nhealth#nvim#check\r\n========================================================================\r\n## Configuration\r\n  - SUCCESS: no issues found\r\n\r\n## Performance\r\n  - SUCCESS: Build type: Release\r\n\r\n## Remote Plugins\r\n  - SUCCESS: Up to date\r\n\r\n## terminfo\r\n  - INFO: key_backspace terminfo entry: key_backspace=\\177,\r\n\r\nhealth#provider#check\r\n========================================================================\r\n## Clipboard\r\n  - SUCCESS: Clipboard tool found: pbcopy\r\n\r\n## Python 2 provider\r\n  - INFO: `g:python_host_prog` is not set.  Searching for python2.7 in the environment.\r\n  - INFO: There are multiple python2.7 executables found.  Set \"g:python_host_prog\" to avoid surprises.\r\n  - INFO: Executable: /opt/local/bin/python2.7\r\n  - INFO: Other python executable: /usr/bin/python2.7\r\n  - INFO: Python2 version: 2.7.13\r\n  - INFO: python2.7-neovim version: 0.1.13\r\n  - SUCCESS: Latest python2.7-neovim is installed: 0.1.13\r\n\r\n## Python 3 provider\r\n  - INFO: `g:python3_host_prog` is not set.  Searching for python in the environment.\r\n  - INFO: There are multiple python executables found.  Set \"g:python3_host_prog\" to avoid surprises.\r\n  - INFO: Executable: /opt/local/bin/python\r\n  - INFO: Other python executable: /usr/bin/python\r\n  - INFO: Python3 version: 3.6.0\r\n  - INFO: python-neovim version: 0.1.13\r\n  - SUCCESS: Latest python-neovim is installed: 0.1.13\r\n\r\n## Ruby provider\r\n  - SUCCESS: Found up-to-date neovim RubyGem\r\n  - INFO: Ruby Version: ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-darwin16]\r\n  - INFO: Host Executable: /opt/local/bin/neovim-ruby-host\r\n  - INFO: Host Version: 0.3.1\r\n```\r\n\r\n## Provide a minimal init.vim with less than 50 lines (Required!)\r\n\r\n```vim\r\n\" Your minimal init.vim\r\ng:spacevim_version = '0.1.0-dev'\r\ng:spacevim_force_global_config = 0\r\ng:spacevim_smartcloseignoreft = ['help']\r\ng:spacevim_default_indent = 2\r\ng:spacevim_enable_javacomplete2_py = 0\r\ng:spacevim_enable_vimfiler_welcome = 1\r\ng:spacevim_colorscheme_default = 'desert'\r\ng:spacevim_warning_symbol = '⚠'\r\ng:spacevim_simple_mode = 0\r\ng:spacevim_colorscheme = 'base16-solarized-dark'\r\ng:spacevim_enable_guicolors = 1\r\ng:spacevim_custom_plugins = [['tpope/vim-obsession'], ['dhruvasagar/vim-prosession'], ['terryma/vim-multiple-cursors']]\r\ng:spacevim_hiddenfileinfo = 1\r\ng:spacevim_error_symbol = '✖'\r\ng:spacevim_vim_plug_installed = 0\r\ng:spacevim_windows_leader = 's'\r\ng:spacevim_wildignore = '*/tmp/*,*.so,*.swp,*.zip,*.class,tags,*.jpg,*.ttf,*.TTF,*.png,*/target/*,.git,.svn,.hg,.DS_Store'\r\ng:spacevim_use_colorscheme = 1\r\ng:spacevim_plugin_manager = 'dein'\r\ng:spacevim_enable_neocomplcache = 0\r\ng:spacevim_enable_debug = 0\r\ng:spacevim_vim_help_language = 'en'\r\ng:spacevim_lint_on_save = 1\r\ng:spacevim_dein_installed = 1\r\ng:spacevim_autocomplete_method = 'deoplete'\r\ng:spacevim_unite_leader = 'f'\r\ng:spacevim_enable_ycm = 0\r\ng:spacevim_enable_powerline_fonts = 1\r\ng:spacevim_plugin_groups_exclude = []\r\ng:spacevim_neobundle_installed = 0\r\ng:spacevim_disabled_plugins = []\r\ng:spacevim_guifont = ''\r\ng:spacevim_plugin_groups = ['web', 'lang', 'edit', 'ui', 'tools', 'checkers', 'format', 'chat', 'git', 'javascript', 'ruby', 'python', 'scala', 'lang#go', 'scm', 'editing', 'indents', 'navigation', 'misc', 'core', 'unite', 'github', 'denite', 'ctrlp', 'autocomplete\r\n', 'nvim', 'osx', 'colorscheme']\r\ng:spacevim_enable_googlesuggest = 0\r\ng:spacevim_language = ''\r\ng:spacevim_enable_neomake = 1\r\ng:spacevim_plugin_bundle_dir = '/Users/chris/.cache/vimfiles/'\r\ng:spacevim_hosts_url = 'https://raw.githubusercontent.com/racaljk/hosts/master/hosts'\r\ng:spacevim_smartcloseignorewin = ['__Tagbar__', 'vimfiler:default']\r\ng:spacevim_altmoveignoreft = ['Tagbar', 'vimfiler']\r\ng:spacevim_enable_cursorcolumn = 0\r\ng:spacevim_realtime_leader_guide = 0\r\ng:spacevim_checkinstall = 1\r\ng:spacevim_plugin_name = 'gruvbox'\r\ng:spacevim_enable_cursorline = 0\r\ng:spacevim_debug_level = 1\r\ng:spacevim_filemanager = 'vimfiler'\r\ng:spacevim_src_root = 'E:\\sources\\'\r\ng:spacevim_max_column = 120\r\n```\r\n\r\n\r\n## The reproduce ways from neovim starting (Required!)\r\n\r\n 1. Place cursor in PHP file.\r\n 2. Within PHP code, enter insert mode.\r\n 3. Watch ex statusline print errors.\r\n\r\n\r\n## Generate a logfile if appropriate\r\n:message output:\r\n```\r\n[deoplete] Traceback (most recent call last):\r\n[deoplete]   File \"/Users/chris/.cache/vimfiles/repos/github.com/Shougo/deoplete.nvim/rplugin/python3/deoplete/deoplete.py\", line 85, in gather_results\r\n[deoplete]     charpos = source.get_complete_position(ctx)\r\n[deoplete]   File \"/Users/chris/.cache/vimfiles/repos/github.com/Shougo/deoplete.nvim/rplugin/python3/deoplete/source/omni.py\", line 60, in get_complete_position\r\n[deoplete]     m = re.search('(' + input_pattern + ')$', context['input'])\r\n[deoplete]   File \"/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/re.py\", line 182, in search\r\n[deoplete]     return _compile(pattern, flags).search(string)\r\n[deoplete]   File \"/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/re.py\", line 301, in _compile\r\n[deoplete]     p = sre_compile.compile(pattern, flags)\r\n[deoplete]   File \"/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/sre_compile.py\", line 562, in compile\r\n[deoplete]     p = sre_parse.parse(p, flags)\r\n[deoplete]   File \"/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/sre_parse.py\", line 856, in parse\r\n[deoplete]     p = _parse_sub(source, pattern, flags & SRE_FLAG_VERBOSE, False)\r\n[deoplete]   File \"/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/sre_parse.py\", line 415, in _parse_sub\r\n[deoplete]     itemsappend(_parse(source, state, verbose))\r\n[deoplete]   File \"/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/sre_parse.py\", line 763, in _parse\r\n[deoplete]     p = _parse_sub(source, state, sub_verbose)\r\n[deoplete]   File \"/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/sre_parse.py\", line 415, in _parse_sub\r\n[deoplete]     itemsappend(_parse(source, state, verbose))\r\n[deoplete]   File \"/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/sre_parse.py\", line 501, in _parse\r\n[deoplete]     code = _escape(source, this, state)\r\n[deoplete]   File \"/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/sre_parse.py\", line 401, in _escape\r\n[deoplete]     raise source.error(\"bad escape %s\" % escape, len(escape))\r\n[deoplete] sre_constants.error: bad escape \\h at position 1\r\n[deoplete] Could not get completions from: omni.  Use :messages for error details.\r\n```\r\n\r\n## Screen shot (if possible)\r\n\r\n\r\n## Upload the log file\r\n[log_py3_rplugin.txt](https://github.com/Shougo/deoplete.nvim/files/780977/log_py3_rplugin.txt)"},"comment":{"url":"https://api.github.com/repos/Shougo/deoplete.nvim/issues/comments/281189096","html_url":"https://github.com/Shougo/deoplete.nvim/issues/434#issuecomment-281189096","issue_url":"https://api.github.com/repos/Shougo/deoplete.nvim/issues/434","id":281189096,"user":{"login":"Shougo","id":41495,"avatar_url":"https://avatars.githubusercontent.com/u/41495?v=3","gravatar_id":"","url":"https://api.github.com/users/Shougo","html_url":"https://github.com/Shougo","followers_url":"https://api.github.com/users/Shougo/followers","following_url":"https://api.github.com/users/Shougo/following{/other_user}","gists_url":"https://api.github.com/users/Shougo/gists{/gist_id}","starred_url":"https://api.github.com/users/Shougo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shougo/subscriptions","organizations_url":"https://api.github.com/users/Shougo/orgs","repos_url":"https://api.github.com/users/Shougo/repos","events_url":"https://api.github.com/users/Shougo/events{/privacy}","received_events_url":"https://api.github.com/users/Shougo/received_events","type":"User","site_admin":false},"created_at":"2017-02-20T21:46:09Z","updated_at":"2017-02-20T21:46:09Z","body":"It must be:\r\n\r\n```vim\r\nlet g:deoplete#omni#input_patterns.php = '\\w*\\|[^. \\t]->\\w*|\\w*::\\w*'\r\n```"}}
{"actor":{"display_login":"Shougo"}}