SublimeText / AdvancedNewFile

File creation plugin for Sublime Text
MIT License
829 stars 93 forks source link

cant create new file #112

Closed Sekai92 closed 9 years ago

Sekai92 commented 9 years ago

i'm using this shortcut to create new file few days ago, { "keys": ["ctrl+alt+n"], "command": "advanced_new_file"}

but now is not working what should i do?

skuroda commented 9 years ago

Are there any errors in the ST console when you hit the keybinding? If not, there might be a conflict with another plugin. Try entering sublime.log_commands(True) in the ST console. What command comes up?

Sekai92 commented 9 years ago

nothing comes up sir. im already type sublime.log_commands(True) on console and nothing happen

skuroda commented 9 years ago

If you open the command palette, are any of the AdvancedNewFile commands there? They are prefixed with ANF:.

If not, there might be a problem when the plugin loads. When you start ST, can you scroll up in the ST console. You should see a line like reloading plugin AdvancedNewFile.AdvancedNewFile.

If that line isn't there, it's possible the plugin was somehow uninstalled. If you are using Package Control, you can use Package Control: List Packages in the command palette to see what is installed. If you are not, check the Packages directory for AdvancedNewFile directory.

thomsbg commented 9 years ago

I get this error in the console:

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 140, in create_window_commands
    cmds.append(class_(window))
  File "advanced_new_file.commands.copy_file_command in /Users/blake/Library/Application Support/Sublime Text 3/Installed Packages/AdvancedNewFile.sublime-package", line 11, in __init__
TypeError: super(type, obj): obj must be an instance or subtype of type
skuroda commented 9 years ago

That error sometimes appears when an update occurs. I just pushed a few recently. Quitting ST (cmd + q) then restarting ST should fix the error. Let me know if it doesn't.

thomsbg commented 9 years ago

Aha. Restarting worked. Thanks for the tip.

skuroda commented 9 years ago

Great, I'll try to be better about adding messages when updates occurs, and suggesting restarts when they occur.

Thanks for using AdvancedNewFile.

Sekai92 commented 9 years ago

i have this error sir:

Reloading plugin C:\Users\Sekai92\AppData\Roaming\Sublime Text 2\Packages\AdvancedNewFile\AdvancedNewFile.py Traceback (most recent call last): File ".\sublime_plugin.py", line 62, in reload_plugin File ".\AdvancedNewFile.py", line 22, in from advanced_new_file.commands import * File ".\advanced_new_file\commandsinit.py", line 2, in from .new_file_command import AdvancedNewFileNew, AdvancedNewFileNewAtCommand, AdvancedNewFileNewEventListener File ".\advanced_new_file\commands\new_file_command.py", line 7, in from .command_base import AdvancedNewFileBase File ".\advanced_new_file\commands\command_base.py", line 14, in from ..lib.ushlex import split as st2_shlex_split File ".\advanced_new_file\lib\ushlex.py", line 14, in import unicodedata ImportError: No module named unicodedata

skuroda commented 9 years ago

@Sekai92 looks to be an issue specific to windows. Think I found a fix, but I won't be able to verify till later today (no windows machine to test on at the moment).

skuroda commented 9 years ago

@Sekai92, I've pushed a fix that should address this issue.

jakoubek commented 9 years ago

Works for me now. Don't forget to restart ST after upgrading the plugin.

Sekai92 commented 9 years ago

@skuroda thank you worked perfectly sir :)