Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [vs-code]

Visual Studio Code is a free source code editor developed by Microsoft for Windows, Linux and macOS. When the "Salesforce Extensions for VS Code" are added it: supports syntax highlighting and intelligent code completion for Apex, Visualforce and Lightning Components; works well with SFDX including with scratch orgs; supports debugging. Git UI is built in. Many other extensions are available.

4
votes
3answers
627 views

Deploy lightning web component is getting failed with error - “--json --loglevel fatal ended with exit code 1”

I am trying to deploy a lightning web component to the org using vs-code but getting the error. Starting SFDX: Deploy Source to Org 10:09:14.43 sfdx force:source:deploy --sourcepath d:\Aakriti\...
0
votes
3answers
564 views

Cannot connect a Salesforce org using Authorize an org in VS Code

Using VS Code, after I enter the command line "Authorize an org" I get redirected to Salesforce login and can successfully log in. However I then get the error "This site can't be reached" The URL ...
2
votes
1answer
35 views

Update sObjects in .sfdx/typings

I have a VSCode SFDX Project that we use to develop LWCs, and we recently changed some object names in the Org and now I can't upload anything to our Org. I found that there is a command to refresh ...
2
votes
1answer
110 views

ERROR: Cannot create an AuthInfo instance that will overwrite existing auth data

Background I get this error message: ERROR: Cannot create an AuthInfo instance that will overwrite existing auth data. In the VSCode output panel, when I try and run a unit test: Starting Run ...
2
votes
1answer
1k views

Java runtime could not be located” when starting VSCode with the Salesforce Extensions - Java Installed

I have followed the steps suggested on "Java runtime could not be located" when starting VSCode with the Salesforce Extensions. But now I still getting the following error " Code Editor ...
1
vote
1answer
166 views

Setup Salesforce(Sandbox) project in Visual Studio Code and integrate source control with Bitbucket

I am new to VS Code, things I was able to do separately are Create a Salesforce Manifest project and authorize the org, Retrieve/Deploy are good. Have a repository on Bitbucket, cloned it on the VS ...
1
vote
1answer
491 views

Installing SFDX

I am trying to install sfdx on my windows 64 to create lwc, I have VS code with salesforce extension and lwc extension. I downloaded sfdx cli from here. https://developer.salesforce.com/tools/sfdxcli ...
0
votes
1answer
34 views

Error while creating Heroku pipeline from VSCode

So, I am trying to create Heroku pipeline from VSCode. I ran the command ./setup.sh In my setup.sh file I've set HEROKU_APP_NAME and verified "Usernames or aliases of the orgs you're using" and also ...
0
votes
1answer
104 views

VSCode Debug Add Configuration error Cannot read property 'openConfigFile' of undefined

I created a Salesforce project in VSCode and when I try to debug Apex Classes adding a Debug Configuration I get the following error: Cannot read property 'openConfigFile' of undefined I'm using the ...
0
votes
1answer
168 views

Deploy metadata to different org using VS Code

When I used Illuminated Cloud (IC), I could deploy the metadata in the workspace to another org by selecting the Deploy All Metadata option from the context menu and select a different org to deploy ...
0
votes
1answer
88 views

Salesforce CLI Authorization timeout

I am attempting to setup VS Code with Salesforce CLI. I am experiencing issues when attempting to authorize my Sandbox. When I attempt to authorize, I enter the MyDomain login page address and set ...
0
votes
1answer
381 views

Salesforce Extension Pack Not Working in VS Code

I have a co-worker that installed the Salesforce Extension Pack for VS Code. There is no go to definition for apex code and it is not possible to run tests. We have tried uninstalling all extensions ...
2
votes
0answers
18 views

How to setup ESLint in VSCode to work with every project?

Below is the process I am doing in VSCode to setup for every project I create: run command npm init from project folder and this is creating package.json file. Run the command eslint --init and it ...
2
votes
0answers
28 views

How to get Twilio for Salesforce Apex API intellisense in VSCode

I have this Twilio package installed (in both environments): Twilio for Salesforce: Production / Sandbox I am using VSCode to build against the Apex Query Library: Example Apex TwilioSF....
2
votes
0answers
431 views

command 'sfdx.force.project.with.manifest.create' not found

I've installed the latest versions of VScode, the Salesforce CLI, and the VS code Salesforce CLI Extension but when I go to run SFDX: Create Project with Manifest or any SFDX command, I receive an ...
1
vote
0answers
21 views

VSCode is checking my static resource JS files as if they are LWC

I have some JS files in a static resource. I pulled code from a Production org and converted to DX format for convenience. I am noticing when I open them in VSCode I get errors like "LWC1007: c:\foo\...
1
vote
0answers
43 views

Im not able to see “Authorize an Org” in my command palette

I have installed the Cli and Salesforce Extension pack. Why can I not see "Authorize an org" in my command pallet?
1
vote
0answers
30 views

Use Semantic Completion with Tabnine in VsCode

Have any of you tried to use TabNine Semantic Completion with VsCode? I tried to use the configuration below but it always crashes. Just want to make those three great tools to work smooth (VsCode, ...
1
vote
0answers
115 views

'ENOENT': spawn cmd ENOENT error while authorizing sandbox org in VSCode

Hi I have installed VS Code and salesfoce CLI, extensions also. I have created my first project. When i am tryin to authorize org in it i am getting below error: Starting SFDX: Authorize an Org 14:...
1
vote
0answers
58 views

SFDX: retrieve Source from Org failing

In order to connect my VSC to my org and pull my org's datas to VSC, I followed the steps this great video shows ; In Visual Studio Code I : - SFDX: created project with Manifest - in the manifest -> ...
1
vote
0answers
264 views

Deploy Source in Manifest to Org - ended with exit code 1 and no response in problem tab

I have a local Salesforce DX project with a package.xml manifest file. The project has been authorised against a fresh developer org. I want to deploy all my local code in one go, so I am using the ...
1
vote
0answers
271 views

How can I deploy a single metadata element with ForceCode

I'm pretty new to the world of Visual Studio Code and the ForceCode plugin. I can't seem to find an easy way to manage multiple environments or deploy from one environment to another without changing ...
1
vote
0answers
114 views

Salesforce DX using Visual Studio Code Debugging Scratch Orgs

Learning more about using Visual Studio Code and Salesforce DX Latest video from salesforce.org apps team https://www.youtube.com/watch?v=CgvYKDqb6Ng Anyone have any luck using the Apex Debug ...
0
votes
0answers
68 views

Cannot create a scratch org, getting “ERROR: Cannot read property 'HANDSHAKE' of undefined.”

I followed steps in https://trailhead.salesforce.com/content/learn/projects/set-up-your-lightning-web-components-developer-tools/create-a-lightning-web-component : installed CLI, updated VS Code, ...
0
votes
0answers
47 views

sfdx.force.test.view.refresh not found

Summary When trying to use the integrated test side bar, no tests are being displayed. When clicking on "refresh" an error message is displayed saying "command 'sfdx.force.test.view.refresh' not ...
0
votes
0answers
35 views

VS code adds quotes in LWC

This is infuriating. I copy and paste this html from the trailhead module: <template> <lightning-card title="HelloWorld" icon-name="custom:custom15"> <div class="slds-m-...
0
votes
0answers
95 views

SFDX VSCode Workspace with Multiple Orgs

I'm working on combining several orgs into a single org. As part of my requirements, until the process is complete, I created some code that syncs up data from the "primary" org back into 3 "legacy" ...
0
votes
0answers
32 views

Load report-meta directly in production (testLevel problem)

Since in my org we made some (heavy) changes to the custom objects, we also had the need of redoing all the reports (yeey, such luck!) So what I did, was simply to download all the reports locally, ...
0
votes
0answers
422 views

SFDX: Authorize a Dev Hub command

I get "sfdx force:auth:web:login --setdefaultdevhubusername ended with exit code 1"
0
votes
0answers
99 views

DX extensions not found in VS Code not recognised - ubuntu setup

i'm working with VS Code 1.29.1 and have installed SFDX 44.7.0. When I am trying to [CTRL]+[SHIFT]+P and use the shortcut commands, i'm getting the error command 'sfdx.force.apex.class.create' not ...