Sublime Forum

Cannot create files or folder with sidebar

#1

Hi guys,

Since today, when I try to create a file, a folder, rename a file, or other actions related to folder and file in the sidebar of my sublime text, nothing happens. The only thing I can still do from the sidebar is deleting files.
I have a mac and use Sublime Text 3. I use SideBar Enhancement but it does not work neither without it. I was working great before !

Do you have an idea of the reason? Do you need more info?

Thanks a lot,
Damien

0 Likes

#2

Have a look in the console (view -> show console). There should be some error…

A bit of self-promotion (:slightly_smiling:): try FileManager.

1 Like

#3

Thanks a lot for the answer, I will check FileManager :slight_smile:
Here is the console after trying to create files from the sidebar. I don’t really see the problem…

startup, version: 3126 osx x64 channel: stable executable: /Applications/Sublime Text.app/Contents/MacOS/Sublime Text working dir: / packages path: /Users/damienlethiec/Library/Application Support/Sublime Text 3/Packages state path: /Users/damienlethiec/Library/Application Support/Sublime Text 3/Local zip path: /Applications/Sublime Text.app/Contents/MacOS/Packages zip path: /Users/damienlethiec/Library/Application Support/Sublime Text 3/Installed Packages ignored_packages: ["Reindent on save", "Vintage"] ignoring deprecated syntax definition: Packages/Ruby on Rails snippets/HTML (Rails).tmLanguage pre session restore time: 0.786238 using gpu buffer for window first paint time: 0.905049 startup time: 0.906398 reloading plugin Default.auto_indent_tag reloading plugin Default.block reloading plugin Default.comment reloading plugin Default.convert_syntax reloading plugin Default.copy_path reloading plugin Default.delete_word reloading plugin Default.detect_indentation reloading plugin Default.duplicate_line reloading plugin Default.echo reloading plugin Default.exec reloading plugin Default.fold reloading plugin Default.font reloading plugin Default.goto_line reloading plugin Default.history_list reloading plugin Default.indentation reloading plugin Default.install_package_control reloading plugin Default.kill_ring reloading plugin Default.mark reloading plugin Default.new_templates reloading plugin Default.open_context_url reloading plugin Default.open_in_browser reloading plugin Default.pane reloading plugin Default.paragraph reloading plugin Default.paste_from_history reloading plugin Default.profile reloading plugin Default.quick_panel reloading plugin Default.run_syntax_tests reloading plugin Default.save_on_focus_lost reloading plugin Default.scroll reloading plugin Default.set_unsaved_view_name reloading plugin Default.settings reloading plugin Default.show_scope_name reloading plugin Default.side_bar reloading plugin Default.sort reloading plugin Default.swap_line reloading plugin Default.switch_file reloading plugin Default.symbol reloading plugin Default.transform reloading plugin Default.transpose reloading plugin Default.trim_trailing_white_space reloading plugin CSS.css_completions reloading plugin Diff.diff reloading plugin HTML.encode_html_entities reloading plugin HTML.html_completions reloading plugin 0_package_control_loader.00-package_control reloading plugin 0_package_control_loader.01-pygments reloading plugin 0_package_control_loader.50-backrefs reloading plugin 0_package_control_loader.50-markupsafe reloading plugin 0_package_control_loader.50-python-markdown reloading plugin 0_package_control_loader.51-python-jinja2 reloading plugin 0_package_control_loader.55-mdpopups reloading plugin AdvancedNewFile.AdvancedNewFile reloading plugin All Autocomplete.all_views_completions reloading plugin ApplySyntax.ApplySyntax reloading plugin ApplySyntax.changes reloading plugin ApplySyntax.support reloading plugin BracketHighlighter.bh_core reloading plugin BracketHighlighter.bh_logging reloading plugin BracketHighlighter.bh_plugin reloading plugin BracketHighlighter.bh_popup reloading plugin BracketHighlighter.bh_regions reloading plugin BracketHighlighter.bh_remove reloading plugin BracketHighlighter.bh_rules reloading plugin BracketHighlighter.bh_search reloading plugin BracketHighlighter.bh_swapping reloading plugin BracketHighlighter.bh_wrapping reloading plugin BracketHighlighter.support reloading plugin Color Highlighter.ColorHighlighter reloading plugin Color Highlighter.colors reloading plugin DashDoc.DashDoc reloading plugin DocBlockr.jsdocs reloading plugin Emmet.emmet-plugin reloading plugin Git.git_commands reloading plugin GitGutter.git_gutter reloading plugin GitGutter.git_gutter_compare reloading plugin GitGutter.git_gutter_events reloading plugin GitGutter.git_gutter_handler reloading plugin GitGutter.git_gutter_jump_to_changes reloading plugin GitGutter.git_gutter_popup reloading plugin GitGutter.git_gutter_settings reloading plugin GitGutter.git_gutter_show_diff reloading plugin GitGutter.git_helper reloading plugin GitGutter.promise reloading plugin Material Theme.MT reloading plugin Package Control.1_reloader reloading plugin Package Control.2_bootstrap reloading plugin Package Control.Package Control reloading plugin Quick File Move.QuickFileMove reloading plugin SCSS.scss_completions reloading plugin SideBarEnhancements.SideBar reloading plugin SideBarEnhancements.SideBarAPI reloading plugin SideBarEnhancements.SideBarDefaultDisable reloading plugin SideBarEnhancements.Stats reloading plugin SidebarSeparator.SidebarSeparator reloading plugin ColorPicker.sublimecp reloading plugin CSScomb.CSScomb reloading plugin Sublime Tutor.sublime_tutor reloading plugin SublimeLinter.commands reloading plugin SublimeLinter.sublimelinter reloading plugin WakaTime.WakaTime reloading plugin zz File Icons.File Icons plugins loaded [WakaTime] [INFO] Initializing WakaTime plugin v7.0.13 SublimeLinter: debug mode: off Traceback (most recent call last): File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 210, in on_api_ready m.plugin_loaded() File "ApplySyntax in /Users/damienlethiec/Library/Application Support/Sublime Text 3/Installed Packages/ApplySyntax.sublime-package", line 668, in plugin_loaded File "ApplySyntax in /Users/damienlethiec/Library/Application Support/Sublime Text 3/Installed Packages/ApplySyntax.sublime-package", line 657, in on_reload File "ApplySyntax in /Users/damienlethiec/Library/Application Support/Sublime Text 3/Installed Packages/ApplySyntax.sublime-package", line 239, in update_extenstions File "ApplySyntax in /Users/damienlethiec/Library/Application Support/Sublime Text 3/Installed Packages/ApplySyntax.sublime-package", line 113, in update_language_extensions TypeError: unhashable type: 'dict' Emmet: No need to update PyV8 ApplySyntax: Syntax set to Ruby on Rails using Packages/Rails/Ruby on Rails.sublime-syntax Package Control: No updated packages ApplySyntax: Syntax set to Ruby on Rails using Packages/Rails/Ruby on Rails.sublime-syntax

0 Likes

#4

No there’s no error logged concerning the Sidebar… (if I’m not mistaken, this has nothing to do with SidebarEnhancement in any way)

Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 210, in on_api_ready
m.plugin_loaded()
File "ApplySyntax in /Users/damienlethiec/Library/Application Support/Sublime Text 3/Installed Packages/ApplySyntax.sublime-package", line 668, in plugin_loaded
File "ApplySyntax in /Users/damienlethiec/Library/Application Support/Sublime Text 3/Installed Packages/ApplySyntax.sublime-package", line 657, in on_reload
File "ApplySyntax in /Users/damienlethiec/Library/Application Support/Sublime Text 3/Installed Packages/ApplySyntax.sublime-package", line 239, in update_extenstions
File "ApplySyntax in /Users/damienlethiec/Library/Application Support/Sublime Text 3/Installed Packages/ApplySyntax.sublime-package", line 113, in update_language_extensions
TypeError: unhashable type: 'dict'

Are you trying to create from a regular folder? (is it a shared folder)?

Are you sure it doesn’t create a file. Maybe it’s just ST that doesn’t reload the side bar… (if it’s the case, search Project: Refresh Folders in the command palette)

0 Likes

#5

Hi Math,
I am not sure of what you mean by regular and shared folder but yes, I am trying this with what I think is a normal folder on a normal project. Actually, ST reloads the sidebar when I create a fill or folder from the command line (what I have been doing in the last few days) so I don’t think it is a reload problem.
The only thing that happens when I try to create a file or a folder is that the last folders disappear from the sidebar. I think it means the field to write the name of the folder or of the file is here but not accessible. Bellow are two screenshots: first one before trying to create a folder, second just after the try (the second will be put in the next post because of new user limitation)

0 Likes

#6

0 Likes

#7

Oh… It’s a bug of the side bar then, no? Try this

  • resize the side bar
  • deploy/undeploy (not sure about this word :smile:) a small folder

PS: t’es francais, nan :fr: ?

0 Likes

#8

Hi Matt,

Yep, I am French :slight_smile: (but maybe let’s continue in English if it can be useful to somebody else).
Yep, I also think it is a bug with the sidebar, I don’t think I said anything else :stuck_out_tongue:
I tried to resize the side bar but did not work. What do you mean by deploy / undeploy a folder (can you say it in French maybe ^^)?

Thanks again :slight_smile:

0 Likes

#9

Let’s make things clear: your problem is that the bottom folder(s)/file(s) aren’t shown in the side bar, and you cannot scroll, right?

Sorry, my bad…

Just click on a folder to see its files and folders…

0 Likes

#10

Euh no, the problem is that I cannot create a fill / rename a file / create a folder / rename a folder from the sidebar. It does not work. You can see the before / after state in my 2 screenshots but nothing created

0 Likes

#11

My first thought would be a permission error, but from a little testing Sublime detects when it can’t create a file in that situation, and pops up a dialog box (plus it logs the error in the console). Interestingly, if it can’t create a directory it displays an error in the console but does not show the error dialog to tell you, which is probably an oversight.

If you open up the Sublime console and turn on command logging with sublime.log_commands (True) and then try to create a file and folder, what commands does it say it’s executing? Do the file/directory names that it displays as the command arguments look correct?

0 Likes

#12

Thanks for the answer OdatNurd :slightly_smiling:
Here it is :
command: side_bar_new_file {"paths": ["/Users/damienlethiec/code/damienlethiec/ProjetsPros/deligreens/core-deligreens/app/helpers"]} command: show_panel {"panel": "console", "toggle": true} command: side_bar_new_directory {"paths": ["/Users/damienlethiec/code/damienlethiec/ProjetsPros/deligreens/core-deligreens/app/controllers/concerns"]} command: show_panel {"panel": "console", "toggle": true}

It is interesting to note that trying to create a file or folder also close the console (and I had to reopen it)

0 Likes