Skip to content

Add support for Windows#30

Merged
ruudk merged 8 commits intoTicketSwap:mainfrom
samsonasik:add-windows
Feb 18, 2026
Merged

Add support for Windows#30
ruudk merged 8 commits intoTicketSwap:mainfrom
samsonasik:add-windows

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ruudk I've updated the test to show example of DIRECTORY_SEPARATOR based on operating system 👍

should be ok now 👍

@samsonasik samsonasik requested a review from ruudk February 17, 2026 15:53
@ruudk
Copy link
Member

ruudk commented Feb 18, 2026

Thanks, could you rebase this with main? Thanks,

@samsonasik
Copy link
Contributor Author

@ruudk it already synced with latest main branch, the pending CI is because it add new Windows CI, and that's need to be enabled.

Copy link
Member

@ruudk ruudk left a comment

Choose a reason for hiding this comment

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

You're right.

@ruudk ruudk changed the title Add windows on CI Add support for Windows Feb 18, 2026
@ruudk ruudk merged commit 3e9cccc into TicketSwap:main Feb 18, 2026
30 checks passed
@samsonasik samsonasik deleted the add-windows branch February 18, 2026 11:53
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

Comments