Code generation runtime error when I add mutation requests
VladislavYU opened this issue · 9 comments
Before reporting a bug, please test the beta branch!
Bug description
When I run build_runner, the process takes a very long time (more than 20 minutes) and gives an error
It works when I have only query requests. When I add mutation request I give error after 20 min wait.
My graphql scheme contains 52 thousand lines.
Specs
Artemis version: 7.3.0-beta
build.yaml:
targets:
$default:
sources:
- $package$
- lib/**
- graphql/**
- schema.graphql
builders:
json_serializable:
options:
include_if_null: true
artemis:
options:
fragments_glob: graphql/fragments.graphql
schema_mapping:
- schema: schema.graphql
queries_glob: graphql/operations/**/*.graphql
output: lib/generated/graphql/api.graphql.dart
naming_scheme: pathedWithFields
scalar_mapping:
- graphql_type: timestamptz
dart_type: DateTime
- graphql_type: timestamp
dart_type: DateTime
- graphql_type: uuid
dart_type: String
- graphql_type: date
dart_type: DateTime
- graphql_type: numeric
dart_type: double
- graphql_type: interval
dart_type: String
- graphql_type: float8
dart_type: double
- graphql_type: geometry
dart_type: Map
- graphql_type: geography
dart_type: Map
- graphql_type: jsonb
dart_type: Map
- graphql_type: bigint
dart_type: int
- graphql_type: citext
dart_type: String
- graphql_type: Locale
dart_type:
name: Locale
imports:
- 'package:pos/locale.dart'
Artemis output:
[INFO] Generating build script...
[INFO] Generating build script completed, took 697ms
[INFO] Initializing inputs
[INFO] Reading cached asset graph...
[WARNING] Throwing away cached asset graph because the language version of some package(s) changed. This would most commonly happen when updating dependencies or changing your min sdk constraint.
[INFO] Cleaning up outputs from previous builds....
[INFO] Cleaning up outputs from previous builds. completed, took 11ms
[INFO] Generating build script...
[INFO] Generating build script completed, took 162ms
[WARNING] Invalidated precompiled build script due to missing asset graph.
[INFO] Precompiling build script......
[INFO] Precompiling build script... completed, took 8.8s
[INFO] Initializing inputs
[INFO] Building new asset graph...
[INFO] Building new asset graph completed, took 1.0s
[INFO] Checking for unexpected pre-existing outputs....
[INFO] Checking for unexpected pre-existing outputs. completed, took 2ms
[INFO] Running build...
^C%
vladislavzakharchenko@Vladislavs-MacBook-Pro sample_project_flutter % sh build_runner.sh
[INFO] Generating build script...
[INFO] Generating build script completed, took 676ms
[WARNING] Invalidated precompiled build script due to missing asset graph.
[INFO] Precompiling build script......
[INFO] Precompiling build script... completed, took 1.2s
[INFO] Initializing inputs
[INFO] Building new asset graph...
[INFO] Building new asset graph completed, took 891ms
[INFO] Checking for unexpected pre-existing outputs....
[INFO] Checking for unexpected pre-existing outputs. completed, took 2ms
[INFO] Running build...
[INFO] 2.5s elapsed, 0/1 actions completed.
[INFO] Generating SDK summary...
[INFO] 6.8s elapsed, 1/17 actions completed.
[INFO] Generating SDK summary completed, took 4.3s
[INFO] 7.9s elapsed, 1/17 actions completed.
[INFO] 9.0s elapsed, 2/18 actions completed.
[INFO] 10.0s elapsed, 3/19 actions completed.
[INFO] 11.1s elapsed, 5/21 actions completed.
[INFO] 12.2s elapsed, 6/22 actions completed.
[INFO] 13.3s elapsed, 7/23 actions completed.
[INFO] 21.5s elapsed, 7/23 actions completed.
[INFO] 22.5s elapsed, 8/24 actions completed.
[INFO] 23.8s elapsed, 11/27 actions completed.
[INFO] 24.8s elapsed, 17/32 actions completed.
[WARNING] json_serializable:json_serializable on lib/generated/graphql/api.graphql.dart:
Could not read the "pubspec.yaml` file associated with this package. Usage of package:json_annotation could not be verified.
[INFO] Running build completed, took 25.4s
[INFO] Caching finalized dependency graph...
[INFO] Caching finalized dependency graph completed, took 117ms
[INFO] Succeeded after 25.5s with 3 outputs (68 actions)
vladislavzakharchenko@Vladislavs-MacBook-Pro sample_project_flutter % sh build_runner.sh
[INFO] Generating build script...
[INFO] Generating build script completed, took 589ms
[INFO] Initializing inputs
[INFO] Reading cached asset graph...
[INFO] Reading cached asset graph completed, took 127ms
[INFO] Checking for updates since last build...
[INFO] Checking for updates since last build completed, took 1.1s
[INFO] Running build...
^C%
vladislavzakharchenko@Vladislavs-MacBook-Pro sample_project_flutter % sh build_runner.sh
[ +160 ms] executing: sysctl hw.optional.arm64
[ +30 ms] Exit code 1 from: sysctl hw.optional.arm64
[ ] sysctl: unknown oid 'hw.optional.arm64'
[ +14 ms] executing: [/Users/vz/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +23 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] 77d935af4db863f6abd0b9c31c7e6df2a13de57b
[ +1 ms] executing: [/Users/vz/flutter/] git tag --points-at 77d935af4db863f6abd0b9c31c7e6df2a13de57b
[ +219 ms] Exit code 0 from: git tag --points-at 77d935af4db863f6abd0b9c31c7e6df2a13de57b
[ ] 2.8.1
[ +17 ms] executing: [/Users/vz/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +15 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/stable
[ ] executing: [/Users/vz/flutter/] git ls-remote --get-url origin
[ +17 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +161 ms] executing: [/Users/vz/flutter/] git rev-parse --abbrev-ref HEAD
[ +23 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ +1 ms] stable
[ +11 ms] executing: sw_vers -productName
[ +29 ms] Exit code 0 from: sw_vers -productName
[ ] macOS
[ ] executing: sw_vers -productVersion
[ +22 ms] Exit code 0 from: sw_vers -productVersion
[ ] 12.1
[ ] executing: sw_vers -buildVersion
[ +22 ms] Exit code 0 from: sw_vers -buildVersion
[ ] 21C52
[ +83 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +6 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +73 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[ ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[ ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[ +57 ms] executing: /Users/vz/flutter/bin/cache/dart-sdk/bin/dart __deprecated_pub run build_runner build
--delete-conflicting-outputs --verbose
[INFO] Entrypoint:Generating build script...
[INFO] Entrypoint:Generating build script completed, took 825ms
[INFO] BuildDefinition:Initializing inputs
[INFO] BuildDefinition:Reading cached asset graph...
[INFO] BuildDefinition:Reading cached asset graph completed, took 184ms
[INFO] BuildDefinition:Checking for updates since last build...
[INFO] BuildDefinition:Checking for updates since last build completed, took 1.3s
[INFO] Build:Running build...
[FINE] artemis:artemis on lib/$lib$:-> Class
[FINE] artemis:artemis on lib/$lib$:┌ [TypeName(name:r'GetCurrentUser'), TypeName(name:r'Query')][Query][null null] ()
[FINE] artemis:artemis on lib/$lib$:| [TypeName(name:r'GetCurrentUser'), TypeName(name:r'Query')][Query][ClassName(name:r'User') ClassPropertyName(name:r'user')] (ClassPropertyName(name:r'user')) -> GetCurrentUser$Query$User?
[FINE] artemis:artemis on lib/$lib$:| -> Class
[FINE] artemis:artemis on lib/$lib$:| ┌ [TypeName(name:r'GetCurrentUser'), TypeName(name:r'Query'), ClassPropertyName(name:r'user')][User][null null] ()
[FINE] artemis:artemis on lib/$lib$:| | [TypeName(name:r'GetCurrentUser'), TypeName(name:r'Query'), ClassPropertyName(name:r'user')]: ... expanding User
[FINE] artemis:artemis on lib/$lib$:| └ [TypeName(name:r'GetCurrentUser'), TypeName(name:r'Query'), ClassPropertyName(name:r'user')][User][null null] ()
[FINE] artemis:artemis on lib/$lib$:| <- Generated class GetCurrentUser$Query$User.
[FINE] artemis:artemis on lib/$lib$:└ [TypeName(name:r'GetCurrentUser'), TypeName(name:r'Query')][Query][null null] ()
[FINE] artemis:artemis on lib/$lib$:<- Generated class GetCurrentUser$Query.
[FINE] artemis:artemis on lib/$lib$:-> Fragment
[FINE] artemis:artemis on lib/$lib$:┌ [][User]
[FINE] artemis:artemis on lib/$lib$:| [FragmentName(name:r'User')][User][ClassName(name:r'String') ClassPropertyName(name:r'id')] -> String
[FINE] artemis:artemis on lib/$lib$:| [FragmentName(name:r'User')][User][ClassName(name:r'String') ClassPropertyName(name:r'firstName')] -> String?
[FINE] artemis:artemis on lib/$lib$:| [FragmentName(name:r'User')][User][ClassName(name:r'String') ClassPropertyName(name:r'lastName')] -> String?
[FINE] artemis:artemis on lib/$lib$:| [FragmentName(name:r'User')][User][ClassName(name:r'String') ClassPropertyName(name:r'middleName')] -> String?
[FINE] artemis:artemis on lib/$lib$:└ [][User]
[FINE] artemis:artemis on lib/$lib$:<- Generated fragment UserMixin.
[FINE] artemis:artemis on lib/$lib$:-> Class
[FINE] artemis:artemis on lib/$lib$:┌ [TypeName(name:r'UpdateUser'), TypeName(name:r'Mutation')][Mutation][null null] ()
[FINE] artemis:artemis on lib/$lib$:| [TypeName(name:r'UpdateUser'), TypeName(name:r'Mutation')][Mutation][ClassName(name:r'User') ClassPropertyName(name:r'updateUser')] -> UpdateUser$Mutation$UpdateUser?
[FINE] artemis:artemis on lib/$lib$:| -> Class
[FINE] artemis:artemis on lib/$lib$:| ┌ [TypeName(name:r'UpdateUser'), TypeName(name:r'Mutation'), ClassPropertyName(name:r'updateUser')][User][null null] ()
[FINE] artemis:artemis on lib/$lib$:| | [TypeName(name:r'UpdateUser'), TypeName(name:r'Mutation'), ClassPropertyName(name:r'updateUser')]: ... expanding User
[FINE] artemis:artemis on lib/$lib$:| └ [TypeName(name:r'UpdateUser'), TypeName(name:r'Mutation'), ClassPropertyName(name:r'updateUser')][User][null null] ()
[FINE] artemis:artemis on lib/$lib$:| <- Generated class UpdateUser$Mutation$UpdateUser.
[FINE] artemis:artemis on lib/$lib$:└ [TypeName(name:r'UpdateUser'), TypeName(name:r'Mutation')][Mutation][null null] ()
[FINE] artemis:artemis on lib/$lib$:<- Generated class UpdateUser$Mutation.
^C%
vladislavzakharchenko@Vladislavs-MacBook-Pro sample_project_flutter %
vladislavzakharchenko@Vladislavs-MacBook-Pro sample_project_flutter % sh build_runner.sh
[ +156 ms] executing: sysctl hw.optional.arm64
[ +33 ms] Exit code 1 from: sysctl hw.optional.arm64
[ +1 ms] sysctl: unknown oid 'hw.optional.arm64'
[ +12 ms] executing: [/Users/vz/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +22 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] 77d935af4db863f6abd0b9c31c7e6df2a13de57b
[ +1 ms] executing: [/Users/vz/flutter/] git tag --points-at 77d935af4db863f6abd0b9c31c7e6df2a13de57b
[ +220 ms] Exit code 0 from: git tag --points-at 77d935af4db863f6abd0b9c31c7e6df2a13de57b
[ ] 2.8.1
[ +14 ms] executing: [/Users/vz/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +24 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/stable
[ ] executing: [/Users/vz/flutter/] git ls-remote --get-url origin
[ +15 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +155 ms] executing: [/Users/vz/flutter/] git rev-parse --abbrev-ref HEAD
[ +19 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] stable
[ +10 ms] executing: sw_vers -productName
[ +30 ms] Exit code 0 from: sw_vers -productName
[ ] macOS
[ ] executing: sw_vers -productVersion
[ +22 ms] Exit code 0 from: sw_vers -productVersion
[ ] 12.1
[ ] executing: sw_vers -buildVersion
[ +24 ms] Exit code 0 from: sw_vers -buildVersion
[ ] 21C52
[ +78 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +5 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +94 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[ ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[ ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ +2 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[ +60 ms] executing: /Users/vz/flutter/bin/cache/dart-sdk/bin/dart __deprecated_pub run build_runner build
--delete-conflicting-outputs --verbose
[INFO] Entrypoint:Generating build script...
[INFO] Entrypoint:Generating build script completed, took 753ms
[INFO] BuildDefinition:Initializing inputs
[INFO] BuildDefinition:Reading cached asset graph...
[INFO] BuildDefinition:Reading cached asset graph completed, took 148ms
[INFO] BuildDefinition:Checking for updates since last build...
[INFO] BuildDefinition:Checking for updates since last build completed, took 1.3s
[INFO] Build:Running build...
[FINE] artemis:artemis on lib/$lib$:-> Class
[FINE] artemis:artemis on lib/$lib$:┌ [TypeName(name:r'GetCurrentUser'), TypeName(name:r'Query')][Query][null null] ()
[FINE] artemis:artemis on lib/$lib$:| [TypeName(name:r'GetCurrentUser'), TypeName(name:r'Query')][Query][ClassName(name:r'User') ClassPropertyName(name:r'user')] (ClassPropertyName(name:r'user')) -> GetCurrentUser$Query$User?
[FINE] artemis:artemis on lib/$lib$:| -> Class
[FINE] artemis:artemis on lib/$lib$:| ┌ [TypeName(name:r'GetCurrentUser'), TypeName(name:r'Query'), ClassPropertyName(name:r'user')][User][null null] ()
[FINE] artemis:artemis on lib/$lib$:| | [TypeName(name:r'GetCurrentUser'), TypeName(name:r'Query'), ClassPropertyName(name:r'user')]: ... expanding User
[FINE] artemis:artemis on lib/$lib$:| └ [TypeName(name:r'GetCurrentUser'), TypeName(name:r'Query'), ClassPropertyName(name:r'user')][User][null null] ()
[FINE] artemis:artemis on lib/$lib$:| <- Generated class GetCurrentUser$Query$User.
[FINE] artemis:artemis on lib/$lib$:└ [TypeName(name:r'GetCurrentUser'), TypeName(name:r'Query')][Query][null null] ()
[FINE] artemis:artemis on lib/$lib$:<- Generated class GetCurrentUser$Query.
[FINE] artemis:artemis on lib/$lib$:-> Fragment
[FINE] artemis:artemis on lib/$lib$:┌ [][User]
[FINE] artemis:artemis on lib/$lib$:| [FragmentName(name:r'User')][User][ClassName(name:r'String') ClassPropertyName(name:r'id')] -> String
[FINE] artemis:artemis on lib/$lib$:| [FragmentName(name:r'User')][User][ClassName(name:r'String') ClassPropertyName(name:r'firstName')] -> String?
[FINE] artemis:artemis on lib/$lib$:| [FragmentName(name:r'User')][User][ClassName(name:r'String') ClassPropertyName(name:r'lastName')] -> String?
[FINE] artemis:artemis on lib/$lib$:| [FragmentName(name:r'User')][User][ClassName(name:r'String') ClassPropertyName(name:r'middleName')] -> String?
[FINE] artemis:artemis on lib/$lib$:└ [][User]
[FINE] artemis:artemis on lib/$lib$:<- Generated fragment UserMixin.
[FINE] artemis:artemis on lib/$lib$:-> Class
[FINE] artemis:artemis on lib/$lib$:┌ [TypeName(name:r'CreateKkmCheckDocument'), TypeName(name:r'Mutation')][Mutation][null null] ()
[FINE] artemis:artemis on lib/$lib$:| [TypeName(name:r'CreateKkmCheckDocument'), TypeName(name:r'Mutation')][Mutation][ClassName(name:r'KkmCheckDocument') ClassPropertyName(name:r'createKkmCheckDocument')] -> CreateKkmCheckDocument$Mutation$CreateKkmCheckDocument
[FINE] artemis:artemis on lib/$lib$:| -> Class
[FINE] artemis:artemis on lib/$lib$:| ┌ [TypeName(name:r'CreateKkmCheckDocument'), TypeName(name:r'Mutation'), ClassPropertyName(name:r'createKkmCheckDocument')][KkmCheckDocument][null null] ()
[FINE] artemis:artemis on lib/$lib$:| | [TypeName(name:r'CreateKkmCheckDocument'), TypeName(name:r'Mutation'), ClassPropertyName(name:r'createKkmCheckDocument')][KkmCheckDocument][ClassName(name:r'String') ClassPropertyName(name:r'id')] -> String
[FINE] artemis:artemis on lib/$lib$:| └ [TypeName(name:r'CreateKkmCheckDocument'), TypeName(name:r'Mutation'), ClassPropertyName(name:r'createKkmCheckDocument')][KkmCheckDocument][null null] ()
[FINE] artemis:artemis on lib/$lib$:| <- Generated class CreateKkmCheckDocument$Mutation$CreateKkmCheckDocument.
[FINE] artemis:artemis on lib/$lib$:└ [TypeName(name:r'CreateKkmCheckDocument'), TypeName(name:r'Mutation')][Mutation][null null] ()
[FINE] artemis:artemis on lib/$lib$:<- Generated class CreateKkmCheckDocument$Mutation.
[FINE] artemis:artemis on lib/$lib$:-> Enum
[FINE] artemis:artemis on lib/$lib$:<- Generated enum KkmCheckStatus.
[FINE] artemis:artemis on lib/$lib$:-> Enum
[FINE] artemis:artemis on lib/$lib$:<- Generated enum CounterpartyServiceObject.
[FINE] artemis:artemis on lib/$lib$:-> Enum
[FINE] artemis:artemis on lib/$lib$:<- Generated enum CounterpartyType.
[FINE] artemis:artemis on lib/$lib$:-> Enum
[FINE] artemis:artemis on lib/$lib$:<- Generated enum LegalEntityType.
[FINE] artemis:artemis on lib/$lib$:-> Enum
[FINE] artemis:artemis on lib/$lib$:<- Generated enum Locale.
[FINE] artemis:artemis on lib/$lib$:-> Enum
[FINE] artemis:artemis on lib/$lib$:<- Generated enum RevisionAction.
[FINE] artemis:artemis on lib/$lib$:-> Enum
[FINE] artemis:artemis on lib/$lib$:<- Generated enum CashierShiftStatus.
[FINE] artemis:artemis on lib/$lib$:-> Enum
[FINE] artemis:artemis on lib/$lib$:<- Generated enum StorageType.
[FINE] artemis:artemis on lib/$lib$:-> Enum
[FINE] artemis:artemis on lib/$lib$:<- Generated enum VatCalculationRule.
[FINE] artemis:artemis on lib/$lib$:-> Enum
[FINE] artemis:artemis on lib/$lib$:<- Generated enum PriceCalculationType.
[FINE] artemis:artemis on lib/$lib$:-> Enum
[FINE] artemis:artemis on lib/$lib$:<- Generated enum PriceRoundingRule.
[FINE] artemis:artemis on lib/$lib$:-> Enum
[FINE] artemis:artemis on lib/$lib$:<- Generated enum RoundingAccuracy.
[FINE] artemis:artemis on lib/$lib$:-> Enum
[FINE] artemis:artemis on lib/$lib$:<- Generated enum NomenclatureType.
[FINE] artemis:artemis on lib/$lib$:-> Enum
[FINE] artemis:artemis on lib/$lib$:<- Generated enum Vat.
[FINE] artemis:artemis on lib/$lib$:-> Enum
[FINE] artemis:artemis on lib/$lib$:<- Generated enum MovementFundsType.
[FINE] artemis:artemis on lib/$lib$:-> Enum
[FINE] artemis:artemis on lib/$lib$:<- Generated enum OrderToSupplierStatus.
[FINE] artemis:artemis on lib/$lib$:-> Enum
[FINE] artemis:artemis on lib/$lib$:<- Generated enum DocumentType.
[FINE] artemis:artemis on lib/$lib$:-> Enum
[FINE] artemis:artemis on lib/$lib$:<- Generated enum SettlementType.
[FINE] artemis:artemis on lib/$lib$:-> Enum
[FINE] artemis:artemis on lib/$lib$:<- Generated enum KkmCheckPaymentType.
[FINE] artemis:artemis on lib/$lib$:-> Enum
[FINE] artemis:artemis on lib/$lib$:<- Generated enum BuyerOrderStatus.
[FINE] artemis:artemis on lib/$lib$:-> Enum
[FINE] artemis:artemis on lib/$lib$:<- Generated enum BuyerOrderPaymentType.
[FINE] artemis:artemis on lib/$lib$:-> Enum
[FINE] artemis:artemis on lib/$lib$:<- Generated enum DiscountType.
[FINE] artemis:artemis on lib/$lib$:-> Enum
[FINE] artemis:artemis on lib/$lib$:<- Generated enum PermissionAction.
[FINE] artemis:artemis on lib/$lib$:-> Input class
[FINE] artemis:artemis on lib/$lib$:┌ [][KkmCheckDocumentCreateInput]
[FINE] artemis:artemis on lib/$lib$:| [][KkmCheckDocumentCreateInput][ClassName(name:r'String') ClassPropertyName(name:r'id')] -> String?
[SEVERE] artemis:artemis on lib/$lib$:
Your `schema` file contains "DateTime" scalar, but this scalar is not
configured on `build.yaml`!
Please configure it, following the README on `scalar_mapping`.
package:artemis/generator/graphql_helpers.dart 114:5 getSingleScalarMap
package:artemis/generator/graphql_helpers.dart 49:24 buildTypeName
package:artemis/generator.dart 311:28 createClassProperty
package:artemis/visitor/canonical_visitor.dart 75:16 CanonicalVisitor.visitInputObjectTypeDefinitionNode.<fn>.<fn>
dart:core List.addAll
package:artemis/visitor/canonical_visitor.dart 73:18 CanonicalVisitor.visitInputObjectTypeDefinitionNode.<fn>
package:artemis/generator.dart 233:64 generateDefinitions.<fn>.<fn>
dart:core List.addAll
package:artemis/generator.dart 234:14 generateDefinitions.<fn>
dart:core Iterable.toList
package:artemis/generator.dart 66:8 generateLibrary
package:artemis/builder.dart 180:29 GraphQLQueryBuilder.build
[INFO] Heartbeat:21m 23s elapsed, 1/14 actions completed.
[INFO] Heartbeat:21m 24s elapsed, 1/14 actions completed.
[INFO] Heartbeat:21m 25s elapsed, 1/14 actions completed.
[INFO] Heartbeat:21m 26s elapsed, 1/14 actions completed.
[INFO] Heartbeat:21m 39s elapsed, 1/14 actions completed.
[WARNING] Heartbeat:
No actions completed for 17.1s, waiting on:
- json_serializable:json_serializable on lib/app/injection/app_module.dart
- json_serializable:json_serializable on lib/controllers/api_controller.dart
- json_serializable:json_serializable on lib/controllers/user_controller.dart
- json_serializable:json_serializable on lib/controllers/controllers.dart
- json_serializable:json_serializable on lib/controllers/store_controller.dart
.. and 8 more
[FINE] json_serializable:json_serializable on lib/controllers/user_controller.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable:json_serializable on lib/controllers/user_controller.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable:json_serializable on lib/controllers/api_controller.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable:json_serializable on lib/controllers/api_controller.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable:json_serializable on lib/controllers/controllers.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable:json_serializable on lib/controllers/controllers.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable:json_serializable on lib/controllers/store_controller.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable:json_serializable on lib/controllers/store_controller.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable:json_serializable on lib/data/service/user_service.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable:json_serializable on lib/data/service/user_service.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable:json_serializable on lib/app/injection/app_module.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable:json_serializable on lib/app/injection/app_module.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable:json_serializable on lib/app/app.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable:json_serializable on lib/app/app.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable:json_serializable on lib/main.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable:json_serializable on lib/main.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable:json_serializable on lib/presentation/routes/app_pages.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable:json_serializable on lib/presentation/routes/app_pages.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable:json_serializable on lib/presentation/modules/home/bindings/home_binding.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable:json_serializable on lib/presentation/modules/home/bindings/home_binding.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable:json_serializable on lib/presentation/modules/home/views/home_view.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable:json_serializable on lib/presentation/modules/home/views/home_view.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable:json_serializable on lib/presentation/modules/home/controllers/home_controller.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable:json_serializable on lib/presentation/modules/home/controllers/home_controller.dart:Running JsonLiteralGenerator - 2 of 2
[FINE] json_serializable:json_serializable on lib/data/repository/user_data_repository.dart:Running JsonSerializableGenerator - 1 of 2
[FINE] json_serializable:json_serializable on lib/data/repository/user_data_repository.dart:Running JsonLiteralGenerator - 2 of 2
[INFO] Build:Running build completed, took 21m 40s
[INFO] Build:Caching finalized dependency graph...
[INFO] Build:Caching finalized dependency graph completed, took 90ms
[SEVERE] Build:
Failed after 21m 40s
[+1306150 ms] "flutter run" took 1,306,346ms.
[ +7 ms] pub finished with exit code 1
[ +2 ms]
#0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
#1 _DefaultPub.interactively (package:flutter_tools/src/dart/pub.dart:416:7)
<asynchronous suspension>
#2 PackagesForwardCommand.runCommand (package:flutter_tools/src/commands/packages.dart:251:5)
<asynchronous suspension>
#3 FlutterCommand.run.<anonymous closure>
(package:flutter_tools/src/runner/flutter_command.dart:1140:27)
<asynchronous suspension>
#4 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#5 CommandRunner.runCommand (package:args/command_runner.dart:209:13)
<asynchronous suspension>
#6 FlutterCommandRunner.runCommand.<anonymous closure>
(package:flutter_tools/src/runner/flutter_command_runner.dart:288:9)
<asynchronous suspension>
#7 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#8 FlutterCommandRunner.runCommand
(package:flutter_tools/src/runner/flutter_command_runner.dart:236:5)
<asynchronous suspension>
#9 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
<asynchronous suspension>
#10 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#11 main (package:flutter_tools/executable.dart:94:3)
<asynchronous suspension>
[ +258 ms] ensureAnalyticsSent: 252ms
[ +1 ms] Running shutdown hooks
[ ] Shutdown hooks complete
[ ] exiting with code 1
GraphQL schema:
createKkmCheckDocument(data: KkmCheckDocumentCreateInput!): KkmCheckDocument!
input KkmCheckDocumentCreateInput {
id: String
createdAt: DateTime
updatedAt: DateTime
deletedAt: DateTime
postedAt: DateTime
date: DateTime!
number: BigInt
comment: String
status: KkmCheckStatus
checkIdentifier: String
counterpaty: CounterpartyCreateNestedOneWithoutKkmCheckDocumentInput
storage: StorageCreateNestedOneWithoutKkmCheckDocumentsInput!
organization: OrganizationCreateNestedOneWithoutKkmCheckDocumentsInput!
items: KkmCheckDocumentItemCreateNestedManyWithoutDocumentInput
paymentTypeItems: KkmCheckPaymentTypeDocumentItemCreateNestedManyWithoutDocumentInput
cashbox: CashboxCreateNestedOneWithoutKkmCheckDocumentsInput!
cashierShiftDocument: CashierShiftDocumentCreateNestedOneWithoutKkmCheckDocumentsInput!
}
@VladislavYU
Do not hesitate to read output from the script
[SEVERE] artemis:artemis on lib/$lib$:
Your `schema` file contains "DateTime" scalar, but this scalar is not
configured on `build.yaml`!
Please configure it, following the README on `scalar_mapping`.
@VladislavYU Do not hesitate to read output from the script
[SEVERE] artemis:artemis on lib/$lib$: Your `schema` file contains "DateTime" scalar, but this scalar is not configured on `build.yaml`! Please configure it, following the README on `scalar_mapping`.
Yes. I've already fixed that. But then it happened that he was waiting for the completion of the generation for more than an hour, as if he was looping
How much does it take now?
If you attach your schema(full schema file) we could try to reproduce the issue
How much does it take now?
If you attach your schema(full schema file) we could try to reproduce the issue
I will be very grateful if I can reproduce and solve the problem
example mutaton
mutation CreateKkmCheckDocument($data: KkmCheckDocumentCreateInput!) {
createKkmCheckDocument(data: $data) {
id
}
}
Hi @VladislavYU
try this in your pubspec.yaml
if it fixes the performance issues
artemis:
git:
url: https://github.com/comigor/artemis.git
ref: performance-fix
@VladislavYU all tests are ok so i release in v7.3.1-beta
@VladislavYU all tests are ok so i release in v7.3.1-beta
Not help me. After 10 minutes of waiting for the build to complete, it did not complete, had to abort.
https://pub.dev/packages/graphql_codegen this handles the schema and generates code without problems
Will try one more time some time later