question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ForceCode extension hangs at 'Forcecode loading...' message

See original GitHub issue

Describe 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:

  1. Open new project in VSCode
  2. Select command ‘ForceCode: Create Project’
  3. Select the project’s folder
  4. Observe that this is the project structure:
  • force.json
  • sfdx-project.json
  • src/ {empty}
  1. Nothing else happens, so restart VSCode
  2. Select ‘New Org’
  3. Select anything from the next dropdown (e.g. ‘Sandbox / Test’)
  4. Select either ‘Yes’ or ‘No’ (to ‘automatically deploy code…’)
  5. 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:closed
  • Created 4 years ago
  • Comments:14

github_iconTop GitHub Comments

1reaction
rendallcommented, Jun 6, 2019

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 a oauthLocalPort field on the root level object of sfdx-project.json

But do see the referenced forcedotcom/salesforcedx-vscode#1296 to see how to use port 1717

0reactions
EdgarsEvcommented, Jan 23, 2020

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found