bug: installing canola-collection breaks tracking of unsaved changes #13

Closed
opened 2026-09-21 17:53:39 +00:00 by barrettruth · 5 comments
Owner

Original issue: barrettruth/canola-collection#48
Original author: llakala
Original date: 2026-04-20T16:17:45Z

Prerequisites

Neovim version

NVIM v0.12.1
Build type: Release
LuaJIT 2.1.1741730670
Run "nvim -V1 -v" for more info

Operating system

NixOS Unstable

Description

I was trying to move a file from one folder to another, with this file layout:

.
├── one/
│   └── "file"
└── two/

I deleted file, exited one, pasted file into two/, and then ran :w. However, I found that even though file had been properly pasted, it was still in its original location.

Doing more testing, I found that this is actually a larger issue. Given this layout:

.
├── subdir/
└── "file"

If we delete file, navigate into subdir, then navigate back out, we no longer have our unwritten changes. It seems that if you ever navigate to a directory of equal or greater length, previous changes are lost.

This only happens with canola-collection installed. When I only install canola, the issue doesn't occur, and all directories are properly tracked.

Steps to reproduce

  1. Install both canola.nvim (on the canola branch, as always) and canola-collection
  2. Create one of the example directory layouts I provided
  3. Observe the issue

Minimal reproduction

I reproduced the issue with this minimal config:

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
require("lazy").setup({
  spec = {
    {
      "barrettruth/canola.nvim",
      branch = "canola",
      config = function()
        vim.g.canola = {}
      end,
    },
    {
      "barrettruth/canola-collection",
      config = function() end,
    },
  },
})
> Original issue: barrettruth/canola-collection#48 > Original author: `llakala` > Original date: 2026-04-20T16:17:45Z ### Prerequisites - [x] I have searched [existing issues](https://github.com/barrettruth/canola-collection/issues) - [x] I have updated to the latest version ### Neovim version ```text NVIM v0.12.1 Build type: Release LuaJIT 2.1.1741730670 Run "nvim -V1 -v" for more info ``` ### Operating system NixOS Unstable ### Description I was trying to move a file from one folder to another, with this file layout: ``` . ├── one/ │   └── "file" └── two/ ``` I deleted `file`, exited `one`, pasted `file` into `two/`, and then ran `:w`. However, I found that even though `file` had been properly pasted, it was still in its original location. Doing more testing, I found that this is actually a larger issue. Given this layout: ``` . ├── subdir/ └── "file" ``` If we delete `file`, navigate into `subdir`, then navigate back out, we no longer have our unwritten changes. It seems that if you ever navigate to a directory of equal or greater length, previous changes are lost. This only happens with canola-collection installed. When I only install canola, the issue doesn't occur, and all directories are properly tracked. ### Steps to reproduce 1. Install both `canola.nvim` (on the canola branch, as always) and `canola-collection` 2. Create one of the example directory layouts I provided 3. Observe the issue ### Minimal reproduction I reproduced the issue with this minimal config: ```lua vim.env.LAZY_STDPATH = ".repro" load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))() require("lazy").setup({ spec = { { "barrettruth/canola.nvim", branch = "canola", config = function() vim.g.canola = {} end, }, { "barrettruth/canola-collection", config = function() end, }, }, }) ```
barrettruth 2026-09-21 17:53:39 +00:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

Original comment: barrettruth/canola-collection#48, comment 4284701167
Original author: barrettruth
Original date: 2026-04-20T22:35:48Z

unable to reproduce after trying multiple times with the minimal reproduction.

please try again on latest canola and canola-collection. a lot of changes just fixed.

for sure feel free to reopen and i'll get back to you asap - i just like to keep things tidy.

also, always feel free to @ me. if i don't respond in a few hours the notification most likely just slipped through the cracks

> Original comment: barrettruth/canola-collection#48, comment 4284701167 > Original author: `barrettruth` > Original date: 2026-04-20T22:35:48Z unable to reproduce after trying multiple times with the minimal reproduction. please try again on latest canola and canola-collection. a lot of changes just fixed. for sure feel free to reopen and i'll get back to you asap - i just like to keep things tidy. also, always feel free to @ me. if i don't respond in a few hours the notification most likely just slipped through the cracks
Author
Owner

Original comment: barrettruth/canola-collection#48, comment 4285955175
Original author: llakala
Original date: 2026-04-21T04:38:53Z

Yep, I can't recreate either anymore - must've fixed it by accident.

> Original comment: barrettruth/canola-collection#48, comment 4285955175 > Original author: `llakala` > Original date: 2026-04-21T04:38:53Z Yep, I can't recreate either anymore - must've fixed it by accident.
Author
Owner

Original comment: barrettruth/canola-collection#48, comment 4323495189
Original author: barrettruth
Original date: 2026-04-27T00:57:27Z

@llakala hv u had any problems, i plan on releasing tmrw

> Original comment: barrettruth/canola-collection#48, comment 4323495189 > Original author: `barrettruth` > Original date: 2026-04-27T00:57:27Z @llakala hv u had any problems, i plan on releasing tmrw
Author
Owner

Original comment: barrettruth/canola-collection#48, comment 4323527136
Original author: llakala
Original date: 2026-04-27T01:07:58Z

Nope, things have been working well. I'll update to the latest commit now to see if I notice anything.

> Original comment: barrettruth/canola-collection#48, comment 4323527136 > Original author: `llakala` > Original date: 2026-04-27T01:07:58Z Nope, things have been working well. I'll update to the latest commit now to see if I notice anything.
Author
Owner

Original comment: barrettruth/canola-collection#48, comment 4323653847
Original author: barrettruth
Original date: 2026-04-27T01:40:31Z

orz (i hadn't really made any changes - was just wondering

> Original comment: barrettruth/canola-collection#48, comment 4323653847 > Original author: `barrettruth` > Original date: 2026-04-27T01:40:31Z orz (i hadn't really made any changes - was just wondering
Sign in to join this conversation.
No description provided.