Stack Exchange Network

Stack Exchange network consists of 174 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
36 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
48 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
0answers
15 views

unzip unpackaged.zip -d [closed]

unzip : The term 'unzip' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is ...
1
vote
1answer
80 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
86 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
37 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
39 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
30 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
25 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
88 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
79 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
1answer
53 views

Any work around on compiling file on save in vscode for sandbox?

I want to use Visual Studio Code for development in my sandbox and I was able to setup as per this article. Everything is working fine but whenever I make any change to ApexClass, I need to right ...
1
vote
1answer
59 views

Getting error while retrieving Source from Salesforce Org using VS Code and Salesforce Extension Pack

I am getting this error while trying to fetch(retrieve) source from VS Code and SF Extension Pack. STR : Right click on sfdx-project-json -> click on Retreiev Source from Org. The file is present ...
0
votes
0answers
106 views

SFDX: Authorize a Dev Hub command

I get "sfdx force:auth:web:login --setdefaultdevhubusername ended with exit code 1"
6
votes
1answer
428 views

How to push code to production with Visual Studio Code & DX

I am using Visual Studio Code to develop new functionality. However, after completing the testing in the sandbox, I want to push the code to production. When I choose "SFDX: Deploy Code to org", it ...
3
votes
1answer
368 views

No Option for “SFDX:Authorize an Org” command in VS Code Command Palette

I have performed below steps- Install CLI Install extensions "Salesforce Extension Pack" and "Saleforce CLI Itegration" I am getting only few SFDX command options in Command Palette. Also i have ...
3
votes
1answer
1k views

The max apiVersion is 44.0 error

Trying to work through the Quick Start: Lightning Web Components trailhead and getting the following error while running command: force:org:create -f config/project-scratch-def.json --setalias ...
2
votes
1answer
152 views

Best practice to setup a development environment with source control,vscode and sandbox

i have been working on the traditional way of developing within salesforce using Force.comIDE / aside.io / developer console. i want to move to a more robust way of writing code using a source control(...
0
votes
1answer
42 views

Apex Interactive Debugger

Is there a way to set up the Apex Interactive Debugger for VS Code for free in a Developer Edtion org? I'm a little confused on how to get started using this feature. Any guidance would be appreciated....
1
vote
1answer
244 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
2answers
45 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
1answer
43 views

How to generate customObject cls files in VS Code using SalesforceDX

In my VS Code project there is a folder: tools > sobjects > customObjects Which contains .cls file representations of the custom objects. I've recently run command: SFDX: Retrieve Source ...
1
vote
1answer
19 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 ...
3
votes
1answer
190 views

No sfdx-project.json found in the root directory of your open project. Open a Salesforce DX project in VS Code

I'm using VScode for Apex dev. I have logged into Devhub org. and created a scratch org. when I try to execute pallet command: SFDX: Refresh SObject Definitions I'm getting below error. No sfdx-...
0
votes
0answers
55 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 ...
2
votes
1answer
107 views

VS Code and Sandbox

It is ok to say 'forget it, it doesn't work with a sandbox'. So I have successfully created a project and done a retrieve source from org. I'm focusing on APEX classes for the moment. I can open, ...
2
votes
1answer
749 views

Salesforce CLI is not installed - it ain't so

In VS Code. Go to command palette and enter 'Create Project with Manifest'. Prompted for a folder and get these messages: Starting SFDX: Create Project sfdx force:project:create --projectname ...
10
votes
2answers
512 views

VS Code for Salesforce - can we start from the beginning?

I get frustrated trying to get this VS Code thing off the ground. It is like someone says "Fly to Dreamforce" and I'm still trying to figure out what an airplane is. I've got VS Code installed. JDK ...
3
votes
0answers
108 views

Limitations of Apex Replay Debugger in VS Code

global class Opportunity_EmailService implements Messaging.InboundEmailHandler { public Messaging.InboundEmailResult handleInboundEmail(Messaging.inboundEmail email, Messaging.InboundEnvelope env) { ...
4
votes
2answers
1k views

SFDX: create project using manifest not available

I have visual studio code installed in my desktop and updated SFDX to its latest version. However, when I open up the command palette for 'Create project', I am seeing only the following two options ...
2
votes
1answer
448 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 ...
2
votes
1answer
33 views

vsforce.retriveCommand not found

I am new to Salesforce. I installed VSCode and added some plugins then installed vforce plugin as shown in this video. I have the following plugins installed: When I try to run command in command ...
8
votes
3answers
895 views

Does VS Code SFDC IDE require Salesforce DX?

I've looked at a bunch of threads here but don't see the answer so I'm posting this question: It appears that SFDC Extensions for VS Code requires Salesforce DX which is a paid product. Is that ...
0
votes
1answer
359 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 ...
4
votes
1answer
330 views

Salesforce DX Apex Debugging license issue

I'm trying to get Apex debugging working in VS Code, following instructions here. When I launch the debugger I see a popup You exceeded your licensed number of debugging sessions. Please end other ...
1
vote
0answers
204 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
3answers
365 views

Does VS Code works for Non Salesforce DX?

I am trying to search for VS code documentation that works for non Salesforce DX using below plugin https://marketplace.visualstudio.com/items?itemName=salesforce.salesforcedx-vscode But I am not ...
7
votes
1answer
4k views

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

When starting VS Code (v1.21.1) with the VS Code extensions installed (v40.4) I'm getting the error message: Java runtime could not be located. Set one using the salesforcedx-vscode-apex.java.home ...
4
votes
2answers
221 views

How to set Lightning Component SFDX scratch org preferences in project-scratch-def.json?

In the Scratch Org Definition Configuration Values documentation I don't see a way to default these settings that we want to make all the time to do Lightning Component development: Setup -> ...
16
votes
2answers
3k views

Two SFDX project folder structure questions

A default SFDX project is created with these folders: force-app/main/default force-app/test/default under which folders such as aura and classes and staticresources that contain components can be ...
1
vote
0answers
109 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 ...