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

file template not work #151

Open
gatspy opened this issue Apr 22, 2016 · 3 comments
Open

file template not work #151

gatspy opened this issue Apr 22, 2016 · 3 comments

Comments

@gatspy
Copy link

gatspy commented Apr 22, 2016

{
"shell_input":true,
"file_templates": {
"js": [
"Packages/User/MyTmpl/js.sublime-snippet"
],
"py": [
"Packages/User/MyTmpl/python.sublime-snippet"
]
}
}

create new file by ⌥ +⌘+N, not use snippet.

@skuroda
Copy link
Contributor

skuroda commented Apr 24, 2016

Are there any errors in the ST console? Can you provide the snippet as well as the input file path you used.

@gatspy
Copy link
Author

gatspy commented Apr 26, 2016

add new file. console without any error message .
python.sublime-snippet:

<snippet>
    <content><![CDATA[
#!/usr/bin/python
# -*- coding: utf-8 -*-


]]></content>
    <description>Python File Template</description>
    <tabTrigger>pyf</tabTrigger>
</snippet>

@gatspy
Copy link
Author

gatspy commented Apr 26, 2016

delete current file from command palette, console display the following error message.

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 551, in run_
    return self.run(**args)
  File "advanced_new_file.commands.delete_file_command in /Users/Gatspy/Library/Application Support/Sublime Text 3/Installed Packages/AdvancedNewFile.sublime-package", line 18, in run
  File "advanced_new_file.commands.delete_file_command in /Users/Gatspy/Library/Application Support/Sublime Text 3/Installed Packages/AdvancedNewFile.sublime-package", line 44, in _delete_current_file
  File "advanced_new_file.commands.delete_file_command in /Users/Gatspy/Library/Application Support/Sublime Text 3/Installed Packages/AdvancedNewFile.sublime-package", line 64, in _delete_file
  File "advanced_new_file.commands.delete_file_command in /Users/Gatspy/Library/Application Support/Sublime Text 3/Installed Packages/AdvancedNewFile.sublime-package", line 71, in _execute_delete_file
  File "send2trash.plat_osx in /Applications/Sublime Text.app/Contents/MacOS/Packages/Default.sublime-package", line 44, in send2trash
  File "send2trash.plat_osx in /Applications/Sublime Text.app/Contents/MacOS/Packages/Default.sublime-package", line 33, in check_op_result
OSError: permissions error (on file open)

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