<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rneovim.git/runtime/autoload/provider, branch v0.1.1</title>
<subtitle>Neovim fork with Rahm's personal hacks.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/'/>
<entry>
<title>runtime/autoload/provider/python{,3}.vim: fix E168</title>
<updated>2015-11-03T15:52:26+00:00</updated>
<author>
<name>Daniel Hahler</name>
<email>git@thequod.de</email>
</author>
<published>2015-11-03T15:52:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=dcc71094d1c24cb37566b7712f14c10d8f0bc961'/>
<id>dcc71094d1c24cb37566b7712f14c10d8f0bc961</id>
<content type='text'>
Do not use `finish` inside of `provider#python{,3}#Call`, but `return`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Do not use `finish` inside of `provider#python{,3}#Call`, but `return`.
</pre>
</div>
</content>
</entry>
<entry>
<title>provider/pythonx: Improve detection code and error messages.</title>
<updated>2015-09-17T16:48:26+00:00</updated>
<author>
<name>Florian Walch</name>
<email>florian@fwalch.com</email>
</author>
<published>2015-09-16T21:38:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=e3540a430b5173131722781869b55ad08b3784aa'/>
<id>e3540a430b5173131722781869b55ad08b3784aa</id>
<content type='text'>
"python -c" returns 1 in case of an error. Use a return code of 2 if
the Neovim module is not found to distinguish these cases.

Verify the interpreter version before checking for an installed Neovim
module. Show a new error message if the Python interpreter version
is below the minimum required version.

Always use "pkgutil" to determine if the Neovim module is installed.
In contrast to "importlib", which was used for Python 3,
"pkgutil.find_loader" is available for all Python versions [1,2].
"pkgutil.find_loader" internally uses "importlib" for Python &gt;= 3.3 [2].
Also, the previously used "importlib.find_loader" is only available
since Python 3.3 (so checking the major Python version was not enough)
and deprecated since Python 3.4 [3].
Finally, conditioning on the major version in Vimscript was incorrect,
as checking the Neovim module for a certain Python major version does
not mean that the tested interpreters are actually of that version.
For example, we test the "python" executable, which is Python 2 on
Ubuntu and Python 3 on Arch Linux.

[1] https://docs.python.org/2/library/pkgutil.html#pkgutil.find_loader
[2] https://docs.python.org/3/library/pkgutil.html#pkgutil.find_loader
[3] https://docs.python.org/3/library/importlib.html#importlib.find_loader
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
"python -c" returns 1 in case of an error. Use a return code of 2 if
the Neovim module is not found to distinguish these cases.

Verify the interpreter version before checking for an installed Neovim
module. Show a new error message if the Python interpreter version
is below the minimum required version.

Always use "pkgutil" to determine if the Neovim module is installed.
In contrast to "importlib", which was used for Python 3,
"pkgutil.find_loader" is available for all Python versions [1,2].
"pkgutil.find_loader" internally uses "importlib" for Python &gt;= 3.3 [2].
Also, the previously used "importlib.find_loader" is only available
since Python 3.3 (so checking the major Python version was not enough)
and deprecated since Python 3.4 [3].
Finally, conditioning on the major version in Vimscript was incorrect,
as checking the Neovim module for a certain Python major version does
not mean that the tested interpreters are actually of that version.
For example, we test the "python" executable, which is Python 2 on
Ubuntu and Python 3 on Arch Linux.

[1] https://docs.python.org/2/library/pkgutil.html#pkgutil.find_loader
[2] https://docs.python.org/3/library/pkgutil.html#pkgutil.find_loader
[3] https://docs.python.org/3/library/importlib.html#importlib.find_loader
</pre>
</div>
</content>
</entry>
<entry>
<title>python: remove current working directory from path</title>
<updated>2015-09-14T10:06:49+00:00</updated>
<author>
<name>Jakob Schnitzer</name>
<email>mail@jakobschnitzer.de</email>
</author>
<published>2015-09-11T09:14:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=c478dd5ab472a643488cb6b14e299ee46d83701c'/>
<id>c478dd5ab472a643488cb6b14e299ee46d83701c</id>
<content type='text'>
Before, running Nvim in a directory containing a Python module `neovim`,
or one that is imported by it or a plugin, will load that module and not
the system one. So Nvim might be tricked into running arbitrary scripts
from the current working directory.

Fixes #1665
Fixes #2530
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Before, running Nvim in a directory containing a Python module `neovim`,
or one that is imported by it or a plugin, will load that module and not
the system one. So Nvim might be tricked into running arbitrary scripts
from the current working directory.

Fixes #1665
Fixes #2530
</pre>
</div>
</content>
</entry>
<entry>
<title>provider/pythonx.vim: Use shell-agnostic construction. #3190</title>
<updated>2015-08-21T04:33:29+00:00</updated>
<author>
<name>sanmiguel</name>
<email>michael.coles@gmail.com</email>
</author>
<published>2015-08-18T14:43:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=0ec6a9c3c3f1fd6e76941895248c968b436581c7'/>
<id>0ec6a9c3c3f1fd6e76941895248c968b436581c7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #2910 from blueyed/python-fix-path_hook</title>
<updated>2015-08-17T23:21:19+00:00</updated>
<author>
<name>Justin M. Keyes</name>
<email>justinkz@gmail.com</email>
</author>
<published>2015-08-17T23:21:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=681ee8131c1997e5ad5c72a39268c6793c6b1180'/>
<id>681ee8131c1997e5ad5c72a39268c6793c6b1180</id>
<content type='text'>
Python: fixes for sys.path_hooks handler</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Python: fixes for sys.path_hooks handler</pre>
</div>
</content>
</entry>
<entry>
<title>clipboard: support clipboard=unnamedplus,unnamed</title>
<updated>2015-08-07T11:06:13+00:00</updated>
<author>
<name>Björn Linse</name>
<email>bjorn.linse@gmail.com</email>
</author>
<published>2015-08-05T13:57:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=d4ebbaa91aea81a9942f44afda628fbe21000897'/>
<id>d4ebbaa91aea81a9942f44afda628fbe21000897</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>python3: remove decoding logic, as this is now done in plugin host #3026</title>
<updated>2015-07-18T20:39:28+00:00</updated>
<author>
<name>Björn Linse</name>
<email>bjorn.linse@gmail.com</email>
</author>
<published>2015-07-16T19:03:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=c7bfbd4fd9ca533795cd9e58d479d6035e5cddb6'/>
<id>c7bfbd4fd9ca533795cd9e58d479d6035e5cddb6</id>
<content type='text'>
DecodeHook isn't needed since neovim/python-client#53
rpc methods won't pass bytes anymore, ref neovim/python-client#129
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
DecodeHook isn't needed since neovim/python-client#53
rpc methods won't pass bytes anymore, ref neovim/python-client#129
</pre>
</div>
</content>
</entry>
<entry>
<title>python: VimPathFinder: remove unused load_module method</title>
<updated>2015-07-09T11:45:25+00:00</updated>
<author>
<name>Daniel Hahler</name>
<email>git@thequod.de</email>
</author>
<published>2015-06-27T15:06:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=07e538d58978e29556c77e1e7bccb18c6d0af60b'/>
<id>07e538d58978e29556c77e1e7bccb18c6d0af60b</id>
<content type='text'>
This method was not used, but `VimModuleLoader.load_module` is.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This method was not used, but `VimModuleLoader.load_module` is.
</pre>
</div>
</content>
</entry>
<entry>
<title>python: path_hook: properly implement PEP302</title>
<updated>2015-07-09T11:43:57+00:00</updated>
<author>
<name>Daniel Hahler</name>
<email>git@thequod.de</email>
</author>
<published>2015-06-27T15:03:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=5e3212023660df60186e1cfac8d60ee4e3b026b5'/>
<id>5e3212023660df60186e1cfac8d60ee4e3b026b5</id>
<content type='text'>
The path hook used to load the module already in the `find_module` hook.

This caused different behaviour between Python 2.7 and 3.3, where the
former would call the `VimModuleLoader`, while Python 3.3 appears to
short-circuited this (because the module was loaded already).

This patch will now only find the module, but not load it in the
`find_module` hook.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The path hook used to load the module already in the `find_module` hook.

This caused different behaviour between Python 2.7 and 3.3, where the
former would call the `VimModuleLoader`, while Python 3.3 appears to
short-circuited this (because the module was loaded already).

This patch will now only find the module, but not load it in the
`find_module` hook.
</pre>
</div>
</content>
</entry>
<entry>
<title>python: VimModuleLoader: check sys.modules[fullname]</title>
<updated>2015-07-09T11:43:57+00:00</updated>
<author>
<name>Daniel Hahler</name>
<email>git@thequod.de</email>
</author>
<published>2015-06-27T15:01:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=ad6dfa666905312fa83d95fd913d76d69e605afc'/>
<id>ad6dfa666905312fa83d95fd913d76d69e605afc</id>
<content type='text'>
This is required by PEP302 for `reload()`ing modules.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is required by PEP302 for `reload()`ing modules.
</pre>
</div>
</content>
</entry>
</feed>
