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

Can't import from HTTPS URL #20837

Closed
DartBot opened this issue Sep 7, 2014 · 4 comments
Closed

Can't import from HTTPS URL #20837

DartBot opened this issue Sep 7, 2014 · 4 comments
Assignees
Labels

Comments

@DartBot
Copy link

DartBot commented Sep 7, 2014

This issue was originally filed by @kaendfinger


Code:

import "https://gist.githubusercontent.com/kaendfinger/ef1e933a8b295165f2c2/raw/dayName.dart";

void main() {
  print(dayName(new DateTime.now()));
}

Expected: For the import to succeed.

Actual: Error.

Unhandled exception:
Not a known scheme: https://gist.githubusercontent.com/kaendfinger/ef1e933a8b295165f2c2/raw/dayName.dart

­0 _filePathFromUri (dart:_builtin:289)

­1 _loadSourceAsync (dart:_builtin:390)

'file:///home/kaendfinger/Dart/Experiments/test.dart': error: line 1 pos 1: library handler failed
import "https://gist.githubusercontent.com/kaendfinger/ef1e933a8b295165f2c2/raw/dayName.dart";

@DartBot
Copy link
Author

DartBot commented Sep 8, 2014

This comment was originally written by @zoechi


similar to http://dartbug.com/20836 (20836 uses HTTP instead of HTTPS)

@sethladd
Copy link
Contributor

sethladd commented Sep 8, 2014

Added Area-VM, Triaged labels.

@iposva-google
Copy link
Contributor

https://codereview.chromium.org/550003004


cc @skabet.
Set owner to @iposva-google.
Added Started label.

@iposva-google
Copy link
Contributor

Fixed with r40005.


Added Fixed label.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants