francodacosta / sublime-php-getters-setters

generare getters and setters for php classes
Other
73 stars 33 forks source link

ST3 early error after install #44

Open MatteoOreficeIT opened 9 years ago

MatteoOreficeIT commented 9 years ago

Hi

I installed the package from the package installer repo and also from git , early error, same result

Traceback (most recent call last): File "/opt/sublime_text/sublimeplugin.py", line 549, in run return self.run(edit) File "/home/matteo/.config/sublime-text-3/Packages/PHP Getters and Setters/php-getter-setter.py", line 427, in run for variable in parser.getClassVariables(): File "/home/matteo/.config/sublime-text-3/Packages/PHP Getters and Setters/php-getter-setter.py", line 315, in getClassVariables variable = self._processVariable(match) File "/home/matteo/.config/sublime-text-3/Packages/PHP Getters and Setters/php-getter-setter.py", line 304, in _processVariable return Variable(name = name, visibility = visibility, typeName = typeName, description = description) File "/home/matteo/.config/sublime-text-3/Packages/PHP Getters and Setters/php-getter-setter.py", line 74, in init self.template = TemplateManager.get(self.Prefs.get('template')) File "/home/matteo/.config/sublime-text-3/Packages/PHP Getters and Setters/php-getter-setter.py", line 63, in get return self.templates[name] KeyError: None

the input file was, very simple

<?php

// src/Product.php /**

francodacosta commented 9 years ago

@bitonda Hi,

I can not reproduce your error, what is your sublime text version and the getters and setters plugin version ?