Some error with Flutter Plugin, about auto import - dart

I'm using IDEA to develop Flutter programs.
After my latest upgrade of the Flutter plug-in, the automatic prompt for the Flutter plug-in will go wrong.
For example, when I type in Border, the plug-in will automatically prompt Border in all packages (meterial / widget....) and import automatically for me, or even repeat imports.
The same error occurred when I used VSCODE.
I tried to uninstall and reinstall the Flutter plug-in, but the problem was not solved.
How can I solve this problem?
Thanks
Repeat import
Automatic prompt

It's Flutter plugin issue and the issue exists for IntelliJ 2019(also Android Studio 3.5 beta) so needs must wait till related version released unfortunately.
https://github.com/flutter/flutter-intellij/milestone/11
You can see in the link, there too many reports for auto-suggest/import features. There are also others problem probably you didn't realize yet.
Use Android Studio stable or revert your IntelliJ to 2018.3.6.

Related

I am not able to add insigths telemetry to new Asp .NET framework project

I want to test the Azure Insights telemetry and for this purpose, I have created a new free Azure account and a new MVC Web App Application (Framework 4.7.2)
The App runs correctly.
After that, I tried to add the telemetry: project -> Add Application Insights telemetry
Following the wizard. I get the following error that I am not able to solve.
System.NotImplementedException: The method or operation is not
implemented. at EnvDTE.SourceControl.CheckOutItem(String ItemName) at
Microsoft.WebTools.Shared.VS.VisualStudio.Wrappers.VsSourceControlWrapper.d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown
I tried to update the NuGet packages too. But nothing to do.
I have followed step by step the official Microsoft docs.
Some details for the installation process:
I'm having problems only with the .NET framework.
With .NET Core, anything works correctly.
Googling I didn't find any solution.
There are some other dependencies you need to install as well,
Install-Package Microsoft.ApplicationInsights.DependencyCollector -Version 2.6.4
Install-Package Microsoft.ApplicationInsights.PerfCounterCollector -Version 2.6.4
Install-Package Microsoft.ApplicationInsights.Web -Version 2.6.4
Install-Package Microsoft.ApplicationInsights.WindowsServer -Version 2.6.4
Install-Package Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel -Version 2.6.4
Try as mentioned here
Choose the first option when adding insights, Application Insights SDK. That will install all the necessary packages.
Once that's done, you will need to add instrumentation key to the config file. Add that on top.
Your error looks more of source control rather that the project.
If you trying to work in source control and adding insights to already checked-in project, may be try creating a dummy project, and add insights to it. That will give more clarity on error, as well as help to pin-point exact issue.
I had the same issue with adding microsoft identity platform in VS 2022:
System.NotImplementedException: The method or operation is not implemented.
at EnvDTE.SourceControl.CheckOutItem(String ItemName)
When I changed Tools/Options/Source Control from "None" to "git" (also when I am using Git with an external tool, the error was gone.
To me it looks just like one of a VS bug on a certain configuration. Try to uninstall whole VS and then install latest version again. Try another PC if you can.
I encountered this problem also. The work around that eventually worked for me was to add Application Insights in Visual Studio 2017, instead of in 2019 which I normally use.
Your error looks more of source control rather that the project. If you trying to work in source control and adding insights to already checked-in project, may be try creating a dummy project, and add insights to it. That will give more clarity on error, as well as help to pin-point exact issue.
That does not seem to be the case for me. I completely disabled source control and the problem still persisted. When I got the issue "fixed" by using VS2017 source control was running.
To me it looks just like one of a VS bug on a certain configuration. Try to uninstall whole VS and then install latest version again. Try another PC if you can.
I tried this, did not work for me.

Visual Studio for Mac- Error CS1902

I just recently swapped my MS PC for an Mac, I'm trying to continue working on an MVC project, but I'm getting an error (Error CS1902: Invalid option 'portable' for /debug; must be full or pdbonly (CS1902)).
Are there any good documents that explain how to make it work? I have seen people porting MVC to .NET Core, but I can't get the analyser to work on my Mac (not sure it's supported yet).
I did two things.
I update the Microsoft.Net.Compliers via nuget.
https://www.nuget.org/packages/Microsoft.Net.Compilers/
Change one value in the properties of project.
https://johnharold.wordpress.com/2017/08/16/csc-error-cs1902-invalid-option-portable-for-debug-must-be-full-or-pdbonly-cs1902/
I wish you can solve the problem
I had this same problem when trying to use Visual Studio for Mac to build a solution that works fine in Windows. Turns out the /debug:portable flag was being passed to the build command, even though the 'Debug Information' was correctly set to 'Full' in my project settings. Search the build output for 'portable' and you will indeed find the flag there regardless of your settings.
The fix is to upgrade the Microsoft.Net.Compilers nuget package. In my case, it upgraded from 1.0 to 2.7, and then the project built successfully.
Right click on the project in the solution explorer and go to
Options, Build, Compiler and change Debug information to Full

Why Xamarin downgrade Forms versión when i try yo update GooglePlayServices.Maps

I have to update my Xamarin project with múltiple solutions (android, iOS, winPhone). So i use the Manage NuGet Packages, when i try to update the Xamarin.GooglePlayServices.Maps package, VS shows me this
Why Xamarin.Forms decrease the versión?
Why Xamarin.Forms decrease the versión?
The latest Xamarin.GooglePlayServices.Map(32.961) requires the latest Xamarin.Android.Support 24.2.1, which is not compatible with Xamarin.Forms.2.3.1 yet.
So currently, it is not a good idea to update Xamarin.GooglePlayServices.Map to the latest version in Xamarin.Forms project.

Xamarin.Android SDK and Xamarin.iOS SDK missing during Xamarin Studio Installation - Windows 8

As well as Visual Studio 2013 extention Xamarin is missing.
Do need to track these down and install manually? I've been trying but I'm a bit lost!
Thanks.
UPDATE: I found Xamarin Studio in the Program Files. A search did not bring it up. It seems to be working fine.
I am glad you found it, also you may want to take a look at the Add/Remove Programs and there you will see both Xamarin.Android and Xamarin Studio. Xamarin.iOS can install but will not run without a Mac machine in the network it can connect to to build.
Good luck with Xamarin - it is the most exciting thing currently in cross platform mobile technology.

Reference error .netportable 4.0 profile136 profile is not installed

Suddenly I started getting reference errors in my Portable Class Library projects,
When referencing System, System.Core, System.Xml I get
.netportable 4.0 profile136 profile is not installed
It used to work fine a few days ago so I'm not sure if a recent update would have caused this issue. I did switch back and forth from stable to beta, and back to stable update channel. Does anyone know what might be causing this error?
Does this happens on MAC? you might need to reinstall Xamarin Studio

Resources