Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pieces Neovim Plug-in Error : The Pieces Plugin has been updated. To ensure it functions correctly, please restart Neovim. #58

Open
imkrishnasarathi opened this issue Sep 10, 2024 · 15 comments · May be fixed by #95
Assignees
Labels
bug Something isn't working
Milestone

Comments

@imkrishnasarathi
Copy link

I am encountering a persistent warning message with the Pieces Neovim plugin. Each time I open Neovim, I receive the following message:

Warning: The Pieces Plugin has been updated. To ensure it functions correctly, please restart Neovim.

I have tried restarting Neovim multiple times, but the warning persists, and the plugin does not seem to function properly.

Steps to Reproduce:

  • Install the Pieces Neovim plugin.
  • Use NvChad with the "Lazy" package manager.
  • Install Pieces for Developers Neovim Plugin by adding the plugin details in plugins.lua
  • Start Neovim.
  • Observe the warning message.

Expected Behavior:
The plugin should function correctly without requiring repeated restarts.

Actual Behavior:
The warning message continues to appear even after multiple restarts, which shows that the plugin is not functioning as expected.

Environment:

Neovim Version: v0.10.1
OS: Windows 11
Plugin Manager: Lazy (NvChad)

Relevant Configuration Files:

Here are the relevant parts of my configuration:

init.lua

vim.g.base46_cache = vim.fn.stdpath "data" .. "/nvchad/base46/"
vim.g.mapleader = " "

-- bootstrap lazy and all plugins
local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim"

if not vim.uv.fs_stat(lazypath) then
  local repo = "https://github.com/folke/lazy.nvim.git"
  vim.fn.system { "git", "clone", "--filter=blob:none", repo, "--branch=stable", lazypath }
end

vim.opt.rtp:prepend(lazypath)

local lazy_config = require "configs.lazy"

-- load plugins
require("lazy").setup({
  {
    "NvChad/NvChad",
    lazy = false,
    branch = "v2.5",
    import = "nvchad.plugins",
  },

  { import = "plugins" },
}, lazy_config)

-- load theme
dofile(vim.g.base46_cache .. "defaults")
dofile(vim.g.base46_cache .. "statusline")

require "options"
require "nvchad.autocmds"

vim.schedule(function()
  require "mappings"
end)

lazy.lua

vim.g.base46_cache = vim.fn.stdpath "data" .. "/nvchad/base46/"
vim.g.mapleader = " "

-- bootstrap lazy and all plugins
local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim"

if not vim.uv.fs_stat(lazypath) then
  local repo = "https://github.com/folke/lazy.nvim.git"
  vim.fn.system { "git", "clone", "--filter=blob:none", repo, "--branch=stable", lazypath }
end

vim.opt.rtp:prepend(lazypath)

local lazy_config = require "configs.lazy"

-- load plugins
require("lazy").setup({
  {
    "NvChad/NvChad",
    lazy = false,
    branch = "v2.5",
    import = "nvchad.plugins",
  },

  { import = "plugins" },
}, lazy_config)

-- load theme
dofile(vim.g.base46_cache .. "defaults")
dofile(vim.g.base46_cache .. "statusline")

require "options"
require "nvchad.autocmds"

vim.schedule(function()
  require "mappings"
end)

plugins.lua

return {
  {
    "stevearc/conform.nvim",
    opts = require "configs.conform",
  },

  {
    "neovim/nvim-lspconfig",
    config = function()
      require "configs.lspconfig"
    end,
  },
  {
    'kyazdani42/nvim-web-devicons',
    lazy = false,
  },
  {
    'MunifTanjim/nui.nvim',
    lazy = false,
  },
  {  
    'hrsh7th/nvim-cmp',
    lazy = false,
  },  
  {
    'pieces-app/plugin_neovim',
    lazy = false,
  },
}
@bishoy-at-pieces bishoy-at-pieces self-assigned this Sep 10, 2024
@bishoy-at-pieces
Copy link
Collaborator

Hey thank you for pointing that out,
I would like to know your python version you are using. Seems there was an issue in the UpdateRemotePlugins command you can run it manually and check the full error and send it here

@imkrishnasarathi
Copy link
Author

imkrishnasarathi commented Sep 10, 2024

Hey Bishoy! Thanks for trying to help! I'm using Python 3.12.2, and when I manually run UpdateRemotePlugins, I see this -

function remote#host#UpdateRemotePlugins[6]..<SNR>27_RegistrationCommands[13]..remote#host#RegisterPlugin, line 5
Plugin "C:/Users/KRISHNA/AppData/Local/nvim-data/lazy/plugin_neovim/rplugin/python3/pieces_python" is already registered                                    
remote/host: generated rplugin manifest: C:\Users\KRISHNA\AppData\Local\nvim-data/rplugin.vim                                                               Press ENTER or type command to continue  

@bishoy-at-pieces
Copy link
Collaborator

Currently python 3.12 is not supported I will try to take a look at 3.12 today and if there is a way to support it, currently use a python version between 3.8 to 3.11
#53

@imkrishnasarathi
Copy link
Author

Hey Bishoy! Just uninstalled Python 3.12 and installed 3.11, but this error is still showing up:

function remote#host#UpdateRemotePlugins[6]..<SNR>27_RegistrationCommands[13]..remote#host#RegisterPlugin, line 5
Plugin "C:/Users/KRISHNA/AppData/Local/nvim-data/lazy/plugin_neovim/rplugin/python3/pieces_python" is already registeredremote/host: generated rplugin manifest: C:\Users\KRISHNA\AppData\Local\nvim-data/rplugin.vim                           Press ENTER or type command to continue         

@bishoy-at-pieces
Copy link
Collaborator

bishoy-at-pieces commented Sep 10, 2024

Can you run :lua vim.fn.PiecesStartup()

@imkrishnasarathi
Copy link
Author

Can you run :lua vim.fn.PiecesStartup()

This is what I get:
{5F3EBED8-8AA5-4E8A-877D-B58A9C7D6E95}

@bishoy-at-pieces
Copy link
Collaborator

bishoy-at-pieces commented Sep 11, 2024

@imkrishnasarathi can you please share C:\Users\KRISHNA\AppData\Local\nvim-data/rplugin.vim file?
Make sure to run the :UpdateRemotePlugins before

@imkrishnasarathi
Copy link
Author

" perl plugins


" node plugins


" ruby plugins 

Here's the file, it doesn't have anything

@bishoy-at-pieces
Copy link
Collaborator

I will create a release next Monday. It should work after the release

@bishoy-at-pieces
Copy link
Collaborator

Hey @imkrishnasarathi,
Can you please update the plugin and let me know how it goes?

@imkrishnasarathi
Copy link
Author

Hey @Bishoy-at-pieces ! So sorry I'm late to reply, I tried updating, and not sure if it's updating or not, but it doesn't work :(
Should I try re installing the whole system of neovim and its plugins?

@28arnab
Copy link

28arnab commented Oct 19, 2024

i also have the same issue it was working fine with wsl neovim(lazy vim) but when i switched to neovide in windows its showing that error

works in wsl

image

@bishoy-at-pieces
Copy link
Collaborator

Thank you both of you I will be prioritising that issue next Monday

@bishoy-at-pieces
Copy link
Collaborator

Hey @28arnab @imkrishnasarathi

It will be great to have some time chatting about this since I can't reproduce that issue.
https://calendar.app.google/6WNshFBs44BAcoq6A
Feel free to add a time here.

@bishoy-at-pieces bishoy-at-pieces added this to the 1.2.0 milestone Oct 25, 2024
@bishoy-at-pieces bishoy-at-pieces added the bug Something isn't working label Oct 25, 2024
@bishoy-at-pieces
Copy link
Collaborator

bishoy-at-pieces commented Nov 13, 2024

Hey @28arnab @imkrishnasarathi,
Really sorry for the delay but let me know how it goes after this update planning on update by tomorrow (1.2.0)

@bishoy-at-pieces bishoy-at-pieces linked a pull request Nov 14, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants