Coder Social home page Coder Social logo

Comments (6)

ThePrimeagen avatar ThePrimeagen commented on August 16, 2024 1

I am away from the computer. When I get back I'll be glad to look at this.

from harpoon.

ThePrimeagen avatar ThePrimeagen commented on August 16, 2024

hey @Pasqat is this highly reproducible? If it is, could you please launch with HARPOON_LOG=trace and copy / pasta the output into this issue?

from harpoon.

Pasqat avatar Pasqat commented on August 16, 2024
[TRACE Thu 10 Jun 2021 07:28:45 PM CEST] .../nvim/site/pack/packer/start/harpoon/lua/harpoon/dev.lua:36: 1623345465 store_offset()
[TRACE Thu 10 Jun 2021 07:28:45 PM CEST] .../nvim/site/pack/packer/start/harpoon/lua/harpoon/dev.lua:36: 1623345465 _get_buf_name(): nil
[TRACE Thu 10 Jun 2021 07:28:45 PM CEST] .../nvim/site/pack/packer/start/harpoon/lua/harpoon/dev.lua:36: 1623345465 get_index_of(): plugin
[TRACE Thu 10 Jun 2021 07:28:45 PM CEST] .../nvim/site/pack/packer/start/harpoon/lua/harpoon/dev.lua:36: 1623345465 get_length()
[WARN  Thu 10 Jun 2021 07:28:45 PM CEST] .../nvim/site/pack/packer/start/harpoon/lua/harpoon/dev.lua:36: 1623345465 store_offset(): Could not store offset: ...nvim/site/pack/packer/start/harpoon/lua/harpoon/mark.lua:276: attempt to index upvalue 'harpoon' (a boolean value)
[TRACE Thu 10 Jun 2021 07:28:45 PM CEST] .../nvim/site/pack/packer/start/harpoon/lua/harpoon/dev.lua:36: 1623345465 _emit_changed()

So, the error happens to show up if I change buffer (I think). For example if I try to open a file to edit (with Netrw or NvimTree) or if I use Telescope.

from harpoon.

Pasqat avatar Pasqat commented on August 16, 2024

So, this morning I've tried to selectively install the plugins I'm using and the config file. It is possible the problem was related to others plugins or configuration.

After some work I tryed a different file structure of my config file.
I moved to lua but I didn't know that having all the config files excluding initi.lua in the lua folder (nvim/lua) wasn't good. After refacotring (nvim/lua/pasqat and subs) all works fine.

Sorry for the trouble!

from harpoon.

isaacguerreir avatar isaacguerreir commented on August 16, 2024

I had the same error as @Pasqat. I have tried a minimal configuration with an init.lua only with packer, plenary and harpoon, and somehow I continue to receive this error.

When I tried to run with HARPOON_LOG=trace:

[harpoon] [TRACE 00:52:14] .../nvim/site/pack/packer/start/harpoon/lua/harpoon/d                                                              
ev.lua:36: 1640749934 store_offset()                                                                                                          
[harpoon] [TRACE 00:52:14] .../nvim/site/pack/packer/start/harpoon/lua/harpoon/d                                                              
ev.lua:36: 1640749934 _get_buf_name(): nil                                                                                                    
[harpoon] [TRACE 00:52:14] .../nvim/site/pack/packer/start/harpoon/lua/harpoon/d                                                              
ev.lua:36: 1640749934 get_index_of():                                                                                                         
[harpoon] [TRACE 00:52:14] .../nvim/site/pack/packer/start/harpoon/lua/harpoon/d                                                              
ev.lua:36: 1640749934 get_length()                                                                                                            
[harpoon] [WARN  00:52:14] .../nvim/site/pack/packer/start/harpoon/lua/harpoon/d                                                              
ev.lua:36: 1640749934 store_offset(): Could not store offset: ...nvim/site/pack/                                                              
packer/start/harpoon/lua/harpoon/mark.lua:311: attempt to index upvalue 'harpoon                                                              
' (a boolean value)                                                                                                                           
[harpoon] [TRACE 00:52:14] .../nvim/site/pack/packer/start/harpoon/lua/harpoon/d                                                              
ev.lua:36: 1640749934 _emit_changed()% 

That's my minimal configuration:

return require('packer').startup(function()                                                                                               
    use "nvim-lua/plenary.nvim"                                                                                                             
    use 'wbthomason/packer.nvim'                                                                                                                                                                         
    use { "ThePrimeagen/harpoon", requires = "nvim-lua/plenary.nvim" }                                                                                                                                                                                                         
 end)     

from harpoon.

ThePrimeagen avatar ThePrimeagen commented on August 16, 2024

as referenced in other issue. I'll be working back in OS in ~6 days. I'll look at this then.

from harpoon.

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.