Skip to content

BUG: When enabling the plugin it seems to interfere with noice.vim #240

@majordoobie

Description

@majordoobie
Image

When I open a python file I get this message saying that noice.vim has been overwritten it also adds =31;OK at the end of my python file when I open a file. I tried to diagnose it with some AI and this is what it says:

  The Problem:

  venv-selector's UV integration (for the uv Python package manager) has a bug where it incorrectly overwrites vim.notify with a table instead of a function. This is what caused:
  1. The "vim.notify has been overridden" error from noice.nvim
  2. The mysterious "=31;OK" text appearing in your Python files (likely terminal escape sequences being mishandled)

  From your diagnostic log (line 24-25), the UV module was running on every BufEnter for Python files and corrupting the notification system.

  The Fix:

  I've made these changes to lua/plugins/code_editing.lua:54-74:

  1. Fixed syntax error - Removed the extra } and fixed indentation
  2. Disabled UV support - Added settings = { search = { uv = { enable = false } } } to prevent the buggy UV integration from running
  3. Proper configuration structure - Maintained compatibility with venv-selector while preventing the corruption

  Next Steps:

  1. Restart Neovim or run :Lazy sync to reload the plugin with the new configuration
  2. Test by opening a Python file - you should no longer see:
    - The vim.notify warning
    - The "=31;OK" text appearing
  3. Virtual environment selection will still work with ,v, it just won't auto-detect uv-based environments

  If you do need UV support, you might want to check for updates to venv-selector.nvim or file a bug report, as this is clearly a plugin issue.

Not sure if this is valid or not, just wanted to share what it said.

My current config looks like this

	{
		"linux-cultist/venv-selector.nvim",
		dependencies = {
			"neovim/nvim-lspconfig",
			{ "nvim-telescope/telescope.nvim", branch = "0.1.x", dependencies = { "nvim-lua/plenary.nvim" } },
		},
		ft = "python", -- Load when opening Python files
		keys = {
			{ ",v", "<cmd>VenvSelect<cr>" }, -- Open picker on keymap
		},
		opts = {
			enable_default_searches = true,
			enable_cached_venvs = true,
			-- Disable UV support to prevent vim.notify corruption
			settings = {
				search = {
					uv = { enable = false },
				},
			},
		},
	},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions