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

scidart not building #7

Open
davidhin opened this issue Sep 8, 2019 · 2 comments

Comments

@davidhin
Copy link

@davidhin davidhin commented Sep 8, 2019

just tried to install it on a plain new flutter app and got this output:

Compiler message:                                                       
../flutter/.pub-cache/hosted/pub.dartlang.org/scidart-0.0.1-dev.5/lib/src/numdart/arrays_base/array.dart:141:23: Error: The method '[]' isn't defined for the class 'Object'.
 - 'Object' is from 'dart:core'.                                        
Try correcting the name to the name of an existing method, or defining a method named '[]'.
      if (this[i] != b[i]) {                                            
                      ^^                                                
../flutter/.pub-cache/hosted/pub.dartlang.org/scidart-0.0.1-dev.5/lib/src/numdart/arrays_base/array2d.dart:204:23: Error: The method '[]' isn't defined for the class 'Object'.
 - 'Object' is from 'dart:core'.                                        
Try correcting the name to the name of an existing method, or defining a method named '[]'.
      if (this[i] != b[i]) {                                            
                      ^^                                                
../flutter/.pub-cache/hosted/pub.dartlang.org/scidart-0.0.1-dev.5/lib/src/numdart/arrays_base/array_complex.dart:105:23: Error: The method '[]' isn't defined for the class 'Object'.
 - 'Object' is from 'dart:core'.                                        
Try correcting the name to the name of an existing method, or defining a method named '[]'.
      if (this[i] != b[i]) {                                            
                      ^^                                                
Compiler failed on /home/davidhin/Projects/AppDev/scidarttest/lib/main.dart
                                                                        
FAILURE: Build failed with an exception.                                
                                                                        
* Where:                                                                
Script '/home/davidhin/Projects/AppDev/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 765
                                                                        
* What went wrong:                                                      
Execution failed for task ':app:compileFlutterBuildDebugArm'.           
> Process 'command '/home/davidhin/Projects/AppDev/flutter/bin/flutter'' finished with non-zero exit value 1
                                                                        
* Try:                                                                  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
                                                                        
* Get more help at https://help.gradle.org                              
                                                                        
BUILD FAILED in 10s                                                     
Running Gradle task 'assembleDebug'...                                  
Running Gradle task 'assembleDebug'... Done                        10.8s
Gradle task assembleDebug failed with exit code 1

I'm still new to flutter, is there something I did wrong? I put scidart: ^0.0.1-dev.5 in the dependencies and import 'package:scidart/scidart.dart'; in the default lib/main.dart file.

@angelopolotto

This comment has been minimized.

Copy link
Collaborator

@angelopolotto angelopolotto commented Sep 9, 2019

This error is new for me, I have to investigate that. Can you share your App code with me?

angelopolotto added a commit that referenced this issue Sep 10, 2019
@angelopolotto angelopolotto referenced this issue Sep 10, 2019
@angelopolotto

This comment has been minimized.

Copy link
Collaborator

@angelopolotto angelopolotto commented Sep 10, 2019

I made some corrections, I think the problem is that Dart only allow overload == operation if second parameter is a Dynamic, so, I added a type check inside the operator logic. Try update to version scidart: ^0.0.1-dev.6

@angelopolotto angelopolotto pinned this issue Sep 11, 2019
@angelopolotto angelopolotto unpinned this issue Sep 11, 2019
@angelopolotto angelopolotto pinned this issue Oct 29, 2019
@angelopolotto angelopolotto unpinned this issue Oct 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.