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.

0
votes
1answer
22 views

unzip' is not recognized as an internal or external command

When i run this command in VS Code terminal unzip -o metadata/unpackaged.zip -d metadata i get an error like this unzip' is not recognized as an internal or external command, operable program or ...
1
vote
0answers
25 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
36 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\...
1
vote
0answers
16 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, ...
0
votes
1answer
29 views

Salesforce DX Usage with Classic and team work using scratch org

We are currently using Salesforce Classic and we have developers outside of United states using the remote desktops to login to the client machine and then using SF. I have seen the seminars for SFDX,...
1
vote
0answers
19 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
2answers
149 views

Authorize Org failed in VS Code

I am new in learning lightning web component. I have installed VS Code, salesforce extension pack inside VS code, Salesforce CLI and set environment variable C:\Program Files\Salesforce CLI in my ...
1
vote
1answer
26 views

SFDX cli throwing eslint error

Does anyone have any ideas on how to fix this? It just randomly started happening when using vscode: This is how my current sfdx-project.json file looks like: { "packageDirectories": [ { ...
0
votes
1answer
25 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 ...
2
votes
2answers
744 views

Migrate from Force.com IDE to VScode

We want to migrate from Force.com IDE to VScode. I have some questions around this. Can we use metadata format (src folder) with vscode, if yes than how? if not then, Would migrating to source ...
2
votes
2answers
35 views

Creating a project from sandbox using vscode

We donot have sfdx enabled in our instances. Can I use vscode IDE and create a proejct from sandbox with any of the salesforce extensions. I see the documentation around creating a scratch org, then ...
0
votes
2answers
107 views

SFDX - No org configuration found for name

Suddenly vscode stopped working with deploying the class to the sandbox I'm using and throws this message "No org configuration found for name INSTANCE NAME" I tried to create a new project for the ...
2
votes
1answer
25 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 ...
1
vote
1answer
35 views

Salesforce ORG Development Model Migration

I am just starting out with my first migration using the salesforce org development model in VS Code. I pulled in my project from my sandbox environment and made my changes and deployed my file back ...
0
votes
0answers
27 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, ...
1
vote
0answers
24 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 -> ...
2
votes
1answer
54 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 ...
3
votes
1answer
29 views

How to see sfdx commands processing indicator in VSCode

Is it possible to see some processing/loading indicator when I do sfdx commands in vscode terminal?
0
votes
0answers
31 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
23 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
1answer
47 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 ...
4
votes
2answers
32 views

How to get custom object fields displaying in code completion in VS Code

I am trying out the VS Code and wondering if it could be possible to display custom object fields while typing an apex code. At the moment the fields are not displayed: But when I take some standard ...
0
votes
1answer
30 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
0answers
29 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" ...
2
votes
0answers
21 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....
1
vote
1answer
53 views

ERROR: No AuthInfo found for name [object Object]

Ad the title described, I have the following error: ERROR: No AuthInfo found for name [object Object]. What i did was to install a whole new clean visual studio code, with the related salesforce ...
0
votes
0answers
72 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
1answer
13 views

plug icon is missing with default org name in vscode

As per the documentation "Change or Open Your Default Org", In vscode, I should see plug icon with the default org name but it disappeared from last few days. Here is the screenshot(stolen from this ...
1
vote
1answer
45 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 ...
2
votes
4answers
408 views

Should the .gitignore include an entry for .vscode when using Git and VSCode

wadewegner has an example .gitignore file with the below content .DS_Store .sfdx .project .salesforce .settings node_modules .idea As part of his sfdx-simple app on GitHub. Should this file include ...
0
votes
0answers
24 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, ...
1
vote
1answer
174 views

LWC Deployment Errror

I'm trying to create a basic LWC for a Community which would be a button where Community admins could set the button text and the page value it should link to. I don't have any Problems, but when I ...
1
vote
1answer
39 views

Getting an error “There are no entries to pick from” while creating LWC components

I am creating my first LWC component. While doing so When i run create LWC component command and then enter component name then I am getting an another input saying "There are no entries to pick from"...
1
vote
1answer
38 views

lwc PROJECT PATH ERROR Unknown

I'm working on some lwc, using SFDX and VS Code. About mid-day yesterday, I started getting an error when I tried to push to my scratch org. The push attempt took a long time -- like 2 min, and then ...
3
votes
2answers
125 views

SFDX: Is it possible to push to a sandbox from VS Code?

I have successfully connected VS Code and pushed to several different SF environments, including Trailhead, Developer, and Production. But I can't figure out how to push to a sandbox. It looks like ...
7
votes
1answer
633 views

Log to console in a Lightning Web Component

I am attempting to write a Lightning Web Component, but continually run into errors in my Javascript that I can't debug. I've been trying to log my error but when I put console.log() anywhere in the ...
2
votes
1answer
325 views

How to delete a Lightning Web Component?

I'm trying to delete new Lightning Web Component without any luck. I've tried to find it in Dev Console, but as you know it doesn't support Lightning Web Components yet. Another way I've tried to ...
0
votes
1answer
73 views

unable to create project in vscode

Facing problem to complete this trailhead trail ( https://trailhead.salesforce.com/content/learn/projects/quickstart-vscode-salesforce/use-vscode-for-salesforce ) I have installed Salesforce CLi and ...
1
vote
1answer
543 views

LightningComponentBundle “Not available for deploy for this API version” error

I receive a strange error "Not available for deploy for this API version" for deploying LightningComponentBundle by sfdx force:source:deploy command or by VS Code Menu Item "SFDX Deploy Source To Org"....
2
votes
3answers
285 views

Unable to Retrieve Source from Sandbox

From the VSCode console, I've created a new project with the command: sfdx force:project:create -n Integration --manifest I then authorize a sandbox org with the command: sfdx force:auth:web:login -r ...
0
votes
3answers
272 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 ...
0
votes
1answer
264 views

vscode/sfdx doesn't see my project

VSCode crashed (kept timing out when I tried to push) so I force quit and restarted my Mac. After restart, I opened VSCode and it has saved all my changes, but... the scratch org doesn't appear down ...
1
vote
1answer
288 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 ...
3
votes
1answer
97 views

vscode with sfdx plugin eating too much memory

I have started using vscode with sfdx plugin to work with my sandbox and noticed that sfdx plugin inside vscode is taking too much memory. Please see the below screenshot: Is this normal? or Do i ...
4
votes
1answer
62 views

Can I use git repo in old format and vscode in new source format?

We want to switch to vscode but our git repo uses old source format and we don't want to convert this to new source format yet.This article talks about how to convert existing projects to new source ...
0
votes
1answer
153 views

Breakpoint will not hit with VS Code and Apex Replay Debugger

I am using VS Code with the apex replay debugger. I setup a Debug log for my user with Apex set at Finest and Lightning set at finer. I am executing a report on the Salesforce Org for that user. ...
0
votes
1answer
178 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 ...
1
vote
1answer
34 views

VS Code: How can I keep my Apex class problems from disappearing upon edits?

When deploying apex code with errors in it through SFDX, VS Code displays a handy list with convenient click-to-view functionality. But, as soon as I start to edit my file for the first problem, all ...
4
votes
1answer
192 views

Apex Replay Debugger: Cannot read property 'name' of null

When I select Launch Apex Replay Debugger in VS Code it asks me to select a log file and then gives me this error message: Cannot read property 'name' of null I've managed to get the Apex Replay ...
0
votes
0answers
259 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 ...