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

type 'bool' is not a subtype of type 'String' in type cast #2242

Closed
nikitadol opened this issue Jun 25, 2024 · 1 comment · Fixed by #2243
Closed

type 'bool' is not a subtype of type 'String' in type cast #2242

nikitadol opened this issue Jun 25, 2024 · 1 comment · Fixed by #2243
Assignees

Comments

@nikitadol
Copy link
Contributor

Steps to reproduce

  1. Create a json file with values ​​other than String
{
  "boolValue": false
}
  1. Run any command with --dart-define-from-file created.json

Actual results

type 'bool' is not a subtype of type 'String' in type cast

Logs

Logs
type 'bool' is not a subtype of type 'String' in type cast
#0      new LinkedHashMap.from.<anonymous closure> (dart:collection/linked_hash_map.dart:187:26)
#1      _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:633:13)
#2      new LinkedHashMap.from (dart:collection/linked_hash_map.dart:186:11)
#3      mergeKeys (package:patrol_cli/src/commands/dart_define_utils.dart:8:20)
#4      mergeDartDefines (package:patrol_cli/src/commands/dart_define_utils.dart:27:10)
#5      TestCommand.run (package:patrol_cli/src/commands/test.dart:186:31)
<asynchronous suspension>
#6      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#7      PatrolCommandRunner.runCommand (package:patrol_cli/src/runner/patrol_command_runner.dart:348:18)
<asynchronous suspension>
#8      PatrolCommandRunner.run (package:patrol_cli/src/runner/patrol_command_runner.dart:292:18)
<asynchronous suspension>
#9      patrolCommandRunner (package:patrol_cli/src/runner/patrol_command_runner.dart:70:20)
<asynchronous suspension>

Patrol version

patrol: ^3.7.1

Patrol Doctor output

Patrol Doctor output
Patrol doctor:
Patrol CLI version: 2.8.0
Flutter command: flutter
  Flutter 3.19.6 • channel stable
Android:
• Program adb found in /Users/nikitadol/Library/Android/sdk/platform-tools/adb
• Env var $ANDROID_HOME set to /Users/nikitadol/Library/Android/sdk
iOS / macOS:
• Program xcodebuild found in /usr/bin/xcodebuild
• Program ideviceinstaller found in /opt/homebrew/bin/ideviceinstaller

Flutter Doctor output

Flutter Doctor output
<!-- Replace this line with your logs. Do not remove the backticks! -->
Copy link

github-actions bot commented Jul 2, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants