AdvancedNewFile
AdvancedNewFile copied to clipboard
Configuration Issues
Hey there!
So I love the utility of this package but I'm having trouble getting it to work. I really really want to use it. Could you please help me out here. I'm totally going to show it off to a bunch of people. I just need to get it working properly.
Here's what I've tried:
- Removing and re-downloading (both via package control & manually with renaming it)
- Disabling a bunch of other packages that might have been conflicting
Any advice or suggestions?
Hi, does anything happen when you press the key binding? Are there any errors in the ST console?
Can you also include the version of ST you are using and the operating system . Thank you.
Here's my info:
- OSX
- ST3
Here's the output from the ST terminal: Traceback (most recent call last): File "/Applications/Dev Tools/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 526, in run_ return self.run() File "/Users/alexcory/Library/Application Support/Sublime Text 3/Packages/AdvancedNewFile/advanced_new_file/commands/new_file_command.py", line 13, in run self.run_setup() File "/Users/alexcory/Library/Application Support/Sublime Text 3/Packages/AdvancedNewFile/advanced_new_file/commands/command_base.py", line 66, in run_setup self.settings = get_settings(self.view) File "/Users/alexcory/Library/Application Support/Sublime Text 3/Packages/AdvancedNewFile/advanced_new_file/anf_util.py", line 103, in get_settings for key in project_settings: TypeError: 'bool' object is not iterable
Interesting, would you mind posting your project file? It looks like you are assigning the key AdvancedNewFile a boolean, rather than an object. Though I could be wrong about that. If that is the case, can you clarify what you are trying to do. I can likely help with getting the correct settings set up.
I'm not trying to do anything fancy. I'm simply just trying to set it up. http://goo.gl/XxLdKv
I'm sorry let me clarify, when I say project I mean the Sublime Text Project. You can view this by going to Project -> Edit Project. As an example, the project file will look something like this.
{
"folders":
[
{
"follow_symlinks": true,
"path": "C:\\Users\\skuroda\\AppData\\Roaming\\Sublime Text 3\\Packages\\AdvancedNewFile"
}
],
"settings":
{
"AdvancedNewFile":
{
"alias":
{
"users": "C:\\Users"
}
}
}
}
I'm guessing you have a boolean value for the "AdvancedNewFile" key rather than an object as above.
Am I supposed to configure the path as you did for each project? Same with the settings?
{
"folders":
[
{
"follow_symlinks": true,
"path": "."
}
]
}
Nope, the project is a ST thing. Essentially, each window is classified as a project, whether you save it as a project or not. The settings was just an example since, based on the exception, I thought you might have something. Have you tried to customize the settings for AdvancedNewFile elsewhere? Perhaps in Packages/User/Preferences.sublime-settings?
In the ST console, can you enter view.settings().get('AdvancedNewFile') and tell me what the result is? Since you don't have any project settings, it shouldn't return anything, but this might at least prove a setting is being set somewhere.
view.settings().get('AdvancedNewFile') True
Okay, so that verifies there is some view level setting that has been set, perhaps unintentionally by another plugin. Unfortunately, there are a number of places this could be. You will need to check the following locations for the settings.
-
Packages/Default/Preferences.sublime-settings
-
Packages/Default/Preferences (
).sublime-settings -
Packages/User/Preferences.sublime-settings
-
-
Packages/
/ .sublime-settings -
Packages/User/
.sublime-settings -
Since you are using ST3, I would assume you haven't edited those, as you would have had to use something like PackageResourceViewer or manually extract the file of interest. You can access the User syntax settings by going to
Preferences -> Settings - More -> Syntax Specific.