Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup XDEBUG3 in Windows failed #700

Closed
3 of 5 tasks
jkowalleck opened this issue Feb 7, 2023 · 6 comments
Closed
3 of 5 tasks

setup XDEBUG3 in Windows failed #700

jkowalleck opened this issue Feb 7, 2023 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@jkowalleck
Copy link

jkowalleck commented Feb 7, 2023

Describe the bug
on windows-latest, setup of xdebug3 fails in latest php8.2

Version

  • I have checked releases, and the bug exists in the latest patch version of v1 or v2.
  • v2
  • v1

Runners

  • GitHub Hosted
  • Self Hosted

Operating systems

windows-latest

PHP versions

8.2.1

To Reproduce

- uses: shivammathur/setup-php@v2
  with:
    php-version: '8.2'
    extensions: dom,json,libxml,simplexml
    tools: composer:v2
    coverage: xdebug

Expected behavior

xdebug3 is installed and configured, as described in the docs of this GH action

Screenshots/Logs

https://github.com/CycloneDX/cyclonedx-php-library/actions/runs/4115916576/jobs/7105282080

Run shivammathur/setup-php@v2
  with:
    php-version: 8.2
    extensions: dom,filter,json,libxml,simplexml
    tools: composer:v2
    coverage: xdebug
    ini-file: production
  env:
    PHP_VERSION_LATEST: 8.2
    PHP_PROJECT_EXT: dom,filter,json,libxml,simplexml
    REPORTS_DIR: CI_reports
    REPORTS_ARTIFACT: tests-reports
"C:\Program Files\PowerShell\7\pwsh.exe" D:\a\_actions\shivammathur\setup-php\v2\src\scripts\run.ps1

==> Setup PhpManager 
√ PhpManager Installed 

==> Setup PHP 
✗ PHP Could not fetch CA certificate bundle from Curl 
√ PHP Found PHP 8.2.1 

==> Setup Extensions 
√ dom Enabled 
√ filter Enabled 
√ json Enabled 
√ libxml Enabled 
√ simplexml Enabled 

==> Setup Tools 
√ composer Added composer 2.5.2 

==> Setup Coverage 
✗ xdebug Could not install xdebug on PHP 8.2.1 

==> #StandWithUkraine 
√ read-more https://setup-php.com/support-ukraine 

Additional context

Are you willing to submit a PR?

@jkowalleck
Copy link
Author

update:

  • it appears to be very unstable: Each 3rd try, the setup of xdebug works as expected.
  • same with pcov: each 3rd try, the setup of xdebug works as expected.

@shivammathur
Copy link
Owner

Fetching builds on Windows has been unstable recently. I have a patch in the develop branch to retry downloading on failure, that should help. it will be in the next release.
This has been reported to GitHub Actions team here actions/runner-images#7007

@jkowalleck
Copy link
Author

Thank you very much.
Your work is appreciated.

@shivammathur
Copy link
Owner

Fixed in f9390a5

@shivammathur shivammathur added the awaiting-release Added/Fixed and tested, awaiting release label Feb 9, 2023
@codemasher
Copy link

Just came here to report the same issue. Thank you for the quick fix!

codemasher added a commit to chillerlan/php-httpinterface that referenced this issue Feb 14, 2023
@shivammathur
Copy link
Owner

Should be fixed by 2.25.0 release.

@shivammathur shivammathur removed the awaiting-release Added/Fixed and tested, awaiting release label Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants