You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@bioball Hi, may I try to fix the bug? I will change the code to like below
publicstaticURLtoUrl(URIuri) throwsIOException {
try {
if ("file".equalsIgnoreCase(uri.getScheme()) && uri.getHost() != null) {
thrownewUnsupportedOperationException("Remote file URIs are not supported: " + uri);
}
returnuri.toURL();
} catch (Errore) {
// best we can do for now// rely on caller to provide context, e.g., the requested module URIif (e.getClass().getName().equals("com.oracle.svm.core.jdk.UnsupportedFeatureError")) {
thrownewIOException("Unsupported protocol: " + uri.getScheme());
}
throwe;
}
}
If assign the bug to me, I will try my best to support remote files by download the file or other ways.
Pkl currently hard-fails if given a
file:
URI with a host set.For example:
Produces:
We should either support remote files, or throw a meaningful error here.
The text was updated successfully, but these errors were encountered: