ForceCode extension hangs at 'Forcecode loading...' message
See original GitHub issueDescribe the bug The ‘ForceCode loading…’ message shows and does not progress.
To Reproduce Steps to reproduce the behavior: This happens in all projects, new and old, whether other extensions are installed or not, but this will give a bare-bones view:
- Open new project in VSCode
- Select command ‘ForceCode: Create Project’
- Select the project’s folder
- Observe that this is the project structure:
- force.json
- sfdx-project.json
- src/ {empty}
- Nothing else happens, so restart VSCode
- Select ‘New Org’
- Select anything from the next dropdown (e.g. ‘Sandbox / Test’)
- Select either ‘Yes’ or ‘No’ (to ‘automatically deploy code…’)
- Nothing else. ‘Forcecode loading…’
Expected behavior My colleague expects a browser window to open at ‘New Org’, and the ‘ForceCode loading…’ message to be replaced by a menu button.
Desktop (please complete the following information):
- OS: [e.g. Windows]
Windows 10 x64 (10.0.17763)
- VSCode version [e.g. 1.29.0]
1.33.1
- ForceCode Version [e.g. 3.10.3]
3.16.0
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created 4 years ago
- Comments:14
Top Results From Across the Web
ForceCode - Visual Studio Marketplace
This extension is a companion for SFDC (Salesforce.com) development with Visual Studio Code. It is targeted at developers who want a ...
Read more >Troubleshooting Common Issues | Salesforce for VSCode
Here's some information on how to get past roadblocks that you might encounter while using Salesforce Extensions for VS Code.
Read more >Visual Studio Code + ForceCode not working?
1 Answer 1 · Update VSCode to the latest version (1.13.1) · Remove ForceCode extension and dependencies · Reload VSCode · Install ForceCode...
Read more >why socket hang up error comes while trying to retrieve source ...
While im trying to retrieve source from org, Im getting error as.... "Error authenticating with the refresh token due to: socket hang up"....
Read more >ForceCode - Bountysource
ForceCode is a Visual Studio Code extension for Salesforce development ... Getting this error on force code extension loading. To Reproduce
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
To help anyone reviewing this issue, here are the important bits for the workaround:
type
netsh interface ip show excludedportrange protocol=tcp
into your terminal which lists a series of port ranges. Find a port not in the list, and add it as the value to aoauthLocalPort
field on the root level object ofsfdx-project.json
But do see the referenced forcedotcom/salesforcedx-vscode#1296 to see how to use port 1717
@rendall Just FYI: I gave up killing port for 1717, and I red some other issue, that user did change default app browser to smth like MS Edge. Unbelievable, but it solved this issue: Cannot start the OAuth redirect server on port PortInUseAction. GoogleChrome didn’t start, but Edge did. Weird issue. Sorry for too many words. Kind regards