Comments (12)
I encountered a similar issue on my desktop with the latest version of VS Code (1.20) on Windows Server 2016; in the Developer Tools Console there was a message (that I regretfully did not screen capture) informing me the Salesforce vscode extension could not find the module './util/root'. I believe I may have reloaded the window after a small extension had finished updating but not before the Salesforce extension had finished updating. Removing and adding the Salesforce extension back to VS Code did not fix the issue for me, but may for others.
To fix I closed VS Code, went to %USERPROFILE%\.vscode\extensions
and deleted every folder beginning with "salesforce." The following command will print out the folders to be deleted, and can delete them by removing the echo
:
for /f %i in ('dir /a:d /s /b %USERPROFILE%\.vscode\extensions\salesforce*') do echo rd /s /q %i
Linux / Mac users: I think rm -rf ~/.vscode/extensions/salesforce*
should work, but as with all rm -rf
suggestions use with caution.
After this open VS Code, and the Salesforce extension should be missing from your extensions section (CTRL+SHIFT+X
). After installing the Salesforce extension and reloading the window the SFDX commands should be available once more.
Two of the symptoms of this issue for me were the Salesforce Extension taking a strangely short time to install when removing/reinstalling the extension through the VS Code UI without deleting the files, and not getting the error informing me Java could not be found if I removed the "salesforcedx-vscode-apex.java.home" setting in my User Settings. If this setting is not needed for you, then this won't be a problem in the first place.
from salesforcedx-vscode.
@lcampos This actually isn't the same thing. The issue in this issue is that the extension won't activate if the sfdx-project.json
isn't valid, but there is no way to figure out why. The proposed fix is to always load the extensions if the sfdx-project.json
file exists, regardless of if it is valid or not. Once the extension is loaded, you would then be able to open the file and use the schema validation to determine that the file is invalid.
from salesforcedx-vscode.
@VodkaSurprise - Hello , I am also facing the same error even after the deletion of all salesforce files from extensions folder.
I am getting only Sfdx create project command. Select that command shows error "no command found" .Your insight on this topic will be very helpful for me.
from salesforcedx-vscode.
We have made several improvements to the extension since this issue was created. Please reopen if you still have this issue.
from salesforcedx-vscode.
@Youpala - Very weird. I see that you have sfdx-project.json available at the top level.
This might be related to https://github.com/forcedotcom/salesforcedx-vscode/wiki/Troubleshooting#extensions-malfunction-after-update
BUT before you do that, could you try the following:
- What happens if you try to execute the SFDX: Create Project command? I suspect that it actually fails but could you confirm?
- In the VS Code menu bar, select Help > Toggle Developer Tools, click Console, and search for relevant messages. What errors do you see?
from salesforcedx-vscode.
@Youpala - Any updates on your side? I've not been able to reproduce this issue on my side.
from salesforcedx-vscode.
from salesforcedx-vscode.
@VodkaSurprise - Thanks for the insight.
I believe I may have reloaded the window after a small extension had finished updating but not before the Salesforce extension had finished updating
I speculate that it is possible to get into a weird state where an extension (not just ours) isn't fully installed yet. If you were to reload/close the window before it finishes installing, then the extension is not completely installed. This will explain the "could not find module ./util/root since it could be missing certain portions.
from salesforcedx-vscode.
I solved this issue for myself. The problem was due to inproper sfdx-project.json file.
I create a folder and added sfdx-project.json as
{
"packageDirectories": [
{
"path": "force-app",
"default": true
}
],
"namespace": "",
"sourceApiVersion": "42.0"
}
Then try to run the command, and it worked perfectly.
from salesforcedx-vscode.
Closing this since release v44.6.0 now has schema validation for sfdx-project.json
and project-scratch-def.json
.
from salesforcedx-vscode.
I see, thanks for clarifying it @ntotten
from salesforcedx-vscode.
I am getting the below Invalid Version Number Error while authorizing Sandbox from VSCode:-
From PROBLEM section of VS Code:-
Unable to load schema from 'https://forcedotcom.github.io/schemas/sfdx-project.json/sfdx-project.schema.json': write EPROTO 815493656:error:100000f7:SSL routines:OPENSSL_internal:WRONG_VERSION_NUMBER:../../third_party/boringssl/src/ssl/tls_...
From OUTPUT section of the VS Code:-
ERROR running force:auth:web:login: tunneling socket could not be established, cause=write EPROTO 7008:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:c:\ws\deps\openssl\openssl\ssl\record\ssl3_record.c:252:
from salesforcedx-vscode.
Related Issues (20)
- Change Default Org does not show the already connected orgs. Unable to change the Default Org HOT 4
- Unable to change the default org if nodes in config.json are not in the right order HOT 3
- Command 'SFDX: Launch Apex Replay Debugger with Current File' resulted in an error HOT 4
- Apex extension stopped working in big repos HOT 8
- RuntimeNamespace error HOT 5
- Code coverage highlighting no longer displaying and returns error message on Apex v60.8.0 HOT 10
- SFDX: Authorize an Org failed to runv HOT 7
- Failure performing refresh sObject describe request HOT 28
- Apex Tests Sidebar includes non-existent Apex Test Classes HOT 9
- 'Expected double-quoted property name in JSON at position 62273' Code Coverage NOT WORKING HOT 2
- sfdx apex:test:run command in CI passes run with lower test coverage HOT 2
- Apex Language Server Fails to Start - Expected the service ApexIndexer [FAILED] to be RUNNING HOT 5
- The unpackaged Apex tests execution after unit tests execution should fail when the code coverage is less than 75% HOT 3
- The Outline window gets broken if there is an abstract method in the class HOT 3
- Issues retrieving code coverage for a large codebase HOT 12
- Running Interactive debugger doesn't show Variables HOT 5
- Very slow
- The test class runs very slowly HOT 6
- Error when the command npm i @salesforce/lwc-dev-server HOT 3
- LWC LightningComponentBundle is not working for target in vs code HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from salesforcedx-vscode.