<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rneovim.git/runtime/autoload/provider, branch userreg</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>fix(clipboard): don't pass --foreground to wl-copy (#25481)</title>
<updated>2023-10-03T03:24:33+00:00</updated>
<author>
<name>zeertzjq</name>
<email>zeertzjq@outlook.com</email>
</author>
<published>2023-10-03T03:24:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=6851b265ba1d232cc47927ef982d10d5df7a5cf4'/>
<id>6851b265ba1d232cc47927ef982d10d5df7a5cf4</id>
<content type='text'>
Fix #25466</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix #25466</pre>
</div>
</content>
</entry>
<entry>
<title>fix(provider/pythonx): import the correct module (#25342)</title>
<updated>2023-09-24T14:04:29+00:00</updated>
<author>
<name>zeertzjq</name>
<email>zeertzjq@outlook.com</email>
</author>
<published>2023-09-24T14:04:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=61ecb3e16c22eec9cb8eb77f76d9e8ddfc3601bc'/>
<id>61ecb3e16c22eec9cb8eb77f76d9e8ddfc3601bc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(provider): cannot detect python3.12 #25316</title>
<updated>2023-09-23T09:49:34+00:00</updated>
<author>
<name>Jongwook Choi</name>
<email>wookayin@gmail.com</email>
</author>
<published>2023-09-23T09:49:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=7bd6bd1ef7214942e94c9238e08619adf41f5995'/>
<id>7bd6bd1ef7214942e94c9238e08619adf41f5995</id>
<content type='text'>
PROBLEM: The builtin python3 provider cannot auto-detect python3.12
when g:python3_host_prog is not set. As a result, when python3 on $PATH
is currently python 3.12, neovim will fail to load python3 provider
and result in `has("python3") == 0`, e.g.,
"Failed to load python3 host. You can try to see what happened by ..."

ROOT CAUSE: the `system()` call from `provider#pythonx#DetectByModule`
does not ignore python warnings, and `pkgutil.get_loader` will print
a warning message in the very first line:
```
&lt;string&gt;:1: DeprecationWarning: 'pkgutil.get_loader' is deprecated and
slated for removal in Python 3.14; use importlib.util.find_spec() instead
```

SOLUTION:
- Use `importlib.util.find_spec` instead (python &gt;= 3.4)
- Use `-W ignore` option to prevent any potential warning messages</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PROBLEM: The builtin python3 provider cannot auto-detect python3.12
when g:python3_host_prog is not set. As a result, when python3 on $PATH
is currently python 3.12, neovim will fail to load python3 provider
and result in `has("python3") == 0`, e.g.,
"Failed to load python3 host. You can try to see what happened by ..."

ROOT CAUSE: the `system()` call from `provider#pythonx#DetectByModule`
does not ignore python warnings, and `pkgutil.get_loader` will print
a warning message in the very first line:
```
&lt;string&gt;:1: DeprecationWarning: 'pkgutil.get_loader' is deprecated and
slated for removal in Python 3.14; use importlib.util.find_spec() instead
```

SOLUTION:
- Use `importlib.util.find_spec` instead (python &gt;= 3.4)
- Use `-W ignore` option to prevent any potential warning messages</pre>
</div>
</content>
</entry>
<entry>
<title>fix(clipboard): ignore exit caused by signal #23378</title>
<updated>2023-07-16T11:15:30+00:00</updated>
<author>
<name>Kai Ting</name>
<email>kkting@gmail.com</email>
</author>
<published>2023-07-16T11:15:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=c3de6524a53dc355b1c8074eb6940e9e73714057'/>
<id>c3de6524a53dc355b1c8074eb6940e9e73714057</id>
<content type='text'>
Problem:
If clipboard job exits by signal, the exit code is &gt;=128:
https://github.com/neovim/neovim/commit/939d9053bdf2f56286640c581eb4e2ff5a856540
xclip 0.13 often exits with code 143, which spams unhelpful messages:

    clipboard: error invoking xclip: Waiting for selection requests,
    Control-C to quit   Waiting for selection request number 1

Solution:
Don't show a warning if the clipboard tool exit code is &gt;=128.
Fixes: #7054</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:
If clipboard job exits by signal, the exit code is &gt;=128:
https://github.com/neovim/neovim/commit/939d9053bdf2f56286640c581eb4e2ff5a856540
xclip 0.13 often exits with code 143, which spams unhelpful messages:

    clipboard: error invoking xclip: Waiting for selection requests,
    Control-C to quit   Waiting for selection request number 1

Solution:
Don't show a warning if the clipboard tool exit code is &gt;=128.
Fixes: #7054</pre>
</div>
</content>
</entry>
<entry>
<title>feat(vim.version): more coercion with strict=false</title>
<updated>2023-03-20T12:40:38+00:00</updated>
<author>
<name>Justin M. Keyes</name>
<email>justinkz@gmail.com</email>
</author>
<published>2023-03-17T00:12:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=a40eb7cc991eb4f8b89f467e8e42563868efa76b'/>
<id>a40eb7cc991eb4f8b89f467e8e42563868efa76b</id>
<content type='text'>
Problem:
"tmux 3.2a" (output from "tmux -V") is not parsed easily.

Solution:
With `strict=false`, discard everything before the first digit.

- rename Semver =&gt; Version
- rename vim.version.version() =&gt; vim.version._version()
- rename matches() =&gt; has()
- remove `opts` from cmp()
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:
"tmux 3.2a" (output from "tmux -V") is not parsed easily.

Solution:
With `strict=false`, discard everything before the first digit.

- rename Semver =&gt; Version
- rename vim.version.version() =&gt; vim.version._version()
- rename matches() =&gt; has()
- remove `opts` from cmp()
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor(runtime): use vim.version to compare versions #22550</title>
<updated>2023-03-07T14:28:53+00:00</updated>
<author>
<name>Justin M. Keyes</name>
<email>justinkz@gmail.com</email>
</author>
<published>2023-03-07T14:28:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=04e8e1f9eaa9ca64fa6418639d595f142585a934'/>
<id>04e8e1f9eaa9ca64fa6418639d595f142585a934</id>
<content type='text'>
TODO:
Unfortunately, cannot (yet) use vim.version for tmux version comparison,
because `vim.version.parse(…,{strict=false})` does not coerce tmux's
funny "tmux 3.3a" version string.
https://github.com/neovim/neovim/blob/6969d3d7491fc2f10d80309b26dd0c26d211b1b3/runtime/autoload/provider/clipboard.vim#L148</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
TODO:
Unfortunately, cannot (yet) use vim.version for tmux version comparison,
because `vim.version.parse(…,{strict=false})` does not coerce tmux's
funny "tmux 3.3a" version string.
https://github.com/neovim/neovim/blob/6969d3d7491fc2f10d80309b26dd0c26d211b1b3/runtime/autoload/provider/clipboard.vim#L148</pre>
</div>
</content>
</entry>
<entry>
<title>feat(provider): add support for Yarn node modules on Windows (#21246)</title>
<updated>2022-12-01T03:50:53+00:00</updated>
<author>
<name>Charles Nguyen</name>
<email>21993921+nkarl@users.noreply.github.com</email>
</author>
<published>2022-12-01T03:50:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=1390e97c200ee265f72a4e2d7ec1a47fd65462ee'/>
<id>1390e97c200ee265f72a4e2d7ec1a47fd65462ee</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>feat(clipboard): added wayclip support (#21091)</title>
<updated>2022-11-18T15:39:56+00:00</updated>
<author>
<name>XDream8</name>
<email>62709801+XDream8@users.noreply.github.com</email>
</author>
<published>2022-11-18T15:39:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=db407010facc55c19b5ebdf881225ac39cb29d01'/>
<id>db407010facc55c19b5ebdf881225ac39cb29d01</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(clipboard): update version regex pattern (#21012)</title>
<updated>2022-11-09T23:21:54+00:00</updated>
<author>
<name>Gregory Anders</name>
<email>8965202+gpanders@users.noreply.github.com</email>
</author>
<published>2022-11-09T23:21:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=ef1d291f29961ae10cc122e92fb2419cbbd29f3b'/>
<id>ef1d291f29961ae10cc122e92fb2419cbbd29f3b</id>
<content type='text'>
Building tmux from source uses a 'next-' prefix, so account for that.
Also handle failures to match more gracefully.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Building tmux from source uses a 'next-' prefix, so account for that.
Also handle failures to match more gracefully.</pre>
</div>
</content>
</entry>
<entry>
<title>fix(clipboard): prefer xsel #20918</title>
<updated>2022-11-07T03:46:58+00:00</updated>
<author>
<name>wzy</name>
<email>32936898+Freed-Wu@users.noreply.github.com</email>
</author>
<published>2022-11-07T03:46:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=b042f6d9022a4c734477f1fdbc92b4f8134661b3'/>
<id>b042f6d9022a4c734477f1fdbc92b4f8134661b3</id>
<content type='text'>
Problem:
xclip is not actively maintained compared to xsel, and it has a bug:

    $ touch a
    $ xsel -ib &lt; a
    $ xsel -ob
    $ xclip -o -selection clipboard
    Error: target STRING not available

Years ago, the situation was reversed.
We originally preferred xsel 46bd3c0f77f282b93ca1307c011562243c394306
but then swapped to xclip 799d9c32157c841c3b8d355fa98a5ace435eef07
to work around https://github.com/neovim/neovim/issues/7237#issuecomment-443440633

Solution:
Prefer xsel again.

close #20862
ref #9302
ref https://github.com/astrand/xclip/issues/38</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:
xclip is not actively maintained compared to xsel, and it has a bug:

    $ touch a
    $ xsel -ib &lt; a
    $ xsel -ob
    $ xclip -o -selection clipboard
    Error: target STRING not available

Years ago, the situation was reversed.
We originally preferred xsel 46bd3c0f77f282b93ca1307c011562243c394306
but then swapped to xclip 799d9c32157c841c3b8d355fa98a5ace435eef07
to work around https://github.com/neovim/neovim/issues/7237#issuecomment-443440633

Solution:
Prefer xsel again.

close #20862
ref #9302
ref https://github.com/astrand/xclip/issues/38</pre>
</div>
</content>
</entry>
</feed>
