You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At first I thought that had something to do with the fact that Ubuntu 20.04 ships with php 7.4. So I uninstalled that and installed php 7.2 and then went as far as installing 7.1.
File "/home/marco/.var/app/com.sublimetext.three/config/sublime-text-3/Packages/phpfmt/phpfmt.py", line 122, in dofmt
p = subprocess.Popen(cmd_ver, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=False)
File "./python3.3/subprocess.py", line 819, in __init__
File "./python3.3/subprocess.py", line 1448, in _execute_child
FileNotFoundError: [Errno 2] No such file or directory: 'php'
File "/home/marco/.var/app/com.sublimetext.three/config/sublime-text-3/Packages/phpfmt/phpfmt.py", line 122, in dofmt
p = subprocess.Popen(cmd_ver, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=False)
File "./python3.3/subprocess.py", line 819, in __init__
File "./python3.3/subprocess.py", line 1448, in _execute_child
FileNotFoundError: [Errno 2] No such file or directory: '/bin/php'
But the file is there because when I go to the terminal and type:
$ /bin/php -v
I get the following output.
PHP 7.1.33-16+ubuntu20.04.1+deb.sury.org+1 (cli) (built: May 14 2020 08:27:53) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.1.33-16+ubuntu20.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies
Also tried with /usr/bin/php but same result.
The text was updated successfully, but these errors were encountered:
Just found out what the problem was. I installed sublime via flatpak. So the plugin can't get to the php binary. Just removed the flatpak and installed sublime normally and now everything works fine.
But documentation on how to get this working when sublime is installed via flatpak would be great.
mpmont
changed the title
Ubuntu 20.04 fmt stopped working
Ubuntu 20.04 fmt and sublime installed via flatpak
Jul 4, 2020
At first I thought that had something to do with the fact that Ubuntu 20.04 ships with php 7.4. So I uninstalled that and installed php 7.2 and then went as far as installing 7.1.
Here's my config:
This gives the following error:
So I tried to specify the absolute path like so:
Same error:
But the file is there because when I go to the terminal and type:
$ /bin/php -v
I get the following output.
Also tried with /usr/bin/php but same result.
The text was updated successfully, but these errors were encountered: