Skip to content

Conversation

@samsonasik
Copy link
Contributor

This PR add windows on CI so error on windows can be detected.

@samsonasik
Copy link
Contributor Author

I've updated directory separator to be normalized so it can works on windows.

@samsonasik
Copy link
Contributor Author

samsonasik commented Dec 19, 2025

Ready to merge 👍 the pending CI needs to be replaced with new defined action.

@samsonasik
Copy link
Contributor Author

@ruudk Ready 👍

@samsonasik samsonasik requested a review from ruudk December 19, 2025 08:23
@samsonasik
Copy link
Contributor Author

samsonasik commented Jan 16, 2026

@ruudk do you think it is mergeable now?

I only update the test part with no behaviour changed, just so it can run unit test on windows local dev.

Thank you.

yield [
"↳ <href=phpstorm://open?file=/www/project/src/Core/Admin/Controller/Dashboard/User/AddUserController.php&line=20>src/Core/Admin/.../User/AddUserController.php:20</>\n",
self::isWindows()
? "↳ <href=phpstorm://open?file=/www/project/src/Core/Admin/Controller/Dashboard/User/AddUserController.php&line=20>src/Core/Admin/Controller/Dashboard/User/AddUserController.php:20</>\n"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On Windows, these paths don't make any sense. They should be using backslashes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This on IDE link works even on Windows, the data provider test may need change to use relative path that doesn't use root drive path as directory separator use / on relative path

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But when the formatter presents errors, on windows, you would like to see windows paths, right?

Why would you want to see linux paths there?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The link should test show relative path, which formatter doesn't use DIRECTORY_SEPARATOR, it uses /.

The different is on windows, /.../ converted to parent directory, as this ternary use, I will check if it is possible to use relative path instead of include root drive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants