-
-
Notifications
You must be signed in to change notification settings - Fork 667
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
Add tests for asconfig and windows #1419
Conversation
Currently adding an extra entry that depends on relative files breaks things on windows.
@dcodeIO As I had suspected the issue is here: > @ test D:\a\assemblyscript\assemblyscript\tests\asconfig\entry-points\node-resolution
> node ../../index.js
[2 parse error(s)]
ERROR TS6054: File 'globalTwo.ts' not found.
import "./globalTwo";
~~~~~~~~~~~~~
in ..\assembly\globals.ts(2,8) |
Hmm, that's a strange error, especially because Windows doesn't really care about capitalization in file names. Would rather expect *nix to fail if it was that. |
@dcodeIO could we make this an issue and just merge the patch for now? |
I'd prefer to find out what's actually wrong there. Tried this locally now, and what I can tell so far is that the problem happens in
and the output of Looks like this has something to do with absolute paths coming from the The corresponding counterpart on Linux is
with output |
Diving a little deeper into it, the problem appears to be the call to |
How could |
That's the question. On Windows, it is |
False alarm, I was executing a different test. |
I see the problem now. At Line 661 in 348c42b
assemblyscript/src/util/path.ts Line 20 in 348c42b
where the path ultimately ends at is supposed to be dealing with Unix-like paths, in turn normalizing differently. Adding a |
Great! Can you push those changes to this branch? You should have the permissions since it's a PR to this repo? |
Yes, can push it here. Still looking for the best place to fix it at. |
Co-authored-by: Daniel Wirtz <dcode@dcode.io>
Thanks! :) |
🎉 This PR is included in version 0.14.7 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This tests checks if an entry file from another project imports from a relative path it is found on windows.