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
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 /**
@Entity @Table(name="products") / class Product { / @Id @Column(type="integer") @GeneratedValue / protected $id; / @Column(type="string") **/ protected $name;
public function getId() { return $this->id; }
public function getName() { return $this->name; }
public function setName($name) { $this->name = $name; } }