do you have php installed? and is it in your PATH env variable?
Jul 13, 2020
5
Level 1
php companion not working
hi, after reinstalling windows the php companion plugin started to fool me when i try to use fqcn i get this error:
Traceback (most recent call last):
File "./python3.3/subprocess.py", line 1104, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C: \ Program Files \ Sublime Text 3 \ sublime_plugin.py", line 1088, in run_
return self.run (edit)
File "C: \ Users \ triba \ AppData \ Roaming \ Sublime Text 3 \ Installed Packages \ PHP Companion.sublime-package \ php_companion / commands / expand_fqcn_command.py", line 17, in run
File "C: \ Users \ triba \ AppData \ Roaming \ Sublime Text 3 \ Installed Packages \ PHP Companion.sublime-package \ php_companion / utils.py", line 40, in find_symbol
File "C: \ Users \ triba \ AppData \ Roaming \ Sublime Text 3 \ Installed Packages \ PHP Companion.sublime-package \ php_companion / utils.py", line 49, in find_in_global_namespace
File "./python3.3/subprocess.py", line 576, in check_output
File "./python3.3/subprocess.py", line 819, in __init__
File "./python3.3/subprocess.py", line 1110, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the specified file
And when trying to find use again this:
Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 1088, in run_
return self.run(edit)
File "C:\Users\triba\AppData\Roaming\Sublime Text 3\Installed Packages\PHP Companion.sublime-package\php_companion/commands/find_use_command.py", line 17, in run
File "C:\Users\triba\AppData\Roaming\Sublime Text 3\Installed Packages\PHP Companion.sublime-package\php_companion/utils.py", line 33, in find_symbol
FileNotFoundError: [Errno 2] No such file or directory: 'D:\Programs\pandatron-new\app\User.php'
The only thing that works is: Insert constructor property
I use the default settings:
{
"exclude_dir": [],
// Need the php binary to work
"allow_use_from_global_namespace": false,
// Use "inline" to include the namespace just after the <?php opening tag
"namespace_position": "newline",
// If using "newline" for "namespace_position", how many newlines to
// insert after opening tag
"namespace_blank_lines": 2,
// Sort the list of use statements by their line length
"use_sort_length": false,
// Visibility of properties generated by the "insert constructor property"
// command. "public", "protected" or "private"
"visibility": "private",
// Copy comment doc from parent or interface to implemented class
// "true" or "inheritdoc".
"docblock_inherit": true,
// Format of the message when an interface is implemented
// true: TODO statement
// false: Exception
"use_todo_implement": false
}
Please or to participate in this conversation.