-
Notifications
You must be signed in to change notification settings - Fork 192
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
Reading of URL is not allowed with custom filesystem #338
Comments
@jazdw, using URLs from a custom FS should work out of the box. For example, this is a unit test demonstrating how to import an ES module, while this is a test that we just added that uses the |
@eleinadani Related to imports and URLs though is #257 which I still don't think are fixed. I made a comment there but you may not have seen it as it is closed. |
Thanks for sharing your code @jazdw. The default FS (i.e., If you want to load your sources from the network, you can implement a custom FS that maps HTTP URLs to some Your
and the call to |
Yep I understand this, this is what #255 is about.
And indeed it does. I have updated my tests to more explicitly show what does and what does not work. I've summarized the results and copied the output below.
|
Great, happy to hear that
As discussed above, the 2nd failure (
I had a look at this other failure, and indeed this was a bug on our side: I have fixed it in this commit -- Let us know if the fix works for you, and thanks for reporting the issue! |
This is not correct, please see the test case
Thank you! Is there a nightly snapshot build of Graal/Truffle/GraalJS to test with? |
This is how loading from HTTP works with the default filesystem - https://github.com/oracle/graal/blob/fed1f661c5770c01a365d9eaf69b296bdc960759/truffle/src/com.oracle.truffle.api/src/com/oracle/truffle/api/source/Source.java#L1028 |
With Graal 20.2.0 Creating a context with a custom FS like this
Then trying to to load a file from a URL results in the following:
Is there any way to allow loading from HTTP with a custom FS?
The text was updated successfully, but these errors were encountered: