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

Convert path to URL before import of config/plugin for Windows support #2339

Merged
merged 5 commits into from Apr 28, 2023

Conversation

lifeart
Copy link
Collaborator

@lifeart lifeart commented Jan 13, 2022

fixes #2336

I'm not sure how to test it, because chain for this function is quite long, should we create unit test for 'requirePlugin' function itself?

lib/get-config.js Outdated Show resolved Hide resolved
@lifeart lifeart requested a review from bmish January 13, 2022 14:45
@bmish
Copy link
Member

bmish commented Jan 13, 2022

Maybe you can add an acceptance test that passes a windows-style path to the CLI? There's a config path CLI option.

@bmish bmish changed the title #2336 convert path to file path before import Convert path to URL before import of config/plugin for Windows support Jan 15, 2022
@bmish bmish added the bug label Jan 15, 2022
@bmish bmish added this to the 4.1.0 milestone Jan 18, 2022
lib/get-config.js Outdated Show resolved Hide resolved
@bmish bmish modified the milestones: 4.1.0, 4.2.0 Feb 15, 2022
@bmish bmish modified the milestones: 4.2.0, 4.3.0 Feb 25, 2022
@locks
Copy link
Contributor

locks commented Aug 24, 2022

@bmish @lifeart what's the latest status on this?

@bmish
Copy link
Member

bmish commented Aug 24, 2022

From what I remember, we had trouble reproducing the issue in the test and so I wasn't confident that the test actually verified it was fixed.

@lflo5727
Copy link

Is there any update on this PR?
This issue is blocking us from adding a custom ember-template-lint plugin. We have the same issue described here: #2336

If not is there any decent workaround?

@bmish
Copy link
Member

bmish commented Apr 26, 2023

If someone can confirm that this PR fixes the issue, we might be able to move forward with it.

@lflo5727
Copy link

@bmish I just pulled this branch down for ember-template-lint and tested. This absolutely fixes the issue.
Would be great to get this pushed along

Copy link
Member

@bmish bmish left a comment

Choose a reason for hiding this comment

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

Thanks! Let's give this a try.

@bmish bmish merged commit a5a3a42 into master Apr 28, 2023
11 checks passed
@bmish bmish deleted the fix-windows-config-loading branch April 28, 2023 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ESM error in v4 consuming plugins in a Windows env
4 participants