PR-6.2-dev Pending

User tests: Successful: Unsuccessful:

avatar LadySolveig
LadySolveig
18 May 2026

Pull Request resolves #47755.
Follow-up of #47789

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

Summary of Changes

This pull request addresses cross-platform path compatibility issues, particularly for Windows environments, by ensuring that module paths consistently use forward slashes in codemirror build.

Cross-platform path handling improvements:

  • Updated getPackagesUnderScope in resolve-package.mjs to use forward slashes when constructing module names, avoiding issues with backslashes on Windows that can break Rollup's external module matching.
  • Modified asset URI generation in builder.mjs to replace any backslashes with forward slashes, ensuring asset paths are valid in joomla.asset.json.

Testing Instructions

  • run npm ci

  • apply patch

  • run npm ci again

  • rename media folder to e. g. media_old

  • run npm ci again

Please check if the assets are loading correctly in the backend for the codemirror editor e. g. System -> Site Templates - Open any file. (ref: #47789 (comment))

Issues are currently occurring on Windows, to validate the test results, please specify the operating system on which the tests were executed. The fix for Windows should not cause regressions on other operating systems It would be helpful if we could validate this simultaneously here.

Actual result BEFORE applying this Pull Request

Error during execution on Windows - see #47755

Expected result AFTER applying this Pull Request

should work as expected without errors.

Link to documentations

Please select:

  • Documentation link for guide.joomla.org:

  • No documentation changes for guide.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

Thanks @joomdonation!

avatar LadySolveig LadySolveig - open - 18 May 2026
avatar LadySolveig LadySolveig - change - 18 May 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 18 May 2026
Category JavaScript Repository
avatar LadySolveig LadySolveig - change - 18 May 2026
The description was changed
avatar LadySolveig LadySolveig - edited - 18 May 2026
avatar LadySolveig LadySolveig - change - 18 May 2026
The description was changed
avatar LadySolveig LadySolveig - edited - 18 May 2026
avatar LadySolveig LadySolveig - change - 18 May 2026
The description was changed
avatar LadySolveig LadySolveig - edited - 18 May 2026
avatar LadySolveig LadySolveig - change - 18 May 2026
The description was changed
avatar LadySolveig LadySolveig - edited - 18 May 2026
avatar LadySolveig LadySolveig - change - 18 May 2026
The description was changed
avatar LadySolveig LadySolveig - edited - 18 May 2026
avatar richard67 richard67 - change - 18 May 2026
Labels Added: PR-6.2-dev
avatar LadySolveig LadySolveig - change - 18 May 2026
The description was changed
avatar LadySolveig LadySolveig - edited - 18 May 2026
avatar Reda-Muhamed
Reda-Muhamed - comment - 19 May 2026

Tested successfully on Windows 11. The npm installation completed without errors (806 packages added, 807 audited).

avatar tecpromotion
tecpromotion - comment - 19 May 2026

Tested successfully on Windows 11. The npm installation completed without errors (806 packages added, 807 audited).

Please use "Test this" here: https://issues.joomla.org/tracker/joomla-cms/47793

avatar heelc29 heelc29 - test_item - 20 May 2026 - Tested successfully
avatar heelc29
heelc29 - comment - 20 May 2026

I have tested this item ✅ successfully on 439a4e6


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47793.

avatar heelc29
heelc29 - comment - 20 May 2026

I have tested this item ✅ successfully on 439a4e6


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47793.

Add a Comment

Login with GitHub to post a comment