mraleph / irhydra

Tool for displaying IR used by V8 and Dart VM optimizing compilers
Apache License 2.0
433 stars 32 forks source link

Missing args.dart #31

Closed southerngs closed 9 years ago

southerngs commented 9 years ago

I'm having trouble running irhydra when using the dart-sdk because I'm getting the following error when downloading the packages:

mbp13:~/tools/irhydra$/Applications/dart-sdk/bin/pub get
Resolving dependencies... 
Got dependencies!
Precompiling dependencies... 
Loading source assets... 
Loading polymer/src/build/mirrors_remover, observe and smoke/src/default_transformer transformers... (1.1s)
Loading polymer transformers... 
Precompiled core_elements, paper_elements, polymer and smoke.
Precompiling executables... 
Loading source assets... 
A transformer imported unknown package "args" (in "package:args/args.dart").

The error I've posted here comes from running with OS X 10.10. But I also have the same error with Ubuntu 12.04 when I installed the dart SDK using apt-get.

mraleph commented 9 years ago

Actually looks like bug in Dart SDK itself. Which version are you using?

mraleph commented 9 years ago

I don't know where this error is coming from (I need to figure out which transformer is that) but this error does not prevent IRHydra from working.

~/src/temp $ git clone https://github.com/mraleph/irhydra.git
Cloning into 'irhydra'...
remote: Counting objects: 1993, done.
remote: Total 1993 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (1993/1993), 3.41 MiB | 119 KiB/s, done.
Resolving deltas: 100% (1293/1293), done.
 ~/src/temp $ cd irhydra
 ~/src/temp/irhydra [master] $ pub get
Resolving dependencies...
Got dependencies!
Precompiling dependencies...
Loading source assets...
Loading polymer/src/build/mirrors_remover, observe and smoke/src/default_transformer transformers... (2.0s)
Loading polymer transformers... (1.0s)
Precompiled core_elements, paper_elements, polymer and smoke.
Precompiling executables...
Loading source assets...
A transformer imported unknown package "args" (in "package:args/args.dart").
 ~/src/temp/irhydra [master] $ pub serve 
Loading source assets...
Loading sass and polymer transformers... (2.0s)
[Warning from Observable on irhydra|lib/src/ui/deopt-links.dart]:
line 65, column 3 of package:irhydra/src/ui/deopt-links.dart: Observable fields should be put in an observable objects. Please declare that this class extends from Observable, includes Observable, or implements Observable.
@observable final id;
^^^^^^^^^^^^^^^^^^^^^
[Warning from Observable on irhydra|lib/src/ui/deopt-links.dart]:
line 66, column 3 of package:irhydra/src/ui/deopt-links.dart: Observable fields should be put in an observable objects. Please declare that this class extends from Observable, includes Observable, or implements Observable.
@observable final type;
^^^^^^^^^^^^^^^^^^^^^^^
Serving irhydra web on http://localhost:8080
mraleph commented 9 years ago

Filed http://dartbug.com/21381.

Closing as functionality is not affected.

Please don't hesitate to ask further questions.

southerngs commented 9 years ago

I've tried with: Dart VM version: 1.8.0-dev.0.0 (Thu Oct 16 13:23:24 2014) on "linux_x64"

and: Dart VM version: 1.7.2 (Tue Oct 14 06:58:05 2014) on "macos_ia32"

Also on Linux I first tried the stable channel and then switched to the dev one when I saw this problem. As you noted it looks like things are working even with this missing package running on OS X. I had a different problem when running with Linux where the webpage isn't loading correctly and I thought it might be related to the missing package. I'll look at that more now that I know this package doesn't matter and I'll file a different bug if that seems appropriate. In the meantime it does look like it's working fine on OS X. Thanks.