dartium (chromium) error on yaml/src/loader.dart - dart

I keep getting this
Internal error: 'package:yaml/src/loader.dart': error: line 197 pos 32: unexpected token '?'
_tryParseScalar(scalar) ?? new YamlScalar.internal(scalar.value, scalar)

?? is a quite new extension (null-aware operators) to the Dart syntax. You probably use a Dart version that doesn't support it.
Null aware operators were introduced with Dart 1.12
See https://github.com/dart-lang/sdk/blob/master/CHANGELOG.md#1120
You can check your current Dart version with dart --version on the command line.
The package using this new feature should have a SDK constraint that limits the package version to SDK versions that support this feature.

Related

Flutter error no named parameter with the name 'scrollBehavior

I am getting this error when I run the app. What can be problem? I try update my pods. But still I am getting same error. I have an M1 Mac.
↳
objc[11258]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1efc22c10) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1184b82b8). One of the two will be used. Which one is undefined.
objc[11258]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1efc22c60) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1184b8308). One of the two will be used. Which one is undefined.
** BUILD FAILED **
Xcode's output:
↳
Pods-Runner-elvtjvosznfleaabicgoahubaeqy
../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/get-4.3.4/lib/get_navigation/src/root/get_material_app.dart:297:15: Error: No named parameter with the name 'scrollBehavior'.
scrollBehavior: scrollBehavior,
^^^^^^^^^^^^^^
../../../development/flutter/packages/flutter/lib/src/material/app.dart:217:9: Context: Found this candidate, but the arguments don't match.
const MaterialApp.router({
^^^^^^^^^^^^^^^^^^
../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/get-4.3.4/lib/get_navigation/src/root/get_material_app.dart:340:15: Error: No named parameter with the name 'scrollBehavior'.
scrollBehavior: scrollBehavior,
^^^^^^^^^^^^^^
../../../development/flutter/packages/flutter/lib/src/material/app.dart:167:9: Context: Found this candidate, but the arguments don't match.
const MaterialApp({
^^^^^^^^^^^
Command PhaseScriptExecution failed with a nonzero exit code
Pods-Runner-elvtjvosznfleaabicgoahubaeqy
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Analyzing workspace
note: Constructing build description
If you are using packages get or any packages that relating to get, basically the get latest version is not compatible with your project. Since I'm not directly using it, I go to pubspec.lock and change the version to 4.1.4 instead of the latest one 4.3.4.
if you are using fvm, check your "dart.flutterSdkPath" in setting.json, make sure the path is correct
// .vscode/settings.json
{
"dart.flutterSdkPath": ".fvm/flutter_sdk",
// Remove .fvm files from search
"search.exclude": {
"**/.fvm": true
},
// Remove from file watching
"files.watcherExclude": {
"**/.fvm": true
}
}
https://fvm.app/docs/getting_started/configuration
Just open ../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/get-4.3.4/lib/get_navigation/src/root/get_material_app.dart file, and then delete all parameters with the name 'scrollBehavior'.
This is how my problem was solved!
You are using get package latest version, but your flutter sdk version is old. so you need to update your flutter sdk. I resolved by updating flutter sdk to latest version. Basically getX is mapping GetMaterialApp.route() parameters with MaterialApp.route() parameters but sdk you have used is not latest one so MaterialApp.route() not contains the this.scrollBehavior parameter and getX is not able to map it.
You can resolve issue by two way:
1st You need to install latest flutter sdk or
2nd You need to downgrade getX package till it is compatible with your current flutter sdk.
You just have to delete the scrollBehavior feature completely so that you search for the feature and delete it Via:
C:/flutter/.pub-cache/hosted/pub.dartlang.org/get-4.3.8/lib/get_navigation/src/root/get_material_app.dart

Cant find what the error is when compiling to iOS with flutter

Ive tried most things i could find but can't fix the error. There seems to be something wrong with all my packages. The code compiles and works on android. When i try to compile the code in Xcode it stops when it reaches firebase_auth. The flutter version is 1.22.6, I've set the development target to 10 on the device.
The problems im getting is with everything, i can scroll up until it reaches max count.
../../flutter/packages/flutter/lib/src/semantics/semantics.dart:2052:7: Error: Can't assign to the final variable 'childrenInHitTestOrder'.
childrenInHitTestOrder = _kEmptyChildList;
^^^^^^^^^^^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/semantics/semantics.dart:2056:7: Error: Can't assign to the final variable 'childrenInTraversalOrder'.
childrenInTraversalOrder = Int32List(childCount);
^^^^^^^^^^^^^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/semantics/semantics.dart:2062:7: Error: Can't assign to the final variable 'childrenInHitTestOrder'.
childrenInHitTestOrder = Int32List(childCount);
^^^^^^^^^^^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/semantics/semantics.dart:3653:47: Error: Getter not found: 'isSlider'.
bool get isSlider => _hasFlag(SemanticsFlag.isSlider);
^^^^^^^^
../../flutter/packages/flutter/lib/src/semantics/semantics.dart:3655:28: Error: Getter not found: 'isSlider'.
_setFlag(SemanticsFlag.isSlider, value);
^^^^^^^^
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Could not build the precompiled application for the device.
Error launching application on Benjamin’s
Added some more of the errors, its something with my localizations. But i added everything like its said in the howto for adding localizations for iOS. When i try to add that non nullable part it breaks my already written code since i didn't write for that.
../../flutter/packages/flutter_localizations/lib/src/l10n/generated_cupertino_localizations.dart:1382:9: Error: This requires the null safety language feature, which is experimental and requires language version of 2.10 or higher.
You can enable the experiment using the '--enable-experiment=non-nullable' command line option.
String? get timerPickerHourLabelMany => null;
^
../../flutter/packages/flutter_localizations/lib/src/l10n/generated_cupertino_localizations.dart:1385:9: Error: This requires the null safety language feature, which is experimental and requires language version of 2.10 or higher.
You can enable the experiment using the '--enable-experiment=non-nullable' command line option.
String? get timerPickerHourLabelOne => 'sat';
^
../../flutter/packages/flutter_localizations/lib/src/l10n/generated_cupertino_localizations.dart:1391:9: Error: This requires the null safety language feature, which is experimental and requires language version of 2.10 or higher.
You can enable the experiment using the '--enable-experiment=non-nullable' command line option.
String? get timerPickerHourLabelTwo => null;
^
../../flutter/packages/flutter_localizations/lib/src/l10n/generated_cupertino_localizations.dart:1394:9: Error: This requires the null safety language feature, which is experimental and requires language version of 2.10 or higher.
You can enable the experiment using the '--enable-experiment=non-nullable' command line option.
String? get timerPickerHourLabelZero => null;
^
../../flutter/packages/flutter_localizations/lib/src/l10n/generated_cupertino_localizations.dart:1397:9: Error: This requires the null safety language feature, which is experimental and requires language version of 2.10 or higher.
You can enable the experiment using the '--enable-experiment=non-nullable' command line option.
String? get timerPickerMinuteLabelFew => 'min.';
^
../../flutter/packages/flutter_localizations/lib/src/l10n/generated_cupertino_localizations.dart:1400:9: Error: This requires the null safety language feature, which is experimental and requires language version of 2.10 or higher.
You can enable the experiment using the '--enable-experiment=non-nullable' command line option.
String? get timerPickerMinuteLabelMany => null;
^
../../flutter/packages/flutter_localizations/lib/src/l10n/generated_cupertino_localizations.dart:1403:9: Error: This requires the null safety language feature, which is experimental and requires language version of 2.10 or higher.
You can enable the experiment using the '--enable-experiment=non-nullable' command line option.
String? get timerPickerMinuteLabelOne => 'min.';
^
../../flutter/packages/flutter_localizations/lib/src/l10n/generated_cupertino_localizations.dart:1409:9: Error: This requires the null safety language feature, which is experimental and requires language version of 2.10 or higher.
You can enable the experiment using the '--enable-experiment=non-nullable' command line option.
String? get timerPickerMinuteLabelTwo => null;
^
../../flutter/packages/flutter_localizations/lib/src/l10n/generated_cupertino_localizations.dart:1412:9: Error: This requires the null safety language feature, which is experimental and requires language version of 2.10 or higher.
You can enable the experiment using the '--enable-experiment=non-nullable' command line option.
String? get timerPickerMinuteLabelZero => null;
^
../../flutter/packages/flutter_localizations/lib/src/l10n/generated_cupertino_localizations.dart:1415:9: Error: This requires the null safety language feature, which is experimental and requires language version of 2.10 or higher.
You can enable the experiment using the '--enable-experiment=non-nullable' command line option.
String? get timerPickerSecondLabelFew => 'sec.';
^
../../flutter/packages/flutter_localizations/lib/src/l10n/generated_cupertino_localizations.dart:1418:9: Error: This requires the null safety language feature, which is experimental and requires language version of 2.10 or higher.
You can enable the experiment using the '--enable-experiment=non-nullable' command line option.
String? get timerPickerSecondLabelMany => null;
^
../../flutter/packages/flutter_localizations/lib/src/l10n/generated_cupertino_localizations.dart:1421:9: Error: This requires the null safety language feature, which is experimental and requires language version of 2.10 or higher.
You can enable the experiment using the '--enable-experiment=non-nullable' command line option.
It works now, what i did was that i removed flutter, redownloaded the same version. compiled and now it installed on the device.

Xamarin.Android binding generation giving "Type X was not found" errors for classes new in JDK 1.8

I'm trying to get Xamarin.Android to generate bindings for a library supplied as an AAR. JAR2XML is giving me a lot of "can't find type" errors, so I thought I'd try class-parse, but in addition to some library references I'm trying to track down, I'm getting a couple of these:
1> Error while processing '[Method] java.time.temporal.Temporal adjustInto(java.time.temporal.Temporal temporal, long newValue)' in '[Class] java.time.temporal.ChronoField': Type 'java.time.temporal.Temporal' was not found. (TaskId:69)
1> Error while processing '[Method] java.time.temporal.Temporal addTo(java.time.temporal.Temporal temporal, long amount)' in '[Class] java.time.temporal.ChronoUnit': Type 'java.time.temporal.Temporal' was not found. (TaskId:69)
Now, java.time.temporal.Temporal is a new type in JDK 1.8, so I'm wondering if maybe that's part of my problem here (ie. maybe the types that can't load are using other new-in-1.8 types). Running bin\javac -version in the path specified in Options-Xamarin-Android Settings says I'm using "1.8.0_172". My project is targeting "Android 8.1 (Oreo)" - ie. api level 27. Is there some other option I need to set to make sure I'm using 1.8?

Error with HTTP library via the BrowserClient class

I try to use HTTP library, "Using on the Browser" but get Error in browser console (Dartium) even for example.
Error:
package:async/src/byte_collector.dart:1 'package:async/src/byte_collector.dart': error: line 42 pos 16: generic functions not supported
T _collectBytes<T>(
^: package:async/src/byte_collector.dart
Downgrade to "0.11.3+2" from "0.11.3+9" helped but I need 0.11.3+9 because of dependence. How to solve the problem with this error?
I think you are using an older Dartium version and need to update to the most recent version.

F# 2.0 with Powerpack 2.0, fslex error 1

In namespace RSLispV3.RunTime:
http://pastebin.com/XNb9qi11
LispParser.fsy:
http://pastebin.com/pymF1Vvm
LispLexer.fsl:
http://pastebin.com/pfXdDuxs
I got in MSBuild the PowerPacks targets, calling them from the .fsprog.
When building with VS2008 I get error: "fslex.exe" exited with code 1.
Help?
This might be the same bug I ran into with the Powerpack Metadata library.
You can test it by temporarily creating the registry key
Software\Microsoft\.NETFramework\AssemblyFolders\Microsoft.FSharp-1.9.9.9
(an equivalent with 2.0.0.0 should already be there.)
Or just download the updated powerpack binaries; they fixed the problem a couple of days ago.
Solved: my mistake, no ^ operator. Line 11 for future visitors.

Resources