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.

1
vote
1answer
54 views

How to use VSCode to find which reports are using a specific field

I have used Eclipse in the past but unfortunately, Eclipse and Force.com IDE no longer work for me. I have switched over to VSCode along with the Salesforce DX and forcecode extensions (among many ...
1
vote
2answers
1k 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 ...
1
vote
1answer
37 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 ...
1
vote
1answer
264 views

sf:INVALID_OPERATION: INVALID_OPERATION: testLevel of NoTestRun cannot be used in production organizations

While deploying code in vsCode from sandbox to production I get the below error sf:INVALID_OPERATION: INVALID_OPERATION: testLevel of NoTestRun cannot be used in production organizations As per ...
1
vote
1answer
24 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
59 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
2answers
641 views

How do I retrieve all the code from lightning?

My boss had been muddling through Salesforce by creating custom objects and triggers using the Lightning Web Interface. I want to pull all his work down in VS Code, commit it to git, and continue ...
1
vote
0answers
20 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
28 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
112 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
57 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
1answer
92 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 ...
1
vote
0answers
252 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
162 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
280 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
51 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 ...
1
vote
1answer
483 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 ...
1
vote
1answer
2k views

SFDX: Deploy Source to Org : Error - SourcePathInvalid

I am Getting SourcePathInvalid for file path c://projectpath//projectname/extension-output-#2 at deployment time. Please refer attach image for more details.
1
vote
0answers
269 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
1answer
45 views

Invalid decorator usage. Supported decorators (api, wire, track) should be imported from “lwc”

I started working with Lightning Web Components and was doing the Quick Start: Lightning Web Components project, on deploying source to org, I am getting the following error in VS Code output Panel ...
0
votes
1answer
30 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,...
0
votes
2answers
70 views

DevHub and Scratch Org command to open project missing username

I have recently installed VS Code and migrated my projects from Eclipse over to VS Code. I'm getting familiarized with the IDE. I've gotten my projects created and authorized and have successfully ...
0
votes
1answer
216 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 ...
0
votes
1answer
39 views

How to get non-SFDX folder structure in VS Code in Dev Hub enabled Org?

We have enabled Dev Hub in our org but we are not using Salesforce DX. Since Dev Hub is enabled, when we create projects, we get SFDX folder structure. But when we do code merge, our code repository ...
0
votes
2answers
176 views

ERROR running force:project:create: Cannot read property 'create' of undefined

I am trying to follow a Trailhead which instructs me to create a SFDX project in VS Code. I've been using VS Code for awhile and all is current. While troubleshooting this issue, I did update my ...
0
votes
1answer
46 views

Missing manifest and package.xml in new project

I've just installed VS Code and am migrating my projects. I don't see an option to delete a project? I created a project without the manifest and package.xml so I can't retrieve the selected metadata ...
0
votes
1answer
109 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 ...
0
votes
1answer
245 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
402 views

Install Force.com IDE 2 [closed]

From the below link I came to know they will not provide further update on Force.com IDE 2 tool and no downloads are available after May 3, 2018. The Force.com IDE 2 beta release has been ...
0
votes
1answer
29 views

How to take complete backup of salesforce org using VS Code

I am using VS code And installed below two packages Salesforce CLI Integration (https://developer.salesforce.com/tools/sfdxcli) Salesforce extension And Want to take complete backup of org, when I ...
0
votes
1answer
25 views

Using SFDX to retrieve the report meta data

I need to check if a field is being used in any of the reports in the org. So I created a sandbox environment and created a manifest project in VScode; then authorized the sandbox org and ran the ...
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
98 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
0answers
67 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
34 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
156 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
83 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
91 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
3answers
552 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
544 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 ...
0
votes
1answer
367 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 ...
0
votes
0answers
416 views

SFDX: Authorize a Dev Hub command

I get "sfdx force:auth:web:login --setdefaultdevhubusername ended with exit code 1"
0
votes
0answers
98 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 ...