Comments (6)
I am away from the computer. When I get back I'll be glad to look at this.
from harpoon.
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.
[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.
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.
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.
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)
- "Comment functionality" in file list? HOT 2
- Selects an item from the list will trigger `BufWinEnter` twice.
- [Harpoon2]: Unable to select from list consistently HOT 1
- [harpoon 2] Unable to require('harpoon'). Fails on startup. HOT 2
- Deleting marks from middle of the list breaks telescope extension
- Empty line after remove buffer from list
- Mark Files from telescope HOT 1
- Altering a file location does not result in updating the reference to the buffer
- Switching between sessions clears harpoon entries HOT 5
- error occurs when deleting items in telescope
- error in deleting marks in telescope HOT 8
- Using line join <S-j> causes undefined behavior in harpoon menu. HOT 2
- Harpoon Copies nvim tree file navigation HOT 1
- Expected a `table` of specs, but a `boolean` was returned instead
- Error opening files after adding basic config HOT 2
- API Docs Are Wrong
- Quick Menu Close HOT 3
- [harpoon2] Select shows absolute path instead of relative path HOT 1
- Harpoon2: Wrong state is loaded when working with multiple tabs - having different working dirs HOT 8
- Error on attaching to list: Attempt to call method 'list' (a nil value) HOT 1
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 harpoon.