Skip to content

dart-ext loading does not work when using package urls #6924

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

Closed
DartBot opened this issue Nov 26, 2012 · 3 comments
Closed

dart-ext loading does not work when using package urls #6924

DartBot opened this issue Nov 26, 2012 · 3 comments
Assignees
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. closed-duplicate Closed in favor of an existing report library-io

Comments

@DartBot
Copy link

DartBot commented Nov 26, 2012

This issue was originally filed by [email protected]


dart-ext loading does not work when using package urls

Here is pseudo-code.

------------- package 'some'---------------

==lib/src/some_extension.dart
import "dart-ext:some_extension";
==EOF

==lib/some.dart
library some;

import 'src/some_extension.dart';
export 'src/some_extension.dart';
==EOF

Inside package all works fine.


--------- application 'myapp'-------------

Variant #­1 (WORKING, NO PROBLEM)
==myapp.dart

import '../path/to/some/package/some.dart';


Variant #­2 (NOT WORKING, PROBLEMATIC)
==myapp.dart

import 'package:some/some.dart';

cannot find extension library'package:some/src/some_extension.dart': Error: line 1 pos 1: library handler failed
import 'dart-ext:some_extension';
^

'package:some/some.dart': Error: line 3 pos 1: library handler failed
import 'src/some_extension.dart';
^

P.S.
This issue http://code.google.com/p/dart/issues/detail?id=6264 will be closed as 'fixed'.
But this is not true.

@dgrove
Copy link
Contributor

dgrove commented Nov 26, 2012

Is this a package that was installed with pub?


cc @munificent.
Set owner to @madsager.
Added Area-IO, Triaged labels.

@madsager
Copy link
Contributor

I'm marking this as a duplicate of the original bug. Let's keep the discussion in one bug report instead of two. :-)


Added Duplicate label.
Marked as being merged into #6264.

@kevmoo
Copy link
Member

kevmoo commented May 14, 2014

Removed Area-IO label.
Added Area-Library, Library-IO labels.

@DartBot DartBot added Type-Defect area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. library-io closed-duplicate Closed in favor of an existing report labels May 14, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. closed-duplicate Closed in favor of an existing report library-io
Projects
None yet
Development

No branches or pull requests

4 participants