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.

Intermittent problem with `o`

See original GitHub issue

<kbd>o</kbd> is properly opening a new line beneath the current one, but on some occasions, the insert cursor is not moving to the new line.

When working properly, I can see the cursor enter insert mode, as if <kbd>i</kbd> had been pushed, and then moving.

ie, if I place the Normal cursor on the s of items(), the insert cursor briefly exists between m and s before moving to an opened line (with appropriate whitespace indent) below. However, occasionally, the cursor remains between m and s instead of moving onto the new line.

    def expand_resources(self, stem) -> Generator[Tuple[str, Any]]:
        resources: OrderedDict[str, Any] = self.data['Resources']

        for name, resource in resources.items():
            yield f"{stem}{name}", resource

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Dimfredcommented, Mar 19, 2021

I am experiencing the same problem. With o and O. Error happens randomly. NVIM v0.5.0-dev+1123-g3fbff98cf
Tested with NeovimVSCode: v0.00.74 - v0.00.78

EDIT my temporary fix:

nnoremap <silent> o <Cmd>call VSCodeNotify('editor.action.insertLineAfter')<CR>i
nnoremap <silent> O <Cmd>call VSCodeNotify('editor.action.insertLineBefore')<CR>i
1reaction
awilkinscommented, Jan 5, 2021

Been using it for a day on nvim 0.5.0-dev+1000 and not noticed it happen yet ; don’t know what changed in 0.0.76 but the whole setup in general feels snappier. Noticable lag on operations like e.g. VSCodeCommentary is much reduced.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Intermittent fault - Wikipedia
An intermittent fault, often called simply an "intermittent", (or anecdotally "interfailing") is a malfunction of a device or system that occurs at ...
Read more >
Intermittent problems - IBM
An intermittent problem is a problem that occurs for a short time, and then goes away. The problem may not occur again until...
Read more >
How to Troubleshoot Intermittent Problems? - Profitap Blog
How to troubleshoot intermittent problems? Read on to learn how you can reliably get to the root of those problems using IOTA 1G....
Read more >
How to handle intermittent problems that cannot be duplicated ...
There is no better on-line training of how to troubleshoot automotive electrical and electronics systems anywhere!
Read more >
Intermittent Electrical Problems: Solutions - Brake & Front End
Intermittent electrical faults are the bane of the auto repair business. If an electrical component has failed, or there is an open or...
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