auto-suggest stopped working on my notebook - pyspark

After switching between clusters (detach/attach), the auto-suggest feature stopped working for me on the current notebook I work on and I can't get auto-completion when I type the TAB key after a period, I get: 'no suggestions'.
I tried to delete cookies, but it didn't help.
Any idea why and how can I fix it?

It's not enough that cluster is attached, cluster must be started and a query run for autocomplete to be working.

Related

Hover getting automatically disabled in VSCode

Since few days, the hover popup in my VSCode gets disabled automatically for the current user.
Basically, the property #id:editor.hover.enabled hover is unset for User, but remains checked for Workspace.
Anyone of you started facing this issue recently?
These are the list of extensions I'm using:
albert.TabOut
amazonwebservices.aws-toolkit-vscode
BrijeshBumrela.bhailang-extension
cweijan.vscode-database-client2
cweijan.vscode-office
dbaeumer.vscode-eslint
donjayamanne.typescript-notebook
eamodio.gitlens
GrapeCity.gc-excelviewer
jsayol.firebase-explorer
kevinglasson.cornflakes-linter
mintlify.document
ms-azuretools.vscode-docker
ms-python.python
ms-python.vscode-pylance
ms-toolsai.jupyter
ms-toolsai.jupyter-keymap
ms-toolsai.jupyter-renderers
ms-vscode-remote.remote-containers
ms-vscode.cpptools
ms-vscode.vscode-typescript-next
natqe.reload
RandomFractalsInc.vscode-data-preview
redhat.java
redhat.vscode-yaml
sourcery.sourcery
TabNine.tabnine-vscode
VisualStudioExptTeam.intellicode-api-usage-examples
VisualStudioExptTeam.vscodeintellicode
vscjava.vscode-java-debug
vscjava.vscode-java-dependency
vscjava.vscode-java-pack
vscjava.vscode-java-test
vscjava.vscode-lombok
vscjava.vscode-maven
I tried setting the key manually and it works, but couldn't figure out why it gets unset in the first place. Have done enough google search, but none reported this issue
The root cause has been identified here: https://github.com/microsoft/vscode/issues/165988#issuecomment-1329367779
It's caused by AWS Toolkit (CodeWhisperer).
Have cut an issue with them to get it fixed: https://github.com/aws/aws-toolkit-vscode/issues/3014
Will update once the fix is rolled out by them
Update:
The issue is fixed as of AWSToolkit 1.60.0
It is due to RedHat VSCode extension, you can view it in Output > Log (Window) terminal. Can't even remove the extension as thats required to read JUnit test cases.
Note : I wanted to add a commit, but don't have enough reputation to add a comment. Please don't downwote.

VSC Remote SSH - How to fix reconnection problems?

When using VSC Remote SSH, I am constantly getting the error "Cannot reconnect. Please reload the window.". Upon clicking "Reload Window", the window reloads and I receive the same error.
Sometimes I am also getting the following notification: "The terminal process failed to launch: A native exception occurred during launch (forkpty(3) failed)."
More errors showing here:
screenshot
I tried to find the solution but nothing worked for me, any suggestions? I tried:
Reinstalling extension
Deleting the VS Code + cache directory on the server
Restarting server
Update 17-01: Today it worked fine for around 2 hours. It randomly stopped working while I was typing a few lines of code without doing something else like saving, adding or delete files. The message is still te same and did not found any solution yet.
I had this same issue recently, for me it looks like disabling the wix.vs-code.import-cost extension remedied the issue.
This is probably because I am using private registries for npm packages and that could easily cause issues if attempting to load the private modules from any public source, but I didn't really look into it, so this is just my best guess.

Why am I getting an error when loading webviews in VS Code?

I'm using a portable install of VS Code 1.56.1 on Windows 10. Whenever open an extension from the marketplace, I get the following error:
Error loading webview: Error: Could not register service workers: TypeError: Failed to register a ServiceWorker for scope ('vscode-webview://extensioneditor/') with script ('vscode-webview://extensioneditor/service-worker.js?platform=electron&id=extensionEditor&vscode-resource-origin=https%3A%2F%2FextensionEditor.vscode-webview-test.com'): ServiceWorker cannot be started.
Same thing happens for other things using webviews, with a slightly different path (like VS Code release notes). I'm able to install plugins and view the Feature Contributions tab, but I cannot view the Details and Changelog tabs.
Any thoughts on what could be causing this? This is on a managed machine where security settings might be changing. I'm using a portable install because my installed version stopped working out of the blue last week and this was supposed to be the workaround until that was figured out.
I was getting the same error, it looks like an issue introduced on version 1.56.0.
For me the fix was running VS Code without elevated permissions.
I always run as administrator and running without it fixed the issue for me.
I had this problem, in terminal use code . --no-sandbox
Updating python3 to the most recent version may also help.

Error Logs in Newly setup Working Environment

After setting up my new laptop to work with VS Code and flutter, I noticed that while running an app, there is a big Error Log in the terminal. Is there any way of getting rid of this?
It's working perfectly in other system. Therefore, I don't think it has something to do with my code.
All help is appreciated.
Thanks!

service fabric local cluster exception from 0x80071BFF

I created a solution with a few applications, and it worked perfectly. But a day later when I was about to debug the solution again, it suddenly cannot start.
I did have firewall and AV disabled, both when it worked and later when it didn't work.
It works fine when deployed to azure, but not locally.
The error thrown is:
Exception from HRESULT: 0x80071BFF
at System.Fabric.Interop.NativeRuntime.FabricGetNodeContext()
at System.Fabric.FabricRuntime.NativeFabricRuntimeFactory.GetNodeContextHelper()
at System.Fabric.Interop.Utility.WrapNativeSyncInvoke[TResult](Func`1 func, String functionTag, String functionArgs)
A related post register-servicefabricapplicationtype-on-a-secure-cluster-always-times-out
describes a similar thing.
However, I get this while debugging locally and with smallest possible application: I even just created 1 application, 1 actor, did no changes, hit F5 and I get this error.
So, I looked at service-fabric-troubleshoot-local-cluster-setup and while I also get the TypeInitializationException, the solution of:
Your path variable was not correctly set during installation. Please sign out of Windows and sign back in. This will fully refresh your path.
did not work at all.
Nothing else on that page seemed to be related.
Now I begin to feel that I've hit the end of what key words I can google, and still I have no idea what to do.
Any help would be greatly appreciated.
EDIT:
I've tried starting via cluster manager and apps can still not start.
I've removed apps, removed cluster, tried with new solutions, over and over. The only thing I haven't tried is reinstalling SDK and VS. I'm a bit reluctant to reinstall VS, so I'd hope to find some clues before resorting to that.
UPDATE1:
Now I reinstalled Service Fabric v. 5.3.311.9590, SDK and Tools.
Created a solution, added a stateless service. Hit F5. The exact same error is thrown.
I will now try to install on another machine with mostly the same configuration.
UPDATE2:
Installed the SDK on an identical VM, Win10, also with VS2015 Update 3. Created solution, added 1 actor, hit F5 and also on this macchine the exact error is thrown.
I tried Debug without debugging (as mentioned here) to attach later. But the application never starts. It is failed. This is the same on both the machines.
It all worked and from one day to the other it doesn't, and it's a problem that I cannot find anywhere on the net. What can this be? I found that the security updates from windows was made about the same date this happened...
I will uninstall and try again.
UPDATE3:
Uninstalling security update was not possible, but I could hide a couple of other updates. To no luck though.
From here I found this https://github.com/Azure/service-fabric-issues/issues/15 and realised I actually was very low on diskspace, and so I increased it (hyper-v manager) to 20 gigs free. But no, still the same problem.