GithubHelp home page GithubHelp logo

Can't mark telescope.lua about track.nvim HOT 6 CLOSED

gldtn avatar gldtn commented on June 11, 2024
Can't mark telescope.lua

from track.nvim.

Comments (6)

gldtn avatar gldtn commented on June 11, 2024 1

Hopefully I did it correctly, I set inside track.lua setup function:

log = {
				plugin = "track",
				level = "debug",
			},

Here is the log from ~/.cache/nvim/track.log

[INFO  Sun Apr 28 00:40:02 2024] ~/.local/share/nvim/lazy/track.nvim/lua/track/state.lua:156: State.save(): saved current state into ~/.local/state/nvim/track.json
[INFO  Sun Apr 28 00:40:02 2024] ~/.local/share/nvim/lazy/track.nvim/lua/telescope/_extensions/track/pickers/views.lua:69: Telescope.Views.picker(): closed telescope.track.views and saved state

Notification message when I run :Mark on telescope.lua

 | Messages:  | Messages:  | Messages:  | Messages:  | Messages: [track] [INFO  00:33:24] ~/.local/share/nvim/lazy/track.nvim/lua/track/state.lua:129: State.reload(): reloaded ~/.local/state/nvim/track.json

Notification message from :lua=require'track.state'._roots[vim.loop.cwd()]:get_main_bundle().views

 | Messages:  | Messages:  | Messages: { "lua/plugins/track.lua", "lua/core/keymaps.lua", "~/.config/nvim/lua/plugins/lsp/lspconfig.lua", "lua/core/options.lua",
  <metatable> = {
    __call = <function 1>
  }
}

from track.nvim.

dharmx avatar dharmx commented on June 11, 2024 1

I never would have mapped shada into this equation. Good job solving it!

from track.nvim.

dharmx avatar dharmx commented on June 11, 2024

Yes, it does seem weird. Could you try setting the log level to debug and then send the ~/.cache/nvim/track.log here?

Also, see if the :lua=require'track.state'._roots[vim.loop.cwd()]:get_main_bundle().views actually changes after you add the mark.

from track.nvim.

dharmx avatar dharmx commented on June 11, 2024

Thank you. Unfortunately it seems that the logs are useless 😞.
I can mark your file in mine though.

Anyways, you should try manually passing in the name for testing purposes.

" cd into ~/.config/nvim
:Mark lua/plugins/telescope.lua
:Track
:lua=require'track.state'._roots[vim.loop.cwd()]:get_main_bundle().views

from track.nvim.

gldtn avatar gldtn commented on June 11, 2024

No luck with doing it manually. Funny thing is, if I rename the file to anything other than telescope itself.. for example telescopetj.lua, then it gets marked. 😕

Probably something fishy going with my config 🤷‍♂️

from track.nvim.

gldtn avatar gldtn commented on June 11, 2024

I remembered I was trying to clear and delete all marks from neovim a few days ago, which might of caused this to happen. So I believe it "corrupted" shada somehow?

I. ran :delm! | delm A-Z0-9. Not sure if this is the exact cause but it's the only thing I can think off. I just deleted the following folders and restarted neom and track is marking the telescope.lua file as it should.

rm -rf ~/.local/share/nvim
rm -rf ~/.local/state/nvim
rm -rf ~/.cache/nvim

Probably just the share/nvim would of been enough, but anyways, it worked.

Thanks again for taking your time and helping me solve this issue!

from track.nvim.

Related Issues (15)

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.