The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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.

54 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
1answer
27 views

Automatically close Output window in vsc running salesforce CLI

I have switched from Sublime to VSCode. I have found ways to make most of VSCode work the way I want. The main thing I wish I could do is when I deploy to the org if it is successful I would like ...
3
votes
0answers
950 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 ...
2
votes
0answers
26 views

Uncrustify with VS Code is overindenting SOQL Lines

I use VS Code and use Uncrustify to format the apex code As per this article. This was working fine for me until all of a sudden my SOQL lines are now automatically indented after the WHERE clause. ...
2
votes
1answer
22 views

How do I display more characters when debugging SFDX code?

I have variable in my code defined as follows: String myString = myConfig.my_field_name__c; When debugging in the SFDX console (in VS Code), the variable's value is only displayed as: myString: '...
2
votes
0answers
150 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
1answer
57 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
205 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
0answers
72 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
0answers
16 views

VS Code - Compare metadata in different orgs

The one thing that Eclipse IDE seemed to do well that I've not yet worked out in VS Code is comparing metadata in different orgs. Using VS Code, I know how to compare files which are in the same ...
1
vote
1answer
13 views

Trouble Installing JDK on Mac for VSCode (SFDX)

I'm trying to do the Apex Replay Debugger trailhead, which requires JDK 8. When I install the JDK on my Mac, the installer tells me it went into /Library/Java/ directory. However, when I look in that ...
1
vote
0answers
15 views

SFDX: Get Apex Debug Logs for Site Guest User in VS Code

How do I get Debug Logs for Site Guest User in VS Code? I ran SFDX: Get Apex Debug Logs and I can see debug logs for my user. But what I want is debug logs for Site Guest User which I don't see in the ...
1
vote
0answers
46 views

Unable to install sfdx plugins:install @salesforce/lwc-dev-server

I am using 1.38.1 version of VSCode and i have done "http.proxyStrictSSL": false I am still getting error Error: unable to get local issuer certificate i tried in my personal laptop. Now ...
1
vote
0answers
69 views

SFDX Source Diff: Error: EISDIR: illegal operation on a directory, read

Background I want to use the Source Diff feature in VSCode. When I follow the instructions to install it, by running this command: sfdx plugins:install @salesforce/sfdx-diff I get this error: $ ...
1
vote
1answer
78 views

How do I get VSCode working with the Remote Development Extension Pack (WSL) and Salesforce Extension Pack?

I installed the Windows Subsystem for Linux on my Windows 10 machine. I am trying to do all my salesforce development in WSL so I can rely on the Linux CLI in my integrated terminal in VSCode. To do ...
1
vote
1answer
37 views

How to turn off the auto pop-up of Salesforce-CLI window everytime I save (deploy source to Org) in VSCode DX

I'm using VSCode for my salesforce development and I installed the Salesforce CLI integration plugin and Salesforce extension pack. Every time I save a source code which gets deployed to Org ...
1
vote
0answers
47 views

VSCode for Salesforce

I am trying to connect VSCode with my SF org(a trailhead org) and I get to the SF login page and then when I try to login, I get the following error: I am not sure why this is happening but I believe ...
1
vote
0answers
85 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
221 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
131 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
245 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
1answer
507 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 ...
1
vote
1answer
263 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
511 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
508 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
0answers
322 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
121 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
13 views

Can't refresh sobject definitions from SFDX: Must pass a username and/or OAuth options when creating an AuthInfo instance

I'm having the same problem described here: sfdx sobject refresh That thread has this suggestion: Go to your personal setting and then to Authentication Settings for External Systems then clear ...
0
votes
0answers
11 views

VSCode not showing namespaces prefix on aura:attribute

When viewing code in VSCode, the namespace prefixes (AQB__) in the aura attributes are not showing. However, they do show in the Developer Console. This code was created using the Developer Console. ...
0
votes
1answer
20 views

Running into a “A name parameter is required to create storage” when creating Apex Class w/ VSCode

I'm attempting to create an Apex Class a part of the Convert Lightning Web Components Open Source to Salesforce trailhead module and when I try to create a class on my mac, I run into this error. ...
0
votes
2answers
32 views

Not able to Authorize an ORG in VS Code

I am trying to create project workspace using VS Code. I am using SFDX: Create Project with Manifest command. After executing, it is creating folder for my project with all default files in VS code. ...
0
votes
1answer
19 views

Retrieve Case Action - Send Email Metadata in VsCode

I have made changes to the pre-defined field values section of Case Action:Email in my scratch org. Upon pulling, VsCode retrieves nothing. Can someone help? How should I commit this change and under ...
0
votes
0answers
25 views

Lightning Component Indexing in VisualStudioCode hogs CPU and memory slowing my PC

I keep seeing "Indexing Lightning Components" in Visual Studio Code, which is a CPU and Memory hogging activity, slowing my PC. Is there a way to make it less CPU intensive?
0
votes
1answer
32 views

VS Code and custom Labels

I use VS Code with Salesforce extensions and connect to my sandbox as explained here: https://forcedotcom.github.io/salesforcedx-vscode/articles/user-guide/org-development-model With my package.xml ...
0
votes
1answer
20 views

Creating A Default Scratch Org in Visual Studio Code for Salesforce.. Getting Error with Exit Code 1

I am new to Salesforce Development. I just installed Visual Studio Code. I did successfully auhorize my Dev Org. But I am having issues when creating a Default Scratch Org. THe following the error ...
0
votes
0answers
11 views

how can I see the (Deployed)package thrown trigger

Firstly I was write Trigger for my one a object its working And after i wanted to write for production but i learn its imposible i need the deploy Thats why I install ForceCode in Visual Studio Code ...
0
votes
0answers
55 views

VSCode overwrites changes without any warning

I am new to VSCode. I used the following to get all classes updated as per Org: sfdx force:source:retrieve -x src/package.xml After that I made some changes in a class in the deveoper console and ...
0
votes
1answer
64 views

LWC without APEX: sfdx force:source:deploy into Production

I have a simple LWC component that is only made up of html, javascript, and css (no APEX). When deploying to production via vscode, I am confused on what I am suppose to be testing as I receive the "...
0
votes
1answer
237 views

ERROR running force:auth:web:login: unable to get local issuer certificate - When Authorizing an Org in VS code

I have installed VS code and Salesforce CLI in my system.Now when I try to Authorize an Org using SFDC:Authorize an Org, It take me to the login page and also logs in and redirects to localhost:1717. ...
0
votes
0answers
16 views

Visual Studio Code unable to retrieve salesforce installed package smaple gallery project 'Recipe'

Installed salesforce sample gallery project 'Recipe' in my development org directly from GitHub using the 2nd option "Installing Recipes using an Unlocked Package". I created the project in VS using "...
0
votes
1answer
29 views

How to create a lightning app in Visual Studio Code?

I'm pretty new to Salesforce development and I'm trying to wrap my head around Lightning App development. Essentially I'm looking to setup a base application which will have a tab(ex:Admin) So far I ...
0
votes
1answer
65 views

VS Code lightning Explorer not rendering anymore

This used to work for me. I tried re-installing the extension pack and nothing. Maybe somebody else is having the same issue.
0
votes
0answers
215 views

VS code : Authorize Org failed

I am new to 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 system. When ...
0
votes
1answer
69 views

Unable to authorize sandbox using vs code in salesforce

Try this: Kill the process running on port 1717 or use a custom connected app and update OauthLocalPort in the sfdx-project.json file. 20:57:24.539 sfdx force:auth:web:login --setalias vscodeOrg --...
0
votes
0answers
59 views

Error trying to authorize dev org for trailheads and vscode

Not sure what's going on here but I'm following the following trailhead and trying to authorize my dev org for use with vs code: https://trailhead.salesforce.com/en/content/learn/projects/quick-start-...
0
votes
1answer
37 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
0answers
135 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
100 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
1answer
307 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
365 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
38 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, ...