Giter Club home page Giter Club logo

Comments (9)

altermo avatar altermo commented on June 10, 2024

Can't reproduce.
When you say crash, do you mean crash or freeze, and if crash, with what error code?

from ultimate-autopair.nvim.

chrisgrieser avatar chrisgrieser commented on June 10, 2024

Completely crash, no error message of any kind. Or at least none that I could see, since it crashes instantly.

from ultimate-autopair.nvim.

altermo avatar altermo commented on June 10, 2024

I mean the $status error code that is set after an app has an error in the shell.
Also, try it without nvim-treesitter.

from ultimate-autopair.nvim.

chrisgrieser avatar chrisgrieser commented on June 10, 2024

Ah, yes. It's exit code 139 with no further message showing up in the terminal. Tried without treesitter, makes no difference.

I tested this a bit, and as far as I can tell, with a new file. But if there is some content in the file already, it happens in the first few brackets typed. Though the exact number depends apparently on the note content.

The minimal test file (used with the minimal config) is this one:

require("foobar").supports_method("foobar")

Open this file with the minimal config from above, go to the second line, type ( 9 times, it crashes with 139.

from ultimate-autopair.nvim.

altermo avatar altermo commented on June 10, 2024

I might have an idea of what's happening.
Try out:

local plugins = {
	{
		"altermo/ultimate-autopair.nvim",
		event = { "InsertEnter", "CmdlineEnter" },
		dependencies = "nvim-treesitter/nvim-treesitter",
		opts = {},
                commit = "667d2304e8eb9ddbfa7f962528cfce0a5edcc163"
	},
}
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
	vim.fn.system {
		"git",
		"clone",
		"--filter=blob:none",
		"https://github.com/folke/lazy.nvim.git",
		"--branch=stable",
		lazypath,
	}
end
vim.opt.runtimepath:prepend(lazypath)
require("lazy").setup(plugins)

from ultimate-autopair.nvim.

chrisgrieser avatar chrisgrieser commented on June 10, 2024

yep, that commit fixes it!

from ultimate-autopair.nvim.

altermo avatar altermo commented on June 10, 2024

Then it has something to do with #24783 as it is in the commit after that the plugin started using TSNode:tree().
I would recommend staying at that commit if you're not planning to update neovim.

from ultimate-autopair.nvim.

altermo avatar altermo commented on June 10, 2024

Then if you update to a version after the neovim pull request 24769 then it won't crash, and you can just use the main version of the plugin.

from ultimate-autopair.nvim.

sainttttt avatar sainttttt commented on June 10, 2024
	{
		"altermo/ultimate-autopair.nvim",
		event = { "InsertEnter", "CmdlineEnter" },
		dependencies = "nvim-treesitter/nvim-treesitter",
		opts = {},
                commit = "667d2304e8eb9ddbfa7f962528cfce0a5edcc163"
	},

Just FYI I am also having this same issue in nvim 0.9.1 and this fixes it for the time being. I tried installing the current nvim --HEAD from homebrew but it's not installing for whatever reason, so I'm using this for the time being. Thanks!

from ultimate-autopair.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.