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

Could not find asset web_components|lib/webcomponents.js (probably dart2js) #21810

Closed
DartBot opened this issue Dec 6, 2014 · 20 comments
Closed
Assignees
Labels
P1 A high priority bug; for example, a single project is unusable or has many test failures
Milestone

Comments

@DartBot
Copy link

DartBot commented Dec 6, 2014

This issue was originally filed by kurotensh...@autistici.org


What steps will reproduce the problem?

  1. Just updating the packages
  2. By doing then pub build

What is the expected output? What do you see instead?

I had perfect compilation on 04/12/2014 with the same code and packages (not the sames versions indeed)

Now :

Could not find asset web_components|lib/webcomponents.js.
e:\b\build\slave\dart-editor-win-stable\build\dart\sdk\lib_internal\pub_generated\lib\src\barback\pub_package_provider.dart 87 PubPackageProvider._assertExists
e:\b\build\slave\dart-editor-win-stable\build\dart\sdk\lib_internal\pub_generated\lib\src\barback\pub_package_provider.dart 41 getAsset.<fn>.join0.join1
e:\b\build\slave\dart-editor-win-stable\build\dart\sdk\lib_internal\pub_generated\lib\src\barback\pub_package_provider.dart 52 getAsset.<fn>.join0
e:\b\build\slave\dart-editor-win-stable\build\dart\sdk\lib_internal\pub_generated\lib\src\barback\pub_package_provider.dart 76 getAsset.<fn>
dart:isolate

What version of the product are you using?

Using Dart 1.8 stable with polymer 0.15.2.

On what operating system?

Windows 8.1 x64

Please provide any additional information below.

No problem running under Dartium with raw Dart.

C:\Users\KuroTenshi\AppData\Roaming\dart\dart-sdk\bin>pub --trace 'build' '--mod
e' 'debug' '--all'
Could not find a command named "'build'".

Available commands:
  build Apply transformers to build a package.
  cache Work with the system cache.
  deps Print package dependencies.
  downgrade Downgrade the current package's dependencies to oldest versions.
  get Get the current package's dependencies.
  global Work with global packages.
  help Display help information for Pub.
  publish Publish the current package to pub.dartlang.org.
  run Run an executable from a package.
  serve Run a local web development server.
  upgrade Upgrade the current package's dependencies to latest versions.
  uploader Manage uploaders for a package on pub.dartlang.org.
  version Print pub version.

---- Log transcript ----
FINE: Pub 1.8.0
IO : Spawning "cmd /c ver" in C:\Users\KuroTenshi\AppData\Roaming\dart\dart-sdk
\bin.
IO : Finished ver. Exit code 0.
    | stdout:
    | |
    | | Microsoft Windows [version 6.3.9600]
    | Nothing output on stderr.
ERR : Could not find a command named "'build'".
    |
    | Available commands:
    | build Apply transformers to build a package.
    | cache Work with the system cache.
    | deps Print package dependencies.
    | downgrade Downgrade the current package's dependencies to oldest versi
ons.
    | get Get the current package's dependencies.
    | global Work with global packages.
    | help Display help information for Pub.
    | publish Publish the current package to pub.dartlang.org.
    | run Run an executable from a package.
    | serve Run a local web development server.
    | upgrade Upgrade the current package's dependencies to latest version
s.
    | uploader Manage uploaders for a package on pub.dartlang.org.
    | version Print pub version.
FINE: Exception type: UsageException
FINE: e:\b\build\slave\dart-editor-win-stable\build\dart\sdk\lib_internal\pub_g
enerated\lib\src\command.dart 71 PubCommand.usageErrorWithCommands
    | e:\b\build\slave\dart-editor-win-stable\build\dart\sdk\lib_internal\pub_g
enerated\bin\pub.dart 223 invokeCommand.<fn>.continue0
    | e:\b\build\slave\dart-editor-win-stable\build\dart\sdk\lib_internal\pub_g
enerated\bin\pub.dart 239 invokeCommand.<fn>
    | dart:isolate
                                  _RawReceivePortImpl._handleMessage
    | ===== asynchronous gap ===========================
    | dart:async
                           _Completer.completeError
    | e:\b\build\slave\dart-editor-win-stable\build\dart\sdk\lib_internal\pub_g
enerated\bin\pub.dart 241 invokeCommand.<fn>
    | dart:isolate
                           _RawReceivePortImpl._handleMessage
    | ===== asynchronous gap ===========================
    | dart:async
                                 scheduleMicrotask
    | e:\b\build\slave\dart-editor-win-stable\build\dart\sdk\lib_internal\pub_g
enerated\bin\pub.dart 145 invokeCommand
    | e:\b\build\slave\dart-editor-win-stable\build\dart\sdk\lib_internal\pub_g
enerated\bin\pub.dart 98 runPub.<fn>
    | dart:async
                                 Future.Future.sync
    | e:\b\build\slave\dart-editor-win-stable\build\dart\sdk\lib_internal\pub_g
enerated\lib\src\utils.dart 98 captureErrors.<fn>
    | package:stack_trace/src/chain.dart 78
                                 Chain.capture
    | e:\b\build\slave\dart-editor-win-stable\build\dart\sdk\lib_internal\pub_g
enerated\lib\src\utils.dart 112 captureErrors
    | e:\b\build\slave\dart-editor-win-stable\build\dart\sdk\lib_internal\pub_g
enerated\bin\pub.dart 97 runPub
    | e:\b\build\slave\dart-editor-win-stable\build\dart\sdk\lib_internal\pub_g
enerated\bin\pub.dart 84 main.<fn>
    | dart:isolate
                                 _RawReceivePortImpl._handleMessage

---- End log transcript ----

@DartBot
Copy link
Author

DartBot commented Dec 6, 2014

This comment was originally written by @zoechi


Have you tried pub cache repair from the command line? Looks like there went something wrong when you updated to the new Polymer version.

@DartBot
Copy link
Author

DartBot commented Dec 7, 2014

This comment was originally written by kurotensh...@autistici.org


Yes It's the first thing I tested before sending the bug.

Strange I don't have mail notifications for answers.

@DartBot
Copy link
Author

DartBot commented Dec 8, 2014

This comment was originally written by @zoechi


see also http://stackoverflow.com/questions/27349870

@DartBot
Copy link
Author

DartBot commented Dec 8, 2014

This comment was originally written by @rbishop-bah


I see the bug when running in Dartium as well. See the attached image. The file (webcomponents.js) is definitely present and whole but is not being served.


Attachment:
webcomponents_bug.jpg (578.35 KB)

@DartBot
Copy link
Author

DartBot commented Dec 8, 2014

This comment was originally written by @rbishop-bah


Image


Attachment:
webcomponents_bug.jpg (561.36 KB)

@DartBot
Copy link
Author

DartBot commented Dec 8, 2014

This comment was originally written by @zoechi


Binding to private fields is currently not supported (_labelVisible should be labelVisible). I wouldn't expect these two problems to be related but I think it's worth a try whether you still get the web_components.js error after you fixed the private field.

@DartBot
Copy link
Author

DartBot commented Dec 8, 2014

This comment was originally written by @rbishop-bah


It's in paper_input_decorator.html... not my code.


Attachment:
pid.png (53.01 KB)

@DartBot
Copy link
Author

DartBot commented Dec 8, 2014

This comment was originally written by kurotensh...@autistici.org


I don't think the two errors are linked but the consequence is the same.
I just tried on my 2nd pc. Same thing.

I just tried this : pub upgrade :

--- 19:41:06 Running pub upgrade on G:\CVWebKit\cvwebkit\WebApp ... ---
Resolving dependencies...
  analyzer 0.22.4 (0.23.0-dev.13 available)
  args 0.12.1
  barback 0.15.2+2
  browser 0.10.0+2
  code_transformers 0.2.3+1
  collection 1.1.0
  csslib 0.11.0+2
  dart_config 0.5.0
  dnd 0.1.4
  html5lib 0.12.0
  logging 0.9.2
  matcher 0.11.2
  observe 0.12.2
  path 1.3.0
  polymer 0.15.2
  polymer_expressions 0.13.0+1
  pool 1.0.1
  sass 0.4.2
  smoke 0.2.1+1
  source_maps 0.10.0+1
  source_span 1.0.2
  stack_trace 1.1.1
  string_scanner 0.1.2
  template_binding 0.14.0
  unittest 0.11.1+1
  utf 0.9.0+1
  watcher 0.9.3
  web_components 0.10.0
  yaml 2.1.0
No dependencies changed.
Precompiling dependencies...
Loading source assets...
Loading polymer/src/build/mirrors_remover, code_transformers/src/delete_file, observe and smoke/src/default_transformer transformers...
Could not find asset web_components|lib/webcomponents.js.
e:\b\build\slave\dart-editor-win-stable\build\dart\sdk\lib_internal\pub_generated\lib\src\barback\pub_package_provider.dart 87 PubPackageProvider._assertExists
e:\b\build\slave\dart-editor-win-stable\build\dart\sdk\lib_internal\pub_generated\lib\src\barback\pub_package_provider.dart 41 getAsset.<fn>.join0.join1
e:\b\build\slave\dart-editor-win-stable\build\dart\sdk\lib_internal\pub_generated\lib\src\barback\pub_package_provider.dart 52 getAsset.<fn>.join0
e:\b\build\slave\dart-editor-win-stable\build\dart\sdk\lib_internal\pub_generated\lib\src\barback\pub_package_provider.dart 76 getAsset.<fn>
dart:isolate

pub repair cache

...
Downloading yaml 2.0.0...
Downloading yaml 2.0.1+1...
Downloading yaml 2.1.0...
Failed to repair analyzer 0.22.4. Error:
TimeoutException: Timed out after 30.0s while downloading https://pub.dartlang.o
rg/packages/analyzer/versions/0.22.4.tar.gz.
This is likely a transient error. Please try again later.
Failed to repair analyzer 0.22.0. Error:
TimeoutException: Timed out after 30.0s while downloading https://pub.dartlang.o
rg/packages/analyzer/versions/0.22.0.tar.gz.
This is likely a transient error. Please try again later.
Failed to repair analyzer 0.22.3. Error:
TimeoutException: Timed out after 30.0s while downloading https://pub.dartlang.o
rg/packages/analyzer/versions/0.22.3.tar.gz.
This is likely a transient error. Please try again later.
Failed to repair polymer 0.15.0. Error:
TimeoutException: Timed out after 30.0s while downloading https://pub.dartlang.o
rg/packages/polymer/versions/0.15.0.tar.gz.
This is likely a transient error. Please try again later.
Failed to repair polymer 0.15.0+1. Error:
TimeoutException: Timed out after 30.0s while downloading https://pub.dartlang.o
rg/packages/polymer/versions/0.15.0+1.tar.gz.
This is likely a transient error. Please try again later.
Failed to repair polymer 0.15.1+2. Error:
TimeoutException: Timed out after 30.0s while downloading https://pub.dartlang.o
rg/packages/polymer/versions/0.15.1+2.tar.gz.
This is likely a transient error. Please try again later.
Failed to repair polymer 0.15.1+5. Error:
TimeoutException: Timed out after 30.0s while downloading https://pub.dartlang.o
rg/packages/polymer/versions/0.15.1+5.tar.gz.
This is likely a transient error. Please try again later.
Failed to repair polymer 0.15.1+3. Error:
TimeoutException: Timed out after 30.0s while downloading https://pub.dartlang.o
rg/packages/polymer/versions/0.15.1+3.tar.gz.
This is likely a transient error. Please try again later.
Reinstalled 74 packages.
Failed to reinstall 8 packages.

@DartBot
Copy link
Author

DartBot commented Dec 8, 2014

This comment was originally written by @Fox32


Deleting the .pub folder in my project root folder and running "pub get" resolved the problem with missing files that are there for me. Seems like thing get cached there?

I created Issue #21803 for the _labelVisible problem.

@DartBot
Copy link
Author

DartBot commented Dec 8, 2014

This comment was originally written by kurotensh...@autistici.org


Problem solved too for me by deleting .pub folder and then re-save pubspec.yaml (pub get failed ?)

@DartBot
Copy link
Author

DartBot commented Dec 8, 2014

This comment was originally written by kurotensh...@autistici.org


Can this be regarded as a defect ? I think you could expand the range of "pub cache repair" taking in account this folder.

@DartBot
Copy link
Author

DartBot commented Dec 8, 2014

This comment was originally written by @jonaskello


Did pub upgrade (changed constraints to higher version for for paper_elements, and core_elements). Got same problem. Deleting .pub folder in project root and doing pub get I got passed this this error. Thanks!

(Now when I run the app nothing works but that is probably a separate Polymer issue...)

@DartBot
Copy link
Author

DartBot commented Dec 8, 2014

This comment was originally written by @Fox32


I wonder why "pub upgrade" doesn't invalidate the contents of the ".pub" folder. That seems to be the inital problem

@anders-sandholm
Copy link
Contributor

This does not seem like a reasonable user experience to me.

Let's figure out a way to solve this.


Added this to the 1.9 milestone.
Removed Priority-Unassigned label.
Added Priority-High, Area-Pub, Triaged labels.

@anders-sandholm
Copy link
Contributor

Changed the title to: ""pub cache repair" should include fixing .pub/ ?".

@nex3
Copy link
Member

nex3 commented Dec 9, 2014

@sandholm: Changing the behavior of "pub cache repair" might be valuable for alleviating the symptoms of this problem, but this bug should track the root cause.

Can someone provide a way to reproduce the original error from scratch and/or a pub log without the single quote error above?


Added NeedsInfo label.
Changed the title to: "Could not find asset web_components|lib/webcomponents.js (probably dart2js)".

@DartBot
Copy link
Author

DartBot commented Dec 9, 2014

This comment was originally written by @Fox32


Here is a way to reproduce it (I hope so):

  1. Start with a pubspec.yaml like this:

dependencies:
  polymer: any
  paper_elements: <0.5.0
  #paper_elements: any
transformers:

  • polymer
  1. Run "pub get"
  2. Change paper_elements version constraint to any
  3. Run "pub upgrade"

See the attached log for the trace output of "pub upgrade". I can run it as often as I want, I always get the same result.

The problem is resolved as soon I delete the ".pub" folder and run "pub upgrade" again.


Attachment:
log.txt (63.37 KB)

@DartBot
Copy link
Author

DartBot commented Dec 9, 2014

This comment was originally written by @zoechi


I updated to the most recent Dart bleeding_edge today and then got the error (first time for me) when I run pub upgrade. Maybe this helps.

@nex3
Copy link
Member

nex3 commented Dec 9, 2014

Thanks, that reproduces it for me.


Set owner to @nex3.
Added Started label.

@DartBot DartBot added Type-Defect P1 A high priority bug; for example, a single project is unusable or has many test failures labels Dec 9, 2014
@DartBot DartBot added this to the 1.9 milestone Dec 9, 2014
@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

This issue has been moved to dart-lang/pub#1202.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 A high priority bug; for example, a single project is unusable or has many test failures
Projects
None yet
Development

No branches or pull requests

3 participants