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

Configuration Issues #84

Open
alex-cory opened this issue Feb 19, 2014 · 10 comments
Open

Configuration Issues #84

alex-cory opened this issue Feb 19, 2014 · 10 comments

Comments

@alex-cory
Copy link

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?

@skuroda
Copy link
Collaborator

skuroda commented Feb 19, 2014

Hi, does anything happen when you press the key binding? Are there any errors in the ST console?

@skuroda
Copy link
Collaborator

skuroda commented Feb 19, 2014

Can you also include the version of ST you are using and the operating system . Thank you.

@alex-cory
Copy link
Author

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

@skuroda
Copy link
Collaborator

skuroda commented Feb 19, 2014

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.

@alex-cory
Copy link
Author

I'm not trying to do anything fancy. I'm simply just trying to set it up. http://goo.gl/XxLdKv

@skuroda
Copy link
Collaborator

skuroda commented Feb 20, 2014

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.

@alex-cory
Copy link
Author

Am I supposed to configure the path as you did for each project? Same with the settings?

{
    "folders":
    [
        {
            "follow_symlinks": true,
            "path": "."
        }
    ]
}

@skuroda
Copy link
Collaborator

skuroda commented Feb 20, 2014

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.

@alex-cory
Copy link
Author

view.settings().get('AdvancedNewFile')
True

@skuroda
Copy link
Collaborator

skuroda commented Feb 23, 2014

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.

  1. Packages/Default/Preferences.sublime-settings

  2. Packages/Default/Preferences ().sublime-settings

  3. Packages/User/Preferences.sublime-settings

  4. Packages//.sublime-settings

  5. Packages/User/.sublime-settings

  6. 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.

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