Comments (9)
Can't reproduce.
When you say crash, do you mean crash or freeze, and if crash, with what error code?
from ultimate-autopair.nvim.
Completely crash, no error message of any kind. Or at least none that I could see, since it crashes instantly.
from ultimate-autopair.nvim.
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.
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.
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.
yep, that commit fixes it!
from ultimate-autopair.nvim.
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.
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.
{ "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)
- [Feature Request] map <CR> new line in html tag? HOT 4
- How to map keys myself? HOT 7
- Automatic newline and indentation for template literals in JavaScript HOT 6
- Bug: Autopair doesn't respect comments or strings in d language HOT 20
- Inserts `^]` character instead of whitespace when used with multicursors.nvim HOT 5
- Strange behaviour for > brackets HOT 13
- Fly mode conflict with treesitter HOT 2
- [Bug] Incorrect space-surround behaviour with HTML comments HOT 3
- Bug: Attempt to perform arithmetic on a nil value while editing a Markdown file HOT 2
- Feature request: Rust lifetime syntax support HOT 14
- [Question] How to ignore a specific parser? HOT 1
- Builtin C-style block comment support HOT 2
- [Question] - JSX Support HOT 4
- alpha extension unexpected behavior HOT 2
- Support for lua `[=[...]=]` string? HOT 4
- [Performance] Holding on space in large markdown files freeze the editor HOT 3
- [Bug] Incorrect pair exiting behavior HOT 1
- [BUG] Wrong behavior when deleting asterisk in makdown files HOT 1
- Healthcheck fails saying parser is missing for 'lua' HOT 4
- [Feature Request] Specify pairs by regular expression HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ultimate-autopair.nvim.