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

When try to use dart:io in web ui component I get 'Failed to load a file dart:io' #8202

Closed
DartBot opened this issue Jan 29, 2013 · 8 comments
Labels
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. closed-obsolete Closed as the reported issue is no longer relevant P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug

Comments

@DartBot
Copy link

DartBot commented Jan 29, 2013

This issue was originally filed by Firen2k...@gmail.com


What steps will reproduce the problem?

  1. Create sample application in the creator in Dart Editor.
  2. Modify file xclickcounter.dart by adding 'import 'dart:io';'
  3. Run the build.dart.
  4. Run the app.

What is the expected output? What do you see instead?
I believe the compiler should say that dart:io is not allowed to be used in client code. Instead I get:
"Failed to load a file dart:io
Failed to load resource
  dart:io"
error message in console.

What version of the product are you using? On what operating system?
Dart Editor version 0.3.2_r17657
Dart SDK version 0.3.2.0_r17657
Windows 7 64bit

@kasperl
Copy link

kasperl commented Feb 4, 2013

Added Area-Dartium, Triaged labels.

@DartBot
Copy link
Author

DartBot commented Feb 7, 2013

This comment was originally written by antonm@google.com


dart:io is indeed forbidden in client code. Redirecting to Editor team to see if they can improve diagnostics.


Removed Area-Dartium label.
Added Area-Editor label.

@clayberg
Copy link

clayberg commented Feb 9, 2013

Set owner to @scheglov.
Added this to the Later milestone.
Removed Type-Defect label.
Added Type-Enhancement label.

@scheglov
Copy link
Contributor

Set owner to @bwilkerson.
Added Editor-AnalysisEngine label.

@bwilkerson
Copy link
Member

Set owner to @jwren.
Removed Area-Editor, Editor-AnalysisEngine labels.
Added Area-Analyzer label.

@kasperl
Copy link

kasperl commented Jul 10, 2014

Removed this from the Later milestone.
Added Oldschool-Milestone-Later label.

@kasperl
Copy link

kasperl commented Aug 4, 2014

Removed Oldschool-Milestone-Later label.

@DartBot DartBot added Type-Enhancement area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. labels Aug 4, 2014
@jwren jwren removed their assignment Oct 6, 2015
@kevmoo kevmoo added P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug and removed triaged labels Feb 29, 2016
@srawlins
Copy link
Member

The message is now:

Error compiling to JavaScript:
[error on line 1] Library not supported 'dart:io'.
Try removing the dependency or enabling support using the '--categories' option.

Good enough?

@matanlurey matanlurey added the closed-obsolete Closed as the reported issue is no longer relevant label Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. closed-obsolete Closed as the reported issue is no longer relevant P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

9 participants