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
Comments
This comment was originally written by @zoechi Have you tried |
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. |
This comment was originally written by @zoechi |
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: |
This comment was originally written by @rbishop-bah Image Attachment: |
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 |
This comment was originally written by @rbishop-bah It's in paper_input_decorator.html... not my code. Attachment: |
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 this : pub upgrade : --- 19:41:06 Running pub upgrade on G:\CVWebKit\cvwebkit\WebApp ... --- pub repair cache ... |
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 ?) |
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. |
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...) |
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 |
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. |
Changed the title to: ""pub cache repair" should include fixing .pub/ ?". |
@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. |
This comment was originally written by @Fox32 Here is a way to reproduce it (I hope so):
dependencies:
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: |
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. |
This issue has been moved to dart-lang/pub#1202. |
This issue was originally filed by kurotensh...@autistici.org
What steps will reproduce the problem?
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 ----
The text was updated successfully, but these errors were encountered: