-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: assertion failed!
when trying to copy a link
#257
Comments
hi @loganswartz , thanks for report this issue. Would you tell me what OS you're using? For example Windows 10 x86_64 (with Intel/AMD chip), or MacBook with M1/M2 silicon chip, or Ubuntu/Fedora/ArchLinux x86_64 (with Intel/AMD chip)? I'm using macbook with M1 chip, I cannot re-produce this issue. I had tested with both v0.10.3 and latest nightly neovim, with two git repos:
Note: this But I am not a master about lua coroutine, @lopi-py could you give some suggestions? Maybe, when @loganswartz is running this plugin (either f643cdf#diff-e85b0a73f385d3b9be62752dbc0afd2ca8eba8b75c12d7667a5514b8b35755eeL276 ![]() We didn't enable the f643cdf#diff-61eaf9e597ea38a64d3b8fcf9bf9a8b2c3b58cbc3fd4a66b16c69357a5a5c4b9L184 ![]() This helps avoid such assertion errors, maybe? If so, maybe I should revert back to previous version of |
hi @loganswartz , I create a revert PR #258 (on branch |
For the long term, I think maybe I should try to learn how this |
I just did some testing on several machines with the exact same config, and attempted to copy a link to the exact same line, in the exact same file, in the exact same repo:
So perhaps this is a Fedora-specific issue? I also tested out that revert branch, and it does work on the Fedora 41 machine. |
hi @loganswartz , thanks for this information! I merged the fix PR #258 , please pull master branch. |
I report this here: lewis6991/async.nvim#7 |
I just reproduced this bug in #262 , I think this issue worth some attention. Or we can depend on the "async" module in "plenary.nvim". Since it is quite a widely used library so we could avoid such non-complete testing issues in different OS/platforms and linux distributions. And we don't have to maintain it. |
Ever since updating to f643cdf or newer, I get this error every time I try to copy a link:
Specifically, this assert fails:
gitlinker.nvim/lua/gitlinker/commons/async.lua
Line 78 in df0c4e3
After reverting to 8e193f0, everything works as expected. I don't think this is linked to a Neovim update, since it's been happening for a while and I'm on nightly, but just in case here's my current version:
What's the output of
git remote get-url origin
?It happens on every repo, but here's an example:
git@github.com:loganswartz/dotfiles.git
what's the expect git host url you want to generate?
N/A
how do you configure this plugin?
Via
lazy.nvim
:The text was updated successfully, but these errors were encountered: