Error using library which uses DartSON - dart

I built a simple Dart library to wrap the Mastodon (social platform) API - (source at https://github.com/mykdavies/Mastodon).
I can use the library locally in another project by adding the appropriate dependency to its pubspec.yaml:
dependencies:
...
mastodon:
path: /Users/mike/Documents/Development/dart/mastodon
and everything works fine.
I have published it to pub (https://pub.dartlang.org/packages/mastodon), but when I change my pubspec to use this version:
dependencies:
...
mastodon:
^0.1.0
I get a problem with the Dartson transformers. Can anyone help me understand what's going wrong?
Thanks, Michael
Full pubspec:
name: rssToot
description: A sample command-line application.
version: 0.0.1
environment:
sdk: '>=1.20.1 <2.0.0'
dependencies:
dart_feed: "^0.0.4"
oauth2: ^1.0.2
mime: ^0.9.2
mastodon:
^0.1.0
dev_dependencies:
test: ^0.12.0
Full stack-trace:
Resolving dependencies...
> mastodon 0.1.0 (was 0.0.5)
Downloading mastodon 0.1.0...
Changed 1 dependency!
Precompiling dependencies...
Loading source assets...
Loading dartson transformers...
Transform Dartson on mastodon|lib/src/mastodon_base.dart threw error: The getter 'name' was called on null.
Receiver: null
Tried calling: name
dart:core-patch/object_patch.dart 43 Object._noSuchMethod
dart:core-patch/object_patch.dart 47 Object.noSuchMethod
package:dartson/transformer.dart 218 FileCompiler.buildEntityMap.<fn>
dart:collection/list.dart 63 Object&ListMixin.forEach
package:dartson/transformer.dart 213 FileCompiler.buildEntityMap
package:dartson/transformer.dart 132 FileCompiler._prepareEntities.<fn>
dart:core-patch/growable_array.dart 256 List.forEach
package:dartson/transformer.dart 131 FileCompiler._prepareEntities
package:dartson/transformer.dart 104 FileCompiler.build
package:dartson/transformer.dart 55 DartsonTransformer.apply.<fn>
dart:async/zone.dart 1371 _RootZone.runUnary
dart:async/future_impl.dart 129 _FutureListener.handleValue
dart:async/future_impl.dart 631 _Future._propagateToListeners.handleValueCallback
dart:async/future_impl.dart 660 _Future._propagateToListeners
dart:async/future_impl.dart 474 _Future._completeWithValue
dart:async/future_impl.dart 522 _Future._asyncComplete.<fn>
dart:async/schedule_microtask.dart 41 _microtaskLoop
dart:async/schedule_microtask.dart 50 _startMicrotaskLoop
dart:isolate-patch/isolate_patch.dart 99 _runPendingImmediateCallback
dart:isolate-patch/isolate_patch.dart 152 _RawReceivePortImpl._handleMessage
dart:core Object.noSuchMethod
package:dartson/transformer.dart 218 FileCompiler.buildEntityMap.<fn>
dart:collection Object&ListMixin.forEach
package:dartson/transformer.dart 213 FileCompiler.buildEntityMap
package:dartson/transformer.dart 132 FileCompiler._prepareEntities.<fn>
dart:core List.forEach
package:dartson/transformer.dart 131 FileCompiler._prepareEntities
package:dartson/transformer.dart 104 FileCompiler.build
package:dartson/transformer.dart 55 DartsonTransformer.apply.<fn>
package:pub/src/entrypoint.dart 269 Entrypoint._precompileDependencies.<fn>
===== asynchronous gap ===========================
package:pub/src/log.dart 408 progress
package:pub/src/entrypoint.dart 254 Entrypoint._precompileDependencies
===== asynchronous gap ===========================
package:pub/src/entrypoint.dart 226 Entrypoint.acquireDependencies
===== asynchronous gap ===========================
package:pub/src/command/get.dart 38 GetCommand.run
package:args/command_runner.dart 194 CommandRunner.runCommand
===== asynchronous gap ===========================
package:pub/src/command_runner.dart 168 PubCommandRunner.runCommand.<fn>
dart:async Future.Future.sync
package:pub/src/utils.dart 99 captureErrors.<fn>
dart:async runZoned
package:pub/src/utils.dart 118 captureErrors
package:pub/src/command_runner.dart 168 PubCommandRunner.runCommand
===== asynchronous gap ===========================
package:pub/src/command_runner.dart 117 PubCommandRunner.run
===== asynchronous gap ===========================
/b/build/slave/dart-sdk-mac-stable/build/sdk/third_party/pkg/pub/bin/pub.dart 8 main
Process finished with exit code 0

Try to do a clean checkout of your git repository locally, and use the initialization there. It may be possible that for some reason the dartson transformer didn't pick up a change from 0.0.5 -> 0.1.0, used some cached value, and didn't complain while you were developing it.

Related

How to get the load address of an ios app running on simulator

Without the load address it is not possible to run atos on a binary correctly. I'm debugging an iOS app inside (lldb) and the app has reported a diagnostic message (thread sanitizer report) which has list of addresses like this:
1 ==================
2 ^[[1m^[[31mWARNING: ThreadSanitizer: data race (pid=90559)
3 ^[[1m^[[0m^[[1m^[[34m Write of size 4 at 0x000113050868 by thread T35:
4 ^[[1m^[[0m #0 <null> <null>:2 (MyApp):x86_64+0x100d5963b)
5 #1 <null> <null>:2 (MyApp):x86_64+0x100d5b09b)
6 #2 <null> <null>:2 (MyApp):x86_64+0x100d59c3b)
7 #3 <null> <null>:2 (MyApp):x86_64+0x100d59f1b)
8 #4 <null> <null>:2 (MyApp):x86_64+0x10806a8b3)
9 #5 <null> <null>:2 (MyApp):x86_64+0x10725557f)
10 #6 <null> <null>:2 (MyApp):x86_64+0x106c406e3)
11 #7 <null> <null>:2 (MyApp):x86_64+0x1081cfe78)
12 #8 <null> <null>:2 (MyApp):x86_64+0x107d076b1)
13 #9 <null> <null>:2 (MyApp):x86_64+0x1081d1f1d)
14 #10 <null> <null>:2 (MyApp):x86_64+0x1081d2206)
15 #11 <null> <null>:2 (MyApp):x86_64+0x107d0735b)
16 #12 <null> <null>:2 (MyApp):x86_64+0x107d05dc9)
17 #13 <null> <null>:2 (MyApp):x86_64+0x108375009)
18 #14 __tsan::invoke_and_release_block(void*) <null>:2 (libclang_rt.tsan_iossim_dynamic.dylib:x86_64+0x7428b)
19 #15 _dispatch_client_callout <null>:2 (libdispatch.dylib:x86_64+0x4c0b)
20
21 ^[[1m^[[34m Previous write of size 4 at 0x000113050868 by thread T6:
22 ^[[1m^[[0m #0 <null> <null>:2 (MyApp):x86_64+0x100d5963b)
23 #1 <null> <null>:2 (MyApp):x86_64+0x100d5b09b)
24 #2 <null> <null>:2 (MyApp):x86_64+0x100d59c3b)
25 #3 <null> <null>:2 (MyApp):x86_64+0x100d59f1b)
26 #4 <null> <null>:2 (MyApp):x86_64+0x10806a8b3)
27 #5 <null> <null>:2 (MyApp):x86_64+0x10725557f)
28 #6 <null> <null>:2 (MyApp):x86_64+0x107255c6f)
29 #7 <null> <null>:2 (MyApp):x86_64+0x1072520ca)
30 #8 <null> <null>:2 (MyApp):x86_64+0x10727f576)
31 #9 <null> <null>:2 (MyApp):x86_64+0x1072c8ded)
32 #10 <null> <null>:2 (MyApp):x86_64+0x1072c70e3)
33 #11 <null> <null>:2 (MyApp):x86_64+0x1072c90b7)
34 #12 <null> <null>:2 (MyApp):x86_64+0x1072b8b4f)
35 #13 <null> <null>:2 (MyApp):x86_64+0x1072b907a)
36 #14 <null> <null>:2 (MyApp):x86_64+0x108375009)
37 #15 __tsan::invoke_and_release_block(void*) <null>:2 (libclang_rt.tsan_iossim_dynamic.dylib:x86_64+0x7428b)
38 #16 _dispatch_client_callout <null>:2 (libdispatch.dylib:x86_64+0x4c0b)
39
40 ^[[1m^[[32m Location is global '<null>' at 0x000000000000 (MyApp)+0x00010c9d2868)
41
42 ^[[1m^[[0m^[[1m^[[36m Thread T35 (tid=65692125, running) is a GCD worker thread
43
44 ^[[1m^[[0m^[[1m^[[36m Thread T6 (tid=65688838, running) is a GCD worker thread
45
46 ^[[1m^[[0mSUMMARY: ThreadSanitizer: data race (MyApp):x86_64+0x100d5963b)
I can do image lookup -va 0x100d5963b for example, from within the lldb session. I think that is too tedious. Is there a way to get the load address such that i can run atos on all the addresses by putting this report in a file?
lldb has
target module lookup -a flag that shows the name of the module and it's load address.
e.g.,
Address: MyApp[0x0000000109b99868] (MyApp.__TEXT.__cstring + 75576)
Summary: "foo"
There is another flag to list all the modules and their load addresses:
target module list
Just beware that it will print all the modules with their load addresses, and you may have to grep for the module you are looking for.

terminating with uncaught exception of type NSException caused by firebase

I facing a problem when running the app on IOS only the app crash from beginning .The App is working on the Android , but not on IOS
I face some problem when running the app with two plugins smart look and flutter freshchat , but I can handle with these error by deleting pod file and make flutter freshchat folder as public
I looking for many solution but nothing solve the problem
I Used Xcode 11.6
Error
2020-08-04 09:28:31.629532+0300 Runner[55327:357948] 6.29.0 - [Firebase/Core][I-COR000012] Could not locate configuration file: 'GoogleService-Info.plist'.
2020-08-04 09:28:31.673649+0300 Runner[55327:357998] flutter: Observatory listening on http://127.0.0.1:61149/gGQPi_bDYqA=/
2020-08-04 09:28:31.825074+0300 Runner[55327:357355] *** Terminating app due to uncaught exception 'com.firebase.core', reason: '`[FIRApp configure];` (`FirebaseApp.configure()` in Swift) could not find a valid GoogleService-Info.plist in your project. Please download one from https://console.firebase.google.com/.'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff23e3de6e __exceptionPreprocess + 350
1 libobjc.A.dylib 0x00007fff512539b2 objc_exception_throw + 48
2 CoreFoundation 0x00007fff23e3dcac +[NSException raise:format:] + 188
3 Runner 0x00000001021a5e92 +[FIRApp configure] + 130
4 Runner 0x000000010201439b $s6Runner11AppDelegateC11application_29didFinishLaunchingWithOptionsSbSo13UIApplicationC_SDySo0j6LaunchI3KeyaypGSgtF + 251
5 Runner 0x0000000102014723 $s6Runner11AppDelegateC11application_29didFinishLaunchingWithOptionsSbSo13UIApplicationC_SDySo0j6LaunchI3KeyaypGSgtFTo + 211
6 UIKitCore 0x00007fff4931c614 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 232
7 UIKitCore 0x00007fff4931dfb3 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 3985
8 UIKitCore 0x00007fff49323b75 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1226
9 UIKitCore 0x00007fff48a2c16d -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 122
10 UIKitCore 0x00007fff48f37ba1 _UIScenePerformActionsWithLifecycleActionMask + 83
11 UIKitCore 0x00007fff48a2cc7f __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 198
12 UIKitCore 0x00007fff48a2c68e -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 296
13 UIKitCore 0x00007fff48a2caac -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 818
14 UIKitCore 0x00007fff48a2c341 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 345
15 UIKitCore 0x00007fff48a30932 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke_2 + 178
16 UIKitCore 0x00007fff48e4dc8d +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] + 852
17 UIKitCore 0x00007fff48f562fe _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 240
18 UIKitCore 0x00007fff48a3064d __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 153
19 UIKitCore 0x00007fff48f56201 _UISceneSettingsDiffActionPerformActionsWithDelayForTransitionContext + 84
20 UIKitCore 0x00007fff48a304bb -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 381
21 UIKitCore 0x00007fff48884eb8 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 657
22 UIKitCore 0x00007fff48883a77 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 253
23 UIKitCore 0x00007fff48884be2 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 210
24 UIKitCore 0x00007fff493220bd -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 512
25 UIKitCore 0x00007fff48e747bc -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 361
26 FrontBoardServices 0x00007fff36d37d2e -[FBSSceneImpl _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 419
27 FrontBoardServices 0x00007fff36d5ddc1 __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke.154 + 102
28 FrontBoardServices 0x00007fff36d42757 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 220
29 FrontBoardServices 0x00007fff36d5da52 __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke + 355
30 libdispatch.dylib 0x000000010744ae8e _dispatch_client_callout + 8
31 libdispatch.dylib 0x000000010744dda2 _dispatch_block_invoke_direct + 300
32 FrontBoardServices 0x00007fff36d836e9 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 30
33 FrontBoardServices 0x00007fff36d833d7 -[FBSSerialQueue _queue_performNextIfPossible] + 441
34 FrontBoardServices 0x00007fff36d838e6 -[FBSSerialQueue _performNextFromRunLoopSource] + 22
35 CoreFoundation 0x00007fff23da1c91 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
36 CoreFoundation 0x00007fff23da1bbc __CFRunLoopDoSource0 + 76
37 CoreFoundation 0x00007fff23da1394 __CFRunLoopDoSources0 + 180
38 CoreFoundation 0x00007fff23d9bf8e __CFRunLoopRun + 974
39 CoreFoundation 0x00007fff23d9b8a4 CFRunLoopRunSpecific + 404
40 GraphicsServices 0x00007fff38c39bbe GSEventRunModal + 139
41 UIKitCore 0x00007fff49325968 UIApplicationMain + 1605
42 Runner 0x00000001020148cb main + 75
43 libdyld.dylib 0x00007fff520ce1fd start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
the depancies that I used on the app :
scoped_model: ^1.0.1
http: ^0.12.2
shared_preferences: ^0.5.6+3
intl: ^0.16.0
sliding_up_panel: ^0.3.4
carousel_slider: ^2.1.0
flutter_calendar_carousel: any
keyboard_avoider: ^0.1.2
mobile_popup: ^1.2.0
easy_listview: ^0.1.3
sqflite: ^1.2.2+1
crclib: ^1.0.1
firebase_core: ^0.4.5
firebase_auth: ^0.16.1
cloud_firestore: ^0.13.7
flutter_html: ^0.11.1
flutter_material_color_picker: ^1.0.3
auto_size_text: ^2.1.0
# loadmore: ^1.0.4
sticky_headers: "^0.1.8"
webview_flutter: ^0.3.19+9
connectivity: ^0.4.9
expandable: ^4.1.3
path_provider: ^1.6.11
url_launcher: ^5.2.7
# flutter_typeahead: ^1.8.0
find_dropdown: ^0.2.0
geolocator: ^5.1.4+2
google_maps_flutter: ^0.5.21+8
location: ^2.3.5
permission_handler: ^5.0.1+1
loading_indicator: ^1.1.0
# localstorage: ^2.0.0
photo_view: ^0.9.0
maps_launcher: ^1.0.1
flutter_offline: "^0.3.0"
# fluttertoast: ^7.0.1+1
google_maps_webservice: ^0.0.16
flutter_google_places: ^0.2.3
flutter_datetime_picker: ^1.3.1
flutter_date_pickers: ^0.0.6
circular_bottom_navigation: ^1.0.1
progress_dialog: ^1.2.0
flutter_fluid_slider: ^1.0.2
lazy_load_scrollview: ^1.1.0
holding_gesture: ^0.0.3
firebase_remote_config: ^0.3.1+1
cached_network_image: ^2.0.0
rxdart: ^0.23.0
package_info: ^0.4.0+13
firebase_analytics: ^5.0.16
dio: ^3.0.9
duration: ^2.0.11
flutter_freshchat: ^1.3.2
firebase_messaging: ^6.0.16
firebase_dynamic_links: ^0.5.3
share: ^0.6.4+1
firebase_crashlytics: ^0.1.4+1
smartlook: ^1.0.1
search_map_place: ^0.1.1
dio_http_cache: ^0.2.6
flutter_staggered_animations: ^0.1.2
shimmer: ^1.1.1
flutter_progress_button: ^1.0.0
flutter_inappwebview: ^4.0.0+4
device_info: ^0.4.2+4
And the AppDelgate.swift that showed the error
import UIKit
import Flutter
import GoogleMaps
import Firebase
#UIApplicationMain
#objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GMSServices.provideAPIKey("AIzaSyBdi_rTaOCYcqtx1xCdChTg5-pol9EQHfo")
FirebaseApp.configure()
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
}
Flutter Doctor Result
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.17.5, on Mac OS X 10.15.4 19E287, locale en-BH)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.47.3)
[✓] Connected device (2 available)
• No issues found!
The error quite clear though:
reason: '`[FIRApp configure];` (`FirebaseApp.configure()` in Swift)
could not find a valid GoogleService-Info.plist in your project.
Please download one from https://console.firebase.google.com/.'
You don't have the Google .plist file in your project.
---> You need to get the GoogleService-Info.plist file and add it to your project.
You are missing a GoogleService-Info.plist, you said you do have it but if it is named anything other than 'GoogleService-Info.plist' the app will crash, like what you get. e.g Your 'GoogleService-Info.plist' might be named 'GoogleService-Info(1).plist' because you might have 2 files with that name or maybe you accidentally deleted your GoogleService-Info.plist in the finder. If you moved your 'GoogleService-Info.plist' to a different folder(like from the download folder to the desktop), that would cause an issue too.
If none of these work then there might be a bug with the app or some other thing related to these.

"Generation failed" when generating docs with dartdoc

I am trying to generate the documentation for a Flutter project I'm working on.
I'm using dartdoc in the folder of my project.
It's the dartdoc of the Dart SDK installed with Chocolatey (so it's not the Flutter one), which I saved in my system PATH.
dart --version gives Dart VM version: 2.0.0-dev.53.0 (Thu May 3 12:35:47 2018 +0200) on "windows_x64".
I get exactly the same error using Flutter's Dart's dartdoc, so running path_to_flutter\flutter\bin\cache\dart-sdk\bin\dartdoc.bat' in my project's directory.
My flutter --version is:
Flutter 0.3.2 • channel beta • https://github.com/flutter/flutter.git
Framework • revision 44b7e7d3f4 (3 weeks ago) • 2018-04-20 01:02:44 -0700
Engine • revision 09d05a3891
Tools • Dart 2.0.0-dev.48.0.flutter-fe606f890b
The output of dartdoc is, in both cases, after the parsing of all the project's files:
Generating documentation for 'pindery' into C:\Users\Edoardo Debenedetti\Documents\Tongji\Software Engineering\Progetto\pindery\doc\api\
parsing lib\catalogue\catalogue.dart...
parsing lib\catalogue\catalogue_element.dart...
[...]
Initialized dartdoc with 775 libraries in 61.7 seconds
documenting pindery
Generation failed: Bad state: Could not find "packageGraph.version" in given context
package:mustache4dart/mustache_context.dart 88 _MustacheContext._getInThisOrParent
package:mustache4dart/mustache_context.dart 78 _MustacheContext.field
package:mustache4dart/src/tokens.dart 169 _ExpressionToken.apply
package:mustache4dart/src/tokens.dart 247 _EscapeHtmlToken.apply
package:mustache4dart/src/tokens.dart 40 Token.call
package:mustache4dart/src/tmpl.dart 101 _Template._write
package:mustache4dart/src/tmpl.dart 76 _Template.call
package:mustache4dart/src/mustache.dart 11 render
package:mustache4dart/src/tokens.dart 211 _PartialToken.apply
package:mustache4dart/src/tokens.dart 40 Token.call
package:mustache4dart/src/tmpl.dart 101 _Template._write
package:mustache4dart/src/tmpl.dart 76 _Template.call
package:dartdoc/src/html/html_generator_instance.dart 287 HtmlGeneratorInstance._build
package:dartdoc/src/html/html_generator_instance.dart 171 HtmlGeneratorInstance.generatePackage
package:dartdoc/src/html/html_generator_instance.dart 90 HtmlGeneratorInstance._generateDocs
package:dartdoc/src/html/html_generator_instance.dart 36 HtmlGeneratorInstance.generate
===== asynchronous gap ===========================
dart:async _Completer.completeError
package:dartdoc/src/html/html_generator_instance.dart HtmlGeneratorInstance.generate
===== asynchronous gap ===========================
dart:async new Future.microtask
package:dartdoc/src/html/html_generator_instance.dart 34 HtmlGeneratorInstance.generate
package:dartdoc/src/html/html_generator.dart 107 HtmlGenerator.generate
===== asynchronous gap ===========================
dart:async new Future.microtask
package:dartdoc/src/html/html_generator.dart 73 HtmlGenerator.generate
package:dartdoc/dartdoc.dart 144 Dartdoc.generateDocs
===== asynchronous gap ===========================
dart:async _asyncThenWrapperHelper
package:dartdoc/dartdoc.dart 129 Dartdoc.generateDocs
E:\b\build\slave\dart-sdk-windows-dev\build\sdk\third_party\pkg\dartdoc\bin\dartdoc.dart 77 main.<fn>.<fn>
===== asynchronous gap ===========================
dart:async new Future.microtask
E:\b\build\slave\dart-sdk-windows-dev\build\sdk\third_party\pkg\dartdoc\bin\dartdoc.dart 76 main.<fn>.<fn>
dart:async runZoned
E:\b\build\slave\dart-sdk-windows-dev\build\sdk\third_party\pkg\dartdoc\bin\dartdoc.dart 76 main.<fn>
===== asynchronous gap ===========================
dart:async new Future.microtask
E:\b\build\slave\dart-sdk-windows-dev\build\sdk\third_party\pkg\dartdoc\bin\dartdoc.dart 75 main.<fn>
package:stack_trace Chain.capture
E:\b\build\slave\dart-sdk-windows-dev\build\sdk\third_party\pkg\dartdoc\bin\dartdoc.dart 75 main
Is it a problem of my project? How can I solve it?
Thank you very much.
Actually it is a bug, whose workaround is putting a version in the project's pubspec.yaml file.
E.g.
name: pindery
description: An amazing party app
version: 0.0.1-alpha0
[...]
In this way the documentation is succesfully generated.
You can see the issue on dartdoc's GitHub issues tracking page.

Unable to resolve asset ID for "dart:core"

I am getting a Unable to resolve asset ID for "dart:core" error for every SDK I have tried between 1.8 and 1.13, and for 3 different types of text editors with different dart plugins. Is there any way to fix the following:
$ /c/tools/dart-sdk-1-9-3/bin/pub.bat serve
find: ‘> bin [’: No such file or directory
Loading source assets...
Loading angular transformers...
Serving ProjectName web on http://localhost:8080
[Error from InjectorGenerator on ProjectName|web/main.dart]:
Unable to resolve asset ID for "dart:core"
Build error:
Transform InjectorGenerator on ProjectName|web/main.dart threw error: <rethrow>
Caused by Could not resolve dart:core
AnalysisTask._safelyPerform (package:analyzer/src/generated/engine.dart:6762:7)
AnalysisTask.perform (package:analyzer/src/generated/engine.dart:6727:21)
AnalysisContextImpl._cacheDartResolutionData (package:analyzer/src/generated/engine.dart:2414:86)
AnalysisContextImpl._getDartResolutionData (package:analyzer/src/generated/engine.dart:3046:41)
AnalysisContextImpl._getDartResolutionData2 (package:analyzer/src/generated/engine.dart:3077:36)
AnalysisContextImpl.computeLibraryElement (package:analyzer/src/generated/engine.dart:1192:81)
ResolverImpl._performResolve.<anonymous closure>.<anonymous closure> (package:code_transformers/src/resolver_impl.dart:157:46)
MappedListIterable.elementAt (dart:_internal/iterable.dart:413)
ListIterable.toList (dart:_internal/iterable.dart:219)
ResolverImpl._performResolve.<anonymous closure> (package:code_transformers/src/resolver_impl.dart:158:16)
_RootZone.runUnary (dart:async/zone.dart:1155)
_Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:484)
_Future._propagateToListeners (dart:async/future_impl.dart:567)
_Future._completeWithValue (dart:async/future_impl.dart:358)
_Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:412)
_asyncRunCallbackLoop (dart:async/schedule_microtask.dart:41)
_asyncRunCallback (dart:async/schedule_microtask.dart:48)
_runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:96)
_RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:143)
package:analyzer/src/generated/engine.dart 2115:11 AnalysisContextImpl.recordResolveDartLibraryTaskResults
package:analyzer/src/generated/engine.dart 5304:133 AnalysisContextImpl_AnalysisTaskResultRecorder.visitResolveDartLibraryTask
package:analyzer/src/generated/engine.dart 14327:77 ResolveDartLibraryTask.accept
package:analyzer/src/generated/engine.dart 6732:18 AnalysisTask.perform
package:analyzer/src/generated/engine.dart 2414:86 AnalysisContextImpl._cacheDartResolutionData
package:analyzer/src/generated/engine.dart 3046:41 AnalysisContextImpl._getDartResolutionData
package:analyzer/src/generated/engine.dart 3077:36 AnalysisContextImpl._getDartResolutionData2
package:analyzer/src/generated/engine.dart 1192:81 AnalysisContextImpl.computeLibraryElement
package:code_transformers/src/resolver_impl.dart 157:46 ResolverImpl._performResolve.<fn>.<fn>
dart:_internal/iterable.dart 413 MappedListIterable.elementAt
dart:_internal/iterable.dart 219 ListIterable.toList
package:code_transformers/src/resolver_impl.dart 158:16 ResolverImpl._performResolve.<fn>
dart:async/zone.dart 1155 _RootZone.runUnary
dart:async/future_impl.dart 484 _Future._propagateToListeners.handleValueCallback
dart:async/future_impl.dart 567 _Future._propagateToListeners
dart:async/future_impl.dart 358 _Future._completeWithValue
dart:async/future_impl.dart 412 _Future._asyncComplete.<fn>
dart:async/schedule_microtask.dart 41 _asyncRunCallbackLoop
dart:async/schedule_microtask.dart 48 _asyncRunCallback
dart:isolate-patch/isolate_patch.dart 96 _runPendingImmediateCallback
dart:isolate-patch/isolate_patch.dart 143 _RawReceivePortImpl._handleMessage
package:analyzer/src/generated/engine.dart 2115:11 AnalysisContextImpl.recordResolveDartLibraryTaskResults
package:analyzer/src/generated/engine.dart 5304:133 AnalysisContextImpl_AnalysisTaskResultRecorder.visitResolveDartLibraryTask
package:analyzer/src/generated/engine.dart 14327:77 ResolveDartLibraryTask.accept
package:analyzer/src/generated/engine.dart 6732:18 AnalysisTask.perform
package:analyzer/src/generated/engine.dart 2414:86 AnalysisContextImpl._cacheDartResolutionData
package:analyzer/src/generated/engine.dart 3046:41 AnalysisContextImpl._getDartResolutionData
package:analyzer/src/generated/engine.dart 3077:36 AnalysisContextImpl._getDartResolutionData2
package:analyzer/src/generated/engine.dart 1192:81 AnalysisContextImpl.computeLibraryElement
package:code_transformers/src/resolver_impl.dart 157:46 ResolverImpl._performResolve.<fn>.<fn>
dart:_internal ListIterable.toList
package:code_transformers/src/resolver_impl.dart 158:16 ResolverImpl._performResolve.<fn>
dart:isolate _RawReceivePortImpl._handleMessage
Build completed with 2 errors.
Update:
content of pubspec.yaml file is:
name: ProjectName
version: 0.1.1
description: "desc..."
environment:
sdk: '>=1.0.0 <2.0.0'
dependencies:
angular: 1.1.0
browser: any
crypto: any
# polymer_highcharts: any
transformers:
- angular
The OS is Windows 10. It works on Windows 8 and Ubuntu 14.04 for Dart SDK's 1.9.1 -> 1.12.2, but not with 1.13.1 (similar issue to above)
It's a known issue with the code_transformer package. See Dart SDK issue 25009. angular.dart issue 1743

Getting build error from Dart, NoSuchMethodError: incorrect number of arguments passed to method named '_greaterThanFromInteger#0x36924d72'

My dart application runs normally when I run it from the debugger, now I have decided to build to get the Javascript built, I get this strange build error and I have no idea.
I have not built for a long time as I was just running from the debugger. How can I try to find out what is causing the error? I can try to comment out code I guess until the error goes away, but that's going to be tedious.
Here is a pastebin of entire build.
Build error:
Transform InlineCodeExtractor on minuteheet|web/minuteheet.html threw error: Closure call with mismatched arguments: function '_greaterThanFromInteger#0x36924d72'
NoSuchMethodError: incorrect number of arguments passed to method named '_greaterThanFromInteger#0x36924d72'
Receiver: Closure: () => int from Function 'length':.
Tried calling: _greaterThanFromInteger#0x36924d72(0)
Found: _greaterThanFromInteger#0x36924d72()
dart:core-patch/object_patch.dart 45 Object.noSuchMethod
dart:core-patch/integers.dart 75 int.>
dart:core-patch/integers.dart 78 int.>=
http://127.0.0.1:50622/packages/analyzer/src/generated/scanner.dart 496:25 CharSequenceReader.advance
http://127.0.0.1:50622/packages/analyzer/src/generated/scanner.dart 904:33 Scanner.tokenize
http://127.0.0.1:50622/packages/analyzer/src/generated/scanner.dart 912:7 Scanner.tokenize
http://127.0.0.1:50622/packages/analyzer/src/generated/scanner.dart 912:7 Scanner.tokenize
http://127.0.0.1:50622/packages/polymer/src/build/code_extractor.dart 78:31 _hasLibraryDirective
http://127.0.0.1:50622/packages/polymer/src/build/code_extractor.dart 58:34 InlineCodeExtractor.apply.<fn>
dart:async/zone.dart 730 _rootRunUnary
dart:async/zone.dart 864 _RootZone.runUnary
dart:async/future_impl.dart 488 _Future._propagateToListeners.handleValueCallback
dart:async/future_impl.dart 571 _Future._propagateToListeners
dart:async/future_impl.dart 331 _Future._completeWithValue
dart:async/future_impl.dart 393 _Future._asyncComplete.<fn>
dart:async/schedule_microtask.dart 1 _AsyncCallbackEntry.callback
dart:async/schedule_microtask.dart 23 _asyncRunCallbackLoop
dart:async/schedule_microtask.dart 32 _asyncRunCallback
dart:isolate-patch/isolate_patch.dart 119 _RawReceivePortImpl._handleMessage
dart:core int.>=
http://127.0.0.1:50622/packages/analyzer/src/generated/scanner.dart 496:25 CharSequenceReader.advance
http://127.0.0.1:50622/packages/analyzer/src/generated/scanner.dart 904:33 Scanner.tokenize
http://127.0.0.1:50622/packages/analyzer/src/generated/scanner.dart 912:7 Scanner.tokenize
http://127.0.0.1:50622/packages/analyzer/src/generated/scanner.dart 912:7 Scanner.tokenize
http://127.0.0.1:50622/packages/polymer/src/build/code_extractor.dart 78:31 _hasLibraryDirective
http://127.0.0.1:50622/packages/polymer/src/build/code_extractor.dart 58:34 InlineCodeExtractor.apply.<fn>
dart:isolate _RawReceivePortImpl._handleMessage
[Warning from _Serial on minuteheet|web/main.dart with input minuteheet|lib/components/menu_component.dart]:
package:minuteheet/components/menu_component.dart:7:1: Unable to find ../lib/components/menu.html at minuteheet|../lib/components/menu.html
Removing dart polymer made the error go away.

Resources