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

"Add a folder" command not working #2

Closed
MarketHubb opened this issue May 18, 2024 · 1 comment
Closed

"Add a folder" command not working #2

MarketHubb opened this issue May 18, 2024 · 1 comment

Comments

@MarketHubb
Copy link

Every other command in this package is working perfectly, but "Add a folder" does not trigger properly, and I can't figure out why.

Here's what's outputting when I have Command and Input Logging enabled:

command: neovintageous {"action": "toggle_side_bar"}
command: toggle_side_bar
command: focus_side_bar
chr evt: A (0x41)
command: neovintageous_files_new_folder
command: side_bar_new {"paths": []}
Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/Lib/python38/sublime_plugin.py", line 1647, in run_
    return self.run(**args)
  File "/Users/chris/Library/Application Support/Sublime Text/Installed Packages/SideBarTools.sublime-package/SideBar.py", line 300, in run
  File "./python3.8/genericpath.py", line 42, in isdir
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
reloading settings Packages/User/Preferences.sublime-settings

Config

  • ST4 (4175)
  • NeoVintageous (1.35.1)
  • NeoVintageousFiles (1.2.2)
  • Origami (2.3.0)
  • SideBarTools (1.12.2)
@gerardroche
Copy link
Owner

I opened an issue on SideBarTools: braver/SideBarTools#55

This might be a can't fix, because this happens when the current active view is not a real file on disk: the new folder command uses the path of the active view.

There are no api's in Sublime Text for key commands in the sidebar. We use workarounds to make it work as best we possibly can. This might be one of the cases (when the active view is not a real file on disk) that we can't workaround.

There are some feature requests open in the sublimehq issue tracker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants