VSCode PowerShell Extension failed to initialize - powershell

I'm just trying to activate my python virtual environment with Activate.ps1 but I'm getting the error
"PowerShell Editor Service client: couldn't create connection to Server.
I've tried to reinstall VSCode several times and cleared all the cache but nothing...
Any ideas?
This is the error I'm getting
[Warn - 2:20:50 pm] OmniSharp.Extensions.LanguageServer.Server.LspServerOutputFilter: Tried to send request or notification before initialization was completed and will be sent later OmniSharp.Extensions.JsonRpc.RequestCancelled | #Request='OmniSharp.Extensions.JsonRpc.RequestCancelled'
[Error - 2:21:26 pm] Connection to PowerShell Editor Services (the Extension Terminal) was closed. See below prompt to restart!
[Error - 2:21:26 pm] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 2:21:26 pm] PowerShell Editor Services client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 2:21:26 pm] Sending request powerShell/getCommand failed.
Message: Pending response rejected since connection got disposed
Code: -32097

I ended up reinstalling PowerShell and now it's running again

Related

How do I get Codebook to run Rust (installed by conda) in VS Code

I have installed Anaconda 3 and VS Code on Windows 10. I am interested in running Rust in a notebook, and I found CodeBook which seemed to fit the bill. I installed Rust using conda in an environment conda create -n rust_env -c conda-forge rust, and then installed the rust-analyzer extension in VS Code and created a markup document which I opened in CodeBook.
However, when I try to run a cell, I find that rust-analyzer has scanned 0 of 0 roots and "failed to load workspace 'cargo' - program not found".
If I activate the rustenv using conda in the terminal I can run cargo --version, but it seems that CodeBook is not running Rust in the right environment. Any idea how I can set this?
I cannot find any help in the rust-analyzer manual:
https://rust-analyzer.github.io/manual.html
VS Code showing conda environment in terminal
UPDATE: I have added the rust executables to the path:
C:\ProgramData\Anaconda3\envs\rustenv\Library\bin
Now there are server errors...
[Info - 2:10:43 pm] Connection to server got closed. Server will restart.
[Error - 2:10:43 pm] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 2:10:43 pm] Rust Analyzer Language Server client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 2:10:43 pm] Restarting server failed
Message: Pending response rejected since connection got disposed
Code: -32097
[Info - 2:10:45 pm] Connection to server got closed. Server will restart.
[Error - 2:10:45 pm] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 2:10:45 pm] Rust Analyzer Language Server client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 2:10:45 pm] Restarting server failed
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 2:10:45 pm] The Rust Analyzer Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
I don't understand what this means...

Not able to run azure logic apps locally using VScode and Azurite

I am using VSCode to create and test my logic apps locally. I have created a simple HTTP trigger and response for it. I have installed all the components and versions correctly. I am getting below error when I run my logic apps,
**Workflow Error: operationName='WorkflowDefinitionProvider.ProcessWorkflow', message='Workflow 'test-1' validate and create workflow failed, the error is 'One or more errors occurred. (Unexpected HTTP status code 'NotFound'.) (Unexpected HTTP status code 'NotFound'.)'', exception='System.AggregateException: One or more errors occurred. (Unexpected HTTP status code 'NotFound'.) (Unexpected HTTP status code 'NotFound'.)
[2022-05-03T02:52:23.134Z] ---> Microsoft.WindowsAzure.Storage.StorageException: Unexpected HTTP status code 'NotFound'.
[2022-05-03T02:52:23.136Z] ---> System.Net.WebException: The remote server returned an error: (404) Not Found.**
It is also giving me below error in the logs,
**ErrorCode:
[2022-05-03T03:08:44.593Z] ', extensionVersion='1.0.0.0', siteName='UNDEFINED_SITE_NAME', slotName='', activityId='00000000-0000-0000-0000-000000000000'.
[2022-05-03T03:08:44.595Z] The listener for function 'Functions.WorkflowDispatcher' was unable to start.
[2022-05-03T03:08:44.595Z] The listener for function 'Functions.WorkflowDispatcher' was unable to start. Microsoft.WindowsAzure.ResourceStack: Unexpected HTTP status code 'NotFound'. The remote server returned an error: (404) Not Found.**
The process to test that I am following,
Start azurite in VSCode
and then Execute function - func host start
Anyone has any clue or faced similar problems? I am using logic apps first time.
To be able to test HTTP triggers locally you need to
"To locally run webhook-based triggers and actions, such as the built-in HTTP Webhook trigger, in Visual Studio Code, you need to set up forwarding for the callback URL."
https://learn.microsoft.com/en-us/azure/logic-apps/create-single-tenant-workflows-visual-studio-code

Couldn't start client Azure Resource Manager Template in VS Code

Can someone please help to resolve this issue.
Error: Couldn't start client Azure Resource Manager Template in VS Code
[Error - 2:10:04 AM] Starting client failed
Error: spawn EPERM
at ChildProcess.spawn (internal/child_process.js:403:11)
at Object.spawn (child_process.js:562:9)
at c:\Users\noohauqu\.vscode\extensions\msazurermtools.azurerm-vscode-tools-0.15.3\dist\node_modules\vscode-languageclient\lib\main.js:347:40
Error: ARM Template Language Server: An error occurred starting the language server.

Azure Bicep Error - Error while attempting to retrieve the latest Bicep version

I'm trying to deploy using bicep from a Powershell terminal in VSCode behind a corporate proxy.
My command line is:
az deployment sub create -f .\main.bicep -l uksouth
If I'm joined to the VPN then I get the following error:
Error while attempting to retrieve the latest Bicep version: HTTPSConnectionPool(host='api.github.com', port=443): Max retries exceeded with url: /repos/Azure/bicep/releases/latest (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x04BC0058>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond')).
If I drop off the VPN then the error is:
Error while attempting to retrieve the latest Bicep version: HTTPSConnectionPool(host='api.github.com', port=443): Max retries exceeded with url: /repos/Azure/bicep/releases/latest (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])"))).
Any help on how to configure VSCode / PowerShell to make this work?

RHQ Agent does not install

I configured the rhq-agent.bat. When I try to run it. It has the followings errors:
2015-06-25 14:51:24,891 ERROR [RHQ Server Polling Thread] (enterprise.communications.command.client.JBossRemotingRemoteCommunicator)- {JBossRemotingRemoteCommunicator.init-callback-failed}The initialize callback has failed. It will be tried again. Cause: org.jboss.remoting.CannotConnectException:Can not connect http client invoker after 1 attempt(s) -> java.net.ConnectException:Connection timed out: connect. Cause: org.jboss.remoting.CannotConnectException: Can not connect http client invoker after 1 attempt(s)
2015-06-25 14:51:42,987 ERROR [main] (org.rhq.enterprise.agent.AgentMain)- {AgentMain.plugin-update-failure}Failed to update the plugins.. Cause: java.lang.IllegalStateException: The sender object is currently not sending commands now. Command not sent: [Command: type=[remotepojo]; cmd-in-response=[false]; config=[{rhq.send-throttle=true}]; params=[{invocation=NameBasedInvocation[getLatestPlugins], targetInterfaceName=org.rhq.core.clientapi.server.core.CoreServerService}]]
I could solve it myself the problem was the security token. I modified those fields in the registry vierwer (Windows). When I restarted the agent it worked.