flutter in vscode: need to way a long time before ctrl + . showing suggestion popup - dart

I recently have the issue that ctrl + . in vscode for my flutter project does not pop up suggestions immediately (need to wait a very long time). A blue process bar keeps running but nothing happens.
When I move the cursor to the error, I see "Checking for quick fix". Ideally, here should be a link to the quick fixes.
When I press ctrl + space, I get this
VsCode version: 1.75.0
Flutter version: 3.3.7
Dart version: 2.18.4
There are no customised settings. I am using the recommended one.
Thank you

Related

Spyder 5.3.3. switch to editor shortcut, copy and paste a file in the project file tree [duplicate]

I'm on Windows 10 and recently updated to Spyder 5.3.3 standalone version and the keyboard shortcut to switch to the editor pane (default Ctrl+E) will not work no matter what I try, it simply has no effect.
I've tried reinstalling Spyder, resetting everything back to defaults multiple times, changing to different keyboard shortcuts than Ctrl+E, trying to switch to the editor pane while having various other panes selected (different contexts), but nothing helps. I can switch to all other panes (like the console with Ctrl+I, etc) just fine and so far all of the other key shortcuts I'm used to work but this one is the most impactful and I can't get it to work. I opened my previous version of Spyder 4.X and the Ctrl+E works fine from any context as expected.
Any ideas on what the issue could be?
Same issue here, and I think the issue started with the upgrade from 5.3.2 to 5.3.3 only. Before that it still worked.
The issue appears to be version-specific.
Have upgraded from 5.3.3 to 5.4.0, and the shortcut is working again.

Not able to use FSI on VS code

since few days, I'm not able to use FSharp Interactive interpreter(Alt + Enter), it's giving me this message:
*Failed to spawn FSI, please ensure it's in PATH*
also, if I run the script, it give me connect ENONNREFUSED 127.0.0.1.8397
I'm using:
- Ubuntu 16.04
- Visual Studio Code 1.28.2
- Ionide-sharp 3.28.0
anyone have an idea to fix this?
Thanks in advance
I think the main cause is the last update done. I have made a rollback and now everything is back to normal:
remove ionide-fsharp from VS code
click on https://github.com/ionide/ionide-vscode-fsharp/releases/download/3.27.0/Ionide-fsharp-3.27.0.vsix to download previous version of ionide (v 3.27.0)
unzip the file. once the file is unziped, you will have 2 text files and a folder named extension. Rename that folder ionide.ionide-fsharp-3.27.0
on your terminal, type:
cd ~/.vscode
cd extensions/
mv /home/####/Downloads/Ionide-fsharp-3.27.0.vsix_FILES/ionide.ionide-fsharp-3.27.0 . (don't forget the dot at the end to move the folder to the new location )
it should add ionide.ionide-fsharp-3.27.0 into VS Code extensions
you need to turn off auto-update in VS Code (in VS Code, in the bottom left conner, click on Setting icon > click on Settings > in the field Search setting, type update and search, you should then search in the result for Extensions: Auto Update)
You can fix this just by installing .NET Core SDK from this link https://www.microsoft.com/net/learn/dotnet/hello-world-tutorial

Vscode autocompletion shows if only space bar pressed

I'm using vscode for my flutter application. but, autocompletion only shows up when I pressed space bar first. I'm new to vscode configuration, could you help me ?
I suspect you hit this issue:
https://github.com/Dart-Code/Dart-Code/issues/1374
It's fixed in the latest version of the Dart plugin. If you're still seeing it, please open a new issue on GitHub and I'll take a look. Thanks!

Android Studio 3.0 - SDK path not specified

I tried to update Android Studio to 3.0 but got some crazy error, so I uninstalled AS and installed AS 3.0, but now when I try to open a file, I get an "SDK path not specified" error and nothing I select is accepted.
I cannot find any file called "android-sdk" or something similar, which is what most of the other solutions on Stack Overflow suggest selecting.
How do I fix this?
Right now I'm trying this, but no clue if it will help:
1. I went to File -> Settings -> System Settings -> Android SDK
2. I specified C:\ProgramFiles\Android and it's installing.
UPDATE: This more or less worked. I had to install a million updates afterwards, but it solved the problem.
This is halfway there. I found going through the File -> Settings tree that even though I hadn't selected NDK (Native) options, the folder names must not contain spaces. I created an Android/SDK folder tree on a spare drive all its own to alleviate this concern by AS.
Then without a space in the name, I was able to choose SDKs to download, and so it has begun.
Your question and self-confirmation of a work around got me there after I, myself was looking for a couple weeks. Thanks
This is the MOP (Method of Procedure) for this:
Took me a while to figure this out as the documentation is not clear on this at all. Cancel the dialogue box asking for the Android SDK path and do the following:
Open Android Studio IDE. Find the down arrow icon, should be second last icon in the toolbar. Click that. You will see a path for Android SDK Location:. Click the edit link to the right of that. This will bring up the SDK Components Screen. If you can check the boxes there, check them. They may already be checked or they may be disabled. You can leave the path as is, for me its:
C:\Users\<user name>\AppData\Local\Android\Sdk
Depending on whether you had Android Studio before it may say it has detected a previous version and it will only download the components it needs. This is normal. Now click the NEXT button. A confirmation screen will come up with Setup Type and SDK Folder. If you want to change your SDK Folder this is your last chance, if not, click NEXT again.
It may bring up a Terms & Conditions screen, click the Accept radio button then NEXT. It will go and download the Android base SDK. When it's completed click FINISH.
You will then be taken to the Platforms screen where you can select which Android platforms you want to support. ie, Android 9.0 (Pie), Android 8.1 (Oreo). Select all the platforms you need then click APPLY.
The downloader will grab all those packages for you. Next, click the SDK Tools tab. Check the boxes of the tools you want and click APPLY. It may bring up a Terms & Conditions screen again, click the Accept radio button then NEXT. When completed just click FINISH and you're good to go.

Instant Run or Hot Reloading for Xcode

I am an Android Developer and recently started learning Swift. There is a cool feature in Android studio called Instant Run, that significantly reduce the build and deploy times for incremental code changes during coding.
Introduced in Android Studio 2.0, Instant Run is a behavior for the
Run and Debug commands that significantly reduces the time between
updates to your app. Although your first build may take longer to
complete, Instant Run pushes subsequent updates to your app without
building a new APK, so changes are visible much more quickly.
If you enable Instant Run on Android Studio, There is no need to build and run the app from scratch, specially when you are working on some detail View Controller in the middle of the app (storyboard).
I am curious to know if this feature or sth similar is available in XCode or I must run the app from scratch every time I want to test the app?
THERE IS A WAY !
I've found this question a while ago, and conclude that there weren't any way to have a real instant run in iOS.
BUT ! I've recently found an awesome lib that allow you to bring to iOS this awesome feature. I share it here because it became essential for me and I would have loved to found it when I came here the first time. It's called Injection for Xcode and it take the form of a plugin. The installation is a little long because of new Xcode limitations. You will have to patch Xcode to be able to run plugins in it. You can find all these informations in the Read Me or in the "Issues". It can take up to 30 minutes, but this plugin is a real time saver !
Once it is installed, run your app as usual with Xcode (CMD + R). Then, change code somewhere in a controller. Now, click CTRL + = to use the Injection plugin. You won't see any reloading in your simulator, but if you try you will see that your code changes has been taken (in a few seconds!).
For example you have this line :
self.view.backgroundColor = [UIColor blackColor];
After your app is running with CMD + R, change the line to :
self.view.backgroundColor = [UIColor whiteColor];
Press CTRL + =, and enjoy !
Hope this helps somebody ! If you have any questions (for installation or other), please ask me in comment.
if you used that SwiftUI use the next option when your device is connected!!!
and press: cmd + s
You can select the initial - viewController for your project either from the storyboard or programmatically; to the view, which you only need to load at the time for testing.
But, You actually don't need to worry about compiling your code from scratch. This is kind of automate behavior for xCode, as it only compiles your code which you have changed.. You may notice this within your files hierarchy as shown below:-
The 'M' & 'A' at the side of files refers to; 'Modified files' &
'Added files'
The files without modification; after a build, won't take as much time to build.

Resources