GNU bug report logs -
#76955
30.1; php-ts-mode-php-executable default path may not match remote path
Previous Next
Reported by: Morgan Willcock <morgan <at> ice9.digital>
Date: Tue, 11 Mar 2025 20:11:02 UTC
Severity: normal
Found in version 30.1
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #44 received at 76955 <at> debbugs.gnu.org (full text, mbox):
> From: Vincenzo Pupillo <v.pupillo <at> gmail.com>
> Cc: 76955 <at> debbugs.gnu.org
> Date: Thu, 13 Mar 2025 11:17:11 +0100
>
> Ciao,
>
> 'php-ts-mode-php-executable' it's used for 'php-ts-mode-flymake-php',
> 'run-php' and 'php-ts-mode-run-php-webserver'.
Then please consider the solution proposed below.
> @Morgan: Will setting the executable path to "php" work in your scenario?
> Of the functions listed above, which one do you usually use?
Customizing the value is an okay solution, but we are discussing how
to solve this for users that don't customize.
How about the following solution:
. we replace references to php-ts-mode-php-executable with a call to
a function
. that function will do something like
(let ((php-prog (if (file-remote-p default-directory)
(executable-find "php" t)
php-ts-mode-php-executable)))
php-prog)
WDYT?
This bug report was last modified 52 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.