Giter Site home page Giter Site logo

Comments (6)

mbudde avatar mbudde commented on June 12, 2024 1

I cannot reproduce anymore either, so perhaps the issue is resolved. I'll reopen if I run into it again.

from gitsigns.nvim.

pca006132 avatar pca006132 commented on June 12, 2024

I got the same error when I close a buffer, even when the file content is not touched.

from gitsigns.nvim.

gh-liu avatar gh-liu commented on June 12, 2024

Try not attach the fugitive buffers in on_attach function.

local gs = require("gitsigns")
gs.setup({
	on_attach = function(bufnr)
		-- do not attach the fugitive buffers
		if vim.startswith(vim.api.nvim_buf_get_name(bufnr), "fugitive://") then
			return false
		end
	end,
})

from gitsigns.nvim.

wustho avatar wustho commented on June 12, 2024

Try not attach the fugitive buffers in on_attach function.

local gs = require("gitsigns")
gs.setup({
	on_attach = function(bufnr)
		-- do not attach the fugitive buffers
		if vim.startswith(vim.api.nvim_buf_get_name(bufnr), "fugitive://") then
			return false
		end
	end,
})

Sorry this doesn't work for me

from gitsigns.nvim.

jrwrigh avatar jrwrigh commented on June 12, 2024

I'm seeing this issue as well, though mine normally comes when looking at the stage diff. It's very similar to #848, as it's pointing to more-or-less the same exact line:

cache[bufnr]:invalidate(true)

You know what they say:

There are only two hard things in Computer Science: cache invalidation and naming things.

from gitsigns.nvim.

lewis6991 avatar lewis6991 commented on June 12, 2024

I'm not able to reproduce. Can you double check the reproduction steps?

from gitsigns.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.