-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[BUGFIX release] ensure import paths are resolved \w posix separators #4205
Conversation
stefanpenner
commented
Mar 2, 2016
- share the same algorithm ember.js uses
- path.join defaults to path[platform].join which results in path.win32.join on windows and path.posix.join on everything else.
still seems to have some issues on windows: ember-cli/ember-cli#5542 (comment) |
i think babel may provide a mix of |
tested locally, once ember-cli/amd-name-resolver#4 lands we should be good to go. |
Ok, looks like it was released and bumped here. This is good to go... |
Correct me if I'm wrong, but shouldn't C:\Users\floqqi\project> npm install
ember-data@2.6.0-canary node_modules\ember-data
├── ember-cli-path-utils@1.0.0
├── ember-cli-string-utils@1.0.0
├── ember-cli-test-info@1.0.0
├── exists-sync@0.0.3
├── inflection@1.8.0
├── npm-git-info@1.0.2
├── semver@5.1.0
├── babel-plugin-filter-imports@0.2.0
├── amd-name-resolver@0.0.5 (ensure-posix-path@1.0.1)
├── chalk@1.1.1 (escape-string-regexp@1.0.5, supports-color@2.0.0, has-ansi@2.0.0, strip-ansi@3.0.1, ansi-styles@2.2.0)
├── babel-plugin-feature-flags@0.2.0
├── silent-error@1.0.0 (debug@2.2.0)
├── ember-cli-version-checker@1.1.6 (semver@4.3.6)
├── git-repo-info@1.1.2
├── broccoli-file-creator@1.1.0 (symlink-or-copy@1.0.1, rsvp@3.0.21, mkdirp@0.5.1, broccoli-writer@0.1.1, broccoli-kitchen-sink
-helpers@0.2.9, broccoli-plugin@1.2.1)
├── broccoli-merge-trees@1.1.1 (fs-tree-diff@0.4.4, symlink-or-copy@1.0.1, debug@2.2.0, fast-ordered-set@1.0.2, can-symlink@1.0
.0, rimraf@2.5.2, broccoli-plugin@1.2.1)
└── broccoli-babel-transpiler@5.5.0 (clone@0.2.0, json-stable-stringify@1.0.1, broccoli-funnel@1.0.1, broccoli-persistent-filte
r@1.1.8, babel-core@5.8.35) Browser throws |
@floqqi I can confirm that. It's still throwing an error. I think this is because Ember CLI is not yet released with |
@KrisOlszewski ya I believe I updated both sides locally. |
@KrisOlszewski Sadly fails anyway with |
@floqqi please provide more info. With the two patches my Windows machine appears happy, so I will need more info |
OS: Windows 7 x64 SP1 Do you need additional info? |
whats the result of |
|
I dont think you are using ember-cli master. |
Hm, but why is than |
@stefanpenner and @floqqi unfortunately I have to confirm.
|
ill see whats im when im home. I must have fixed something locally and not updated. |
Just hit this too, have a project ready to test any fixes that go out. |
@stefanpenner Would you mind squashing this pr down to 1 commit to make it easier for cherry-picking? |
* share the same algorithm ember.js uses * path.join defaults to path[platform].join which results in path.win32.join on windows and path.posix.join on everything else.
de1d82a
to
9def562
Compare
[BUGFIX release] ensure import paths are resolved \w posix separators
I merged this since I believe it solves at least some of the issues on windows. Its sounds like their may be another related issue. I'll try to investigate on a windows box tomorrow. |
The module issue is still present when running against master. |
Can confirm that the issue is still present using:
|
Is there any plan to address the "related issue"? It's hard to downgrade In the mean time I can't make any production release. |
@floqqi This seems like a regression. Can you create an issue for that, ideally with a reproduction using https://ember-twiddle.com/? You can use this as a starting point. |
@pangratz Of course, I'll do this later this day. |
On Windows, for a simple project, I get a white page and
when using ember-cli@2.4.1 with ember-data@2.4.0 after production build. Same project with ember-cli@2.4.2 creates a production build that is working as expected. Ember is 2.4.1. |
Now it's getting interesting. @nfc036's tip using "ember-cli": "2.4.2",
"ember-data": "2.4.0" is working -> valid production build. Switching back to "ember-cli": "2.4.2",
"ember-data": "emberjs/data#master" causes the issue again (fresh install). |
Same here, using |
Can one of you open a new issue for this? I realize it is related, but I don't want to loose track with this thread being on a merged PR... |
@pangratz yes! I'm gonna provide some more information in the issue. |
@floqqi awesome, thanks! |
Broken in production build on Linux with
Not showing the backslash issue.
|
@pwfisher Same thing here. Just updated ember-data from |
I can confirm what @pwfisher said about this exception exists on Linux production builds as well. Not sure if a fix has been released yet or if there is another issue for this error. I'm currently using @marcosgz workaround which is working well. |
yes i does not work with ember-data@2.4.1 and works with ember-data@2.4.0 |
@pwfisher @marcosgz @asakusuma @kfuzaylov you are describing a different issue |
@stefanpenner Is there a Github issue already for it, or should we create a new one? |
unknown, but i have opened a PR #4248 |
I have released Ember Data |