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.

Linting completely breaks when asked to confim a substitution with inccommand turned on.

See original GitHub issue

Starting a substitution with :%s:::c while inccommand is set to either split or nosplit completely messes up linting and highlighting. Replacements don’t have to actually be confirmed, simply initiating a substitute command causes problems.

Replacing items without the c flag in the substitution, or with set inccommand= behaves as expected.

Video which demonstrates the issue: https://imgur.com/a/WOa4N6W

Screenshot: image

What’s the output of :CocCommand pyright.version coc-pyright 1.1.265 with Pyright 1.1.265

What’s the output of :CocCommand workspace.showOutput Pyright

Workspace: /home/satsu/Documents/cursewordle
Using python from /usr/bin/python

[Info  - 8:32:23 PM] Pyright language server 1.1.265 starting
[Info  - 8:32:23 PM] Server root directory: /home/satsu/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/
[Info  - 8:32:23 PM] Starting service instance "cursewordle"
[Info  - 8:32:23 PM] No configuration file found.
[Info  - 8:32:23 PM] No pyproject.toml file found.
[Info  - 8:32:23 PM] Setting pythonPath for service "cursewordle": "/usr/bin/python"
[Warn  - 8:32:23 PM] stubPath /home/satsu/Documents/cursewordle/typings is not a valid directory.
[Info  - 8:32:23 PM] Assuming Python version 3.10
[Info  - 8:32:23 PM] Assuming Python platform Linux
[Info  - 8:32:23 PM] Searching for source files
[Info  - 8:32:23 PM] Found 6 source files

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
fannheywardcommented, Sep 2, 2022

inccommand is nosplit by default, check :h inccommand. I can’t reproduce your issue.

0reactions
fannheywardcommented, Sep 15, 2022

Sorry for the ::: issue, I made it wrong with two sign.

Here’s my test.

mini.vim

set nocompatible
set runtimepath^=/Users/fannheyward/.local/share/nvim/plugged/coc.nvim
filetype plugin indent on
syntax on

set runtimepath^=~/src/coc-pyright

test code foo.py:

def foo(bar: int = None):
    bar = 1

steps:

  1. nvim -u mini.vim foo.py
  2. search bar
  3. :%s:::c, without <cr> to confirm
截屏2022-09-15 18 42 39

two bar are removed. <cr> to confirm:

截屏2022-09-15 18 42 57

press n twice, no errors.

:set inccommand=nosplit, and :%s:::c again, press <cr> to confirm and n twice, no errors.

Read more comments on GitHub >

github_iconTop Results From Across the Web

A quick review of LunarVim : r/neovim
I was a heavy Vim user for about 3 years, stopping in 2014 when I switched to Sublime Text 2. I had my...
Read more >
Command Reference for Encounter RTL Compiler
If the output of a manpage is too small to be displayed completely on the screen, use the more command to break up...
Read more >
shellcheck.md
Run script through tr -d '\r' . SC1018 This is a unicode non-breaking space. Delete it and retype as space. SC1019 Expected this...
Read more >
ModelSim Command Reference Manual
MENTOR GRAPHICS SHALL NOT BE LIABLE FOR ANY INCIDENTAL, INDIRECT, SPECIAL, OR. CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING BUT NOT LIMITED TO LOST PROFITS).
Read more >
Stop using Page Objects and Start using App Actions
Application code can change at any moment, output a different DOM structure or different element classes, and the tests will break at runtime ......
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