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

[BUG] When part of the path is the same, only display one. #125

Open
QPH-Coding opened this issue May 30, 2024 · 2 comments
Open

[BUG] When part of the path is the same, only display one. #125

QPH-Coding opened this issue May 30, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@QPH-Coding
Copy link

Bug description
When part of the path is the same, only display one.
I have two paths(/home/username/git/git-repo/ and /home/username/tmp/git/git-repo/), when both paths are saved as a session, only one path is displayed. However, after loading one of the sessions, both paths will be displayed again.

Steps to reproduce

  • Here is my nvim config using lazy.nvim
{
  "Shatur/neovim-session-manager",
  config = function()
    require("session_manager").setup({
      autoload_mode = require("session_manager.config").AutoloadMode.Disabled,
      autosave_only_in_session = true,
    })
  end,
  keys = {
    { "<leader>pp", "<cmd>SessionManager load_session<CR>", desc = "Load projects Session" },
    { "<leader>ps", "<cmd>SessionManager save_current_session<CR>", desc = "Save projects Session" },
    { "<leader>pd", "<cmd>SessionManager delete_session<CR>", desc = "Delete projects Session" },
  },
}
  • Reproduce this bug steps:
    1. Save a session(path is /home/username/tmp/git/git-repo/)
    2. Save a session(path is /home/username/git/git-repo)
    3. Show session(call <cmd>SessionManager load_session<CR>) and will only display /home/username/tmp/git/git-repo/ session

Expected behavior

Both sessions are displayed.

Screenshots

  • Only display the /home/username/tmp/git/git-repo/
    image

  • Display both after load session
    image

Environment

  • OS: Arch Linux on Windows 10 x86_64
  • Kernel: 5.15.146.1-microsoft-standard-WSL2
  • Desktop environment: NULL
  • Plugins commit hash: b552ee8667037be5d0291229279a35af25e515fb
@QPH-Coding QPH-Coding added the bug Something isn't working label May 30, 2024
@QPH-Coding
Copy link
Author

After a period of use, compared to the situations I have listed above, it is more like in a certain path /home/username/tmp/git/git-repo/, then it will not be able to find the session of that path /home/username/tmp/git/git-repo/.
However, during this period of use, I did not notice whether there had been any updates, and it seems to be an intermittent bug. This is the commit at the time of writing this comment: 29f80e9c6f3620b81908e287b3d1ed79c2290dd5.

@QPH-Coding QPH-Coding reopened this Jun 18, 2024
@Shatur
Copy link
Owner

Shatur commented Jun 18, 2024

Currently don't have time to investigate, unfortunately.

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

No branches or pull requests

2 participants