Extras icon indicating copy to clipboard operation
Extras copied to clipboard

[Bug]: php-xdebug not detecting that php is installed via scoop

Open YUKI2eN3e opened this issue 10 months ago • 0 comments

Prerequisites

  • [X] I have written a descriptive issue title.
  • [X] I have searched all issues/PRs to ensure it has not already been reported or fixed.
  • [X] I have verified that I am using the latest version of Scoop and corresponding bucket.

Package Name

php-xdebug

Expected/Current Behaviour

Expected: php-xdebug's post_install script detects php and updates php.ini

Current: php-xdebug's post_install script is apparently not detecting that php is installed via scoop and thus not updating php.ini

Steps to Reproduce

> scoop update php-xdebug
Updating 'php-xdebug' (3.3.1-8.3 -> 3.3.2-8.3)
Downloading new version
Starting download with aria2 ...
Download: Download Results:
Download: gid   |stat|avg speed  |path/URI
Download: ======+====+===========+=======================================================
Download: 7021ad|OK  |   736KiB/s|C:/Users/USERNAME/scoop/cache/php-xdebug#3.3.2-8.3#https_xdebug.org_files_php_xdebug-3.3.2-8.3-vs16-x86_64.dll_php_xdebug.dll
Download: Status Legend:
Download: (OK):download completed.
Checking hash of php_xdebug-3.3.2-8.3-vs16-x86_64.dll ... ok.
Uninstalling 'php-xdebug' (3.3.1-8.3)
Unlinking ~\scoop\apps\php-xdebug\current
Installing 'php-xdebug' (3.3.2-8.3) [64bit] from extras bucket
Loading php_xdebug-3.3.2-8.3-vs16-x86_64.dll from cache.
Linking ~\scoop\apps\php-xdebug\current => ~\scoop\apps\php-xdebug\3.3.2-8.3
Running post_install script...
PHP was not installed through scoop, you have to activate php_xdebug.dll manually! Add the following:

zend_extension=C:\Users\USERNAME\scoop\apps\php-xdebug\current\php_xdebug.dll
[xdebug]
xdebug.remote_enable=on
xdebug.remote_autostart=on
xdebug.remote_connect_back=on


'php-xdebug' (3.3.2-8.3) was installed successfully!
Notes
-----
Xdebug is already enabled if PHP was installed through scoop!
Otherwise add 'C:\Users\USERNAME\scoop\apps\php-xdebug\current\php_xdebug.dll' to your php.ini

Possible Solution

Have php-xdebug's post_install script use whatever method scoop list is using to check installed packages since it seems to find it just fine

Scoop and Buckets Version

Current Scoop version:
v0.3.1 - Released at 2022-11-15

'extras' bucket:
2c4150da0 (HEAD -> master, origin/master, origin/HEAD) webstorm: Update to version 2024.1.1-241.15989.47

'main' bucket:
9a7bef771 (HEAD -> master, origin/master, origin/HEAD) haskell-language-server: Add version 2.7.0.0 (#5695)

'php' bucket:
cb9b2a6 (HEAD -> master, origin/master, origin/HEAD) php8.3: Update to version 8.3.6

Scoop Config

last_update            aria2-warning-enabled scoop_repo                              scoop_branch
-----------            --------------------- ----------                              ------------
2024-04-17 12:29:58 PM                 False https://github.com/ScoopInstaller/Scoop master

PowerShell Version

Name                           Value
----                           -----
PSVersion                      7.4.1
PSEdition                      Core
GitCommitId                    7.4.1
OS                             Microsoft Windows 10.0.19043
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Additional Softwares

php 8.3.6 main 2024-04-11 15:08:33 php-xdebug 3.3.2-8.3 extras 2024-04-17 12:30:57 php7.4 7.4.33 php 2023-10-11 23:31:36 php8.1 8.1.28 php 2024-04-11 15:09:37

YUKI2eN3e avatar Apr 17 '24 20:04 YUKI2eN3e