question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

infinite file opening loop

See original GitHub issue

Here is my System info:

Operating System: Garuda Linux
KDE Plasma Version: 5.21.5
KDE Frameworks Version: 5.82.0
Qt Version: 5.15.2
Kernel Version: 5.12.1-zen2-1-zen
OS Type: 64-bit
Graphics Platform: X11
Processors: 8 × 11th Gen Intel® Core™ i7-1185G7 @ 3.00GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® Xe Graphics

This happened first to me when I tried ctrl+shift+p to open up the settings.json. I wasn’t able to reproduce this in mac os and I think it just started happening recently. Anyway, the jist of it is that it just continuously opens new files. I get two errors in the console:

ERR nvim_win_close: Invalid window id: 1051: Error: Error making request to nvim_win_close
  at o.request (/home/joshua/.vscode-oss/extensions/asvetliakov.vscode-neovim-0.0.78/dist/extension.js:1:15853)
  at Timeout._onTimeout (/home/joshua/.vscode-oss/extensions/asvetliakov.vscode-neovim-0.0.78/dist/extension.js:3:101219)
  at listOnTimeout (internal/timers.js:549:17)
  at processTimers (internal/timers.js:492:7)

and

  ERR nvim_win_get_cursor: Invalid window id: 1060: Error: Error making request to nvim_win_get_cursor
	at o.request (/home/joshua/.vscode-oss/extensions/asvetliakov.vscode-neovim-0.0.78/dist/extension.js:1:15853)
	at he.<anonymous> (/home/joshua/.vscode-oss/extensions/asvetliakov.vscode-neovim-0.0.78/dist/extension.js:3:100678)
	at Generator.next (<anonymous>)
	at /home/joshua/.vscode-oss/extensions/asvetliakov.vscode-neovim-0.0.78/dist/extension.js:3:88882
	at new Promise (<anonymous>)
	at ce (/home/joshua/.vscode-oss/extensions/asvetliakov.vscode-neovim-0.0.78/dist/extension.js:3:88627)
	at Timeout._onTimeout (/home/joshua/.vscode-oss/extensions/asvetliakov.vscode-neovim-0.0.78/dist/extension.js:3:100617)
	at listOnTimeout (internal/timers.js:549:17)
	at processTimers (internal/timers.js:492:7)

But mostly the first window close error. I don’t know why this causes continuous new windows to open up, but when I disable the extension it stops it.

You can see what it looks like here:

Screenshot_4

As a side note, I thought maybe I could fix this myself and put in a pull request, but I don’t have a whole lot of time and I was having trouble getting into debugging the extension. I couldn’t really get it activated. If there’s a slack channel that can help me get up and running I can try to fix it myself.

Let me know! Thanks!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:66
  • Comments:57 (16 by maintainers)

github_iconTop GitHub Comments

43reactions
eyalchcommented, May 16, 2021

I applied @seandewar’s patch to the latest release of the plugin, and it works fine as far as I can tell.

If you want to use the plugin without downgrading neovim:

curl -L https://gist.github.com/kidonng/1f70b2e3de50b519483f6c79dd3d82e2/raw/6b865cec34f78475dc50b208b30563d337427543/extension.js > ~/.vscode/extensions/asvetliakov.vscode-neovim-0.0.78/dist/extensions.js

This command writes to a file named extensions.js, but the correct file is extension.js, which means the following is the correct command:

curl -L https://gist.github.com/kidonng/1f70b2e3de50b519483f6c79dd3d82e2/raw/6b865cec34f78475dc50b208b30563d337427543/extension.js > ~/.vscode/extensions/asvetliakov.vscode-neovim-0.0.78/dist/extension.js

How did the original comment get 6 positive reactions (at the time of writing) while having a typo, and thus not working, is beyond me. Nice solution overall though.

28reactions
asvetliakovcommented, May 31, 2021

Released 0.0.79 with the fix. Thanks @seandewar !

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Create an Infinite Loop in Windows Batch File?
The only way to stop an infinitely loop in Windows Batch Script is by either pressing Ctrl + C or by closing the...
Read more >
File explorer stuck in endless loop of opening and saving a file
I click open, and it sends me to the explorer tab with “view all downloads”. It shows the file, with save and save...
Read more >
Why do i end up in an infinite loop when i read a file?
This means that on later iterations of the while loop you never enter the for loop. So scan never changes, which means ended...
Read more >
[BUG] Infinite file opening loop when opening ... - Reddit
when i open a downloaded document or any locally served file the browser start an infinite file opening loop and wrecks your current...
Read more >
when opening an fdf file Firefox goes into an infinite loop of ...
For now, I suppose the workaround is to open the FDF externally (i.e., in Reader or Acrobat and not the plugin). You can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found