There was an error running the selected code generator: while creating a scaffolded item - entity-framework

Iam trying to add a Scaffolded item but i got an error.
It took me alot of time searching for this error, but actually i couldn't find a way out.
I tried deleting Cache, rebuild project but none of these worked.
The error is :
There was an error running the selected code generator: Method 'getInfo' in type 'MySql.Data.EntityFrameworkCore.Infraestructure.MySQLOptionsExtension' from assembly 'MySql.Data.EntityFrameworkCore, Version =8.0.19.0, Culture=neutral doesn't have an implementation .
Here is the controller item i tried to add ''Click Here''
Project Packages ''Click Here''
After a long search i found that these packages are compatible with each other.

Related

The plugin `webview_flutter_android` doesn't have a main class defined

I'm installing the plugin but I'm getting this error, I couldn't find a solution on the internet
I tried other plugins and got the same error with them.
The plugin `webview_flutter_android` doesn't have a main class defined in
C:\Users\ykyaz\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\flutter\.pub-
cache\hosted\pub.dartlang.org\webview_flutter_android-
2.8.2\android\src\main\java\io\flutter\plugins\webviewflutter\WebViewFlutterPlugin.java or
C:\Users\ykyaz\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\flutter\.pub-
cache\hosted\pub.dartlang.org\webview_flutter_android-
2.8.2\android\src\main\kotlin\io\flutter\plugins\webviewflutter\WebViewFlutterPlugin.kt. This
is likely to due to an incorrect `androidPackage: io.flutter.plugins.webviewflutter` or
`mainClass` entry in the plugin's pubspec.yaml.
If you are the author of this plugin, fix the `androidPackage` entry or move the main class to
any of locations used above. Otherwise, please contact the author of this plugin and consider
using a different plugin in the meanwhile.
exit code 1

Why the app produced by flutter build web sometimes doesn't work?

I have 2 issues that only appear when executing flutter build web.
Sometimes flutter build web fails complaining (wrongly) about types that were not compatible (see below).
Sometimes the build process finishes but then the web app doesn't work: doesn't display anything and there are no messages in the console.
The error I mention is something like this:
% flutter build web
Target dart2js failed: Exception: lib/main.dart:24:31:
Error: A value of type 'ApiUsersRepository' can't be assigned to a variable of type 'UsersRepository'.
- 'ApiUsersRepository' is from 'package:my_app/api_users_repo.dart' ('lib/api_users_repo.dart').
- 'UsersRepository' is from 'lib/users_repo.dart'.
final UsersRepository usersRepository = ApiUsersRepository();
^
Error: Compilation failed.
The app is working in iOS and web when developing.
The solution
I changed all imports of my files like:
import 'package:my_app/users_repo.dart';
To:
import 'users_repo.dart';
More Details
Investigating the error about types, I found this issue, where the important part is this comment: after changing every import to relative format it resolves my problem.
So I did that, and it solved the 2 issues, the compilation error, and the runtime error.
for me I had to remove a package that was corrupted. c:\src\flutter.pub-cache\hosted\pub.dartlang.org\localstorage-4.0.0+1 Apparently, a file had become corrupted by me invertly. I removed the package and did a flutter pub get then recompiled and it worked.

How To Fix This Error [Error: Failed to find '#ionic/angular/css/display.css']

When i run the operation ionic serve it fails to compile and gives an error code that says:
ERROR in ./src/global.scss (./node_modules/#angular-devkit/build-
angular/src/angular-cli-files/plugins/raw-css-
loader.js!./node_modules/postcss-loader/src??embedded!./node_modules/
sass-loader/lib/loader.js??ref--14-3!./src/global.scss)
Module build failed (from ./node_modules/postcss-loader/src/index.js):
Error: Failed to find '#ionic/angular/css/display.css'
in [
C:project/src
]
at resolveModule.catch.catch (project\node_modules\postcss-
import\lib\resolve-id.js:35:13)
This is a piece of code i tried to integrate into my own project which opens the camera to take a picture and you can either upload the picture or delete it. I tried searching for "#ionic/angular/css/display.css" on the internet but couldn't find a solution. I started ionic just recently so i don't understand much about it.
If anyone wants to see the code It is here The original i took it from had the code at home.page.ts but i needed it at tab1.page.ts so the error may be born from this. Also global.scss
The method i used to solve the problem is importing "#ionic/angular/css/display.css". I did it manually taking it from a project where it exists and copying it to the Project which gives the error.

Assembly has reference to non-existent assembly 'Unity.PerformanceTesting'

I'm trying to add ECS to the project. I have added a packages: Entities, Jobs and Collections. But Unity keeps throwing me this error all the time. I have not found a solution to this problem anywhere.
Unity 2018.3.3f1
Error:
Assembly has reference to non-existent assembly 'Unity.PerformanceTesting'
(Packages/com.unity.entities/Unity.Entities.PerformanceTests/Unity.Entities.PerformanceTests.asmdef)
Edit:
I found a solution. I had to add to manifest.json
"com.unity.test-framework.performance": "0.1.49-preview"
Maybe for other folks that come over here because of the same problem:
Help -> Reset packages to default.
This resolved the problem for me.

Migrating to Dart 2 I get a "check imports error" that means that some templates have not been generated

I'm trying to migrate to Dart 2, I have a lot of packages and up to now I could do my job with not so much problems.
Now I'm getting a strange error bot with DDC and dart2js:
[SEVERE] build_web_compilers|entrypoint on web/main.dart (cached):
Unable to find modules for some sources, this is usually the result of either a
bad import, a missing dependency in a package (or possibly a dev_dependency
needs to move to a real dependency), or a build failure (if importing a
generated file).
Please check the following imports:
`import 'package:ledger_web/src/ui/components/main_selection_bar.template.dart';` from ledger_web|lib/src/ui/components/service/main_selection_bar_service.dart at 7:1
`import 'package:ledger_web/src/ui/components/main_selection_bar.template.dart';` from ledger_web|lib/src/ui/components/service/main_selection_bar_service.template.dart at 11:1
... and more
It is correct to signal that there is not the import (MainSelectionBar is an angular component), because the template has not been generated.
Now the problem is, why the template is not there?
I checked the .dart_tool/build/generated directory but the template has not been created.
I have a similar package with a similar component that works fine, so I cannot figure out what's happened.
Is there a place where there is a more detailed error list?
Interestingly enough, there is also a case in which the template exists, but it is listed like if it was not found....
Any hint?
Most likely this is related to a build failure when generating the template, which is not being properly reported on subsequent builds. This pull request should help that https://github.com/dart-lang/build/pull/1834/, but you can also try running pub run build_runner clean and then doing a new build to get the original error back.