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.

Filter by
Sorted by
Tagged with
2
votes
3answers
239 views

How to diff metadata from Github with my managed package

SFDX looks promising for this, but I'm confused and am running out of time. Your help is appreciated. It seems this could do what I need... sfdx force:source:diff But it appears to only work on ...
1
vote
1answer
81 views

How to edit setup SFDX_APEX_LOG_COLOR_MAP in VS Code

Following a blog post about debug logs on this page, we're able to customise the colour the command sfdx force:apex:log:tail outputs by using the SFDX_APEX_LOG_COLOR_MAP environment variables. Like ...
0
votes
1answer
135 views

Metadata shown as modified When Pulled from Sandbox

When I retrieve metadata from my sandbox through a package.xml,there are lot of files(Classes, fields, Aura etc) that are shown as modified(M) in my local repository but when I try to check the diff,...
1
vote
1answer
198 views

Using VSCode to debug or test apex

I retrieved source files from org using SFDX commands in VS code and then I updated some code and saved the file. However, when I try to run the anonymous debugger using SFDX: Execute Anonymous ...
2
votes
1answer
848 views

SFDX uninstallation/update issue

All of a sudden SFDX has stopped working in my MAC laptop. I am unable to retrieve or deploy code. Hence I thought of updating sfdx using the command sfdx update which gave the below error. /Users/...
0
votes
1answer
307 views

SFDX VSCode Unable to Authorize an Org

I've been working using VSCode to develop Lightning Web Components for over 6 months, however today after restarting my machine I am unable to authorize my org. It was able to redirect me to the login ...
1
vote
1answer
1k views

I am getting this error: ERROR running force:source:deploy: The Flow named ListingID_Update was not found in the workspace

I am receiving this error while trying to deploy to a sandbox using sfdx source deploy commands. This the error: ERROR running force:source:deploy: The Flow named ListingID_Update was not ...
-1
votes
1answer
33 views

Help on System.ListException: List index out of bounds: 0 Error

I'm trying to write test code for my custom controller and got a new error that I haven't gotten before. My research so far has told me that misallocated and/or coming up NULL. Apex Class: ...
1
vote
2answers
561 views

Production Deployment of CustomLabel using VS Code (INVALID_ID_FIELD: Source validate did not run tests in the org)

I am trying to deploy customLabels to the production org. But, I am not able to deploy it as it asks to run the test classes. As we know the custom label is just the configurations, not the codes. So, ...
0
votes
1answer
326 views

The deploy is still in the Queue while saving in VSCode Project with manifest

I'm encountering an issue while trying to save a file in VSCode in a project with manifest. It is not a sfdx project. While pushing to org, I randomly get this error since a few days now : Starting ...
1
vote
2answers
4k views

Deployment to Production Org using VS Code

I need one help to deploy different components like classes, triggers, objects, profiles, permission sets, etc from sandbox to the production org. I used following command to deploy all the items on ...
0
votes
2answers
144 views

LWC Not Redering HTML

I am starting out creating a lighting web component, following the Hello World Example. I have set up a Sandbox environment and Authorised the org in VS Code. I have set up a project with manifest and ...
2
votes
1answer
666 views

Unable to navigate code path for a specific project in VS Code

I am having trouble with navigate the code path by using "Go to definition" / "Peek Preview" for one project. I also don't see any SFDX commands on Command palette. The project has below structure. (I ...
0
votes
0answers
461 views

How can I Authorize an existing Project in VS Code

I am new to VSCode and and trying to switch from Eclipse and this is becoming already painful.My end goal is to reconnect an existing project I already created with an existing Sandbox. I already ...
4
votes
1answer
88 views

How do you run all the Jest LWC tests at once in VSCode?

The "Run Test" link is provided for each test as illustrated below. But what is the easiest way to run all of the tests in the file?
1
vote
0answers
60 views

Checkpoints in 'VS Apex Replay Debugger' doesn't expand the list variables

Currently we are using checkpoints so that we can view the detailed data inside the list variable which is a limitation using breakpoints.If you look at the below screenshot it doesnt show the data ...
0
votes
0answers
86 views

VS Code : Get Apex Debug Logs : Not getting the latest debug logs

I started using Apex Replay Debbuger last weeks. It was working fine. But suddenly it stopped working as the latest debug logs are not showing you in the VS code. I tried all possiblities of re ...
1
vote
1answer
494 views

Error While creating a Project on VSCode

I have installed Salesforce CLI and then tried to create a Project in VSCode using SFDX: Create Project. But facing the following error. Do I need to install any additional package? ERROR:Cannot ...
0
votes
2answers
634 views

VSCode Salesforce Cli integration stopped working after update

I am having trouble working with CLI on VSCode. I think there was an Visual Code update which i did and after which VScode and apex integration stopped working. Looking at the VSCode console gives ...
0
votes
0answers
31 views

Debug Warnings in VSCode

A coworker gets warnings while editing JS files (e.g. misspelling variable names, missing semicolons, missing closing brackets or parentheses...). That doesn't happen on my VSCode. I don't see ...
2
votes
1answer
1k views

Delete classes/trigger from Prod via VSCode

I need to delete classes and a trigger from prod via VSCode. I have retrieved the according classes/trigger via package.xml into VSCode. There is the command "SFDX: Delete This from Project and Org", ...
5
votes
1answer
221 views

Binding SFDX Commands to VS Code

There are SFDX commands that I would like to bind to a key combo in VS Command but I'm unsure how I would do this. For example, rather then using the CMD+SHFT+P to run SFDX: Execute Anonymous Apex ...
0
votes
0answers
79 views

VS Code Apex Error

I have the Salesforce VS Code Extension Pack installed, and I keep getting errors popping up in the Output tab on VS Code. It's very annoying and I can't get them to go away! Is there any way to fix ...
1
vote
2answers
3k views

Why is ESLint not working properly for Lightning Web Components in VS Code and how to make it work?

I'm trying to set up an environment to play around with LWCs. While doing a Analyze Your Code and Deploy It to Your Org unit from the Set Up Your Lightning Web Components Developer Tools module on ...
0
votes
1answer
34 views

Not able to authenticate my dev org from VS code

I am getting below error while I am trying to authenticate my dev org from VS code: { Error: spawn cmd ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19) at ...
0
votes
0answers
282 views

MDAPI to DX Question

What I want to do is convert all the files in a particular folder in my project that are currently in mdapi format, convert them to source format, add the converted results to a corresponding folder ...
0
votes
1answer
41 views

Can't retrieve non-customizable CustomObject named: ContentDocument

I have made changes to the record page of content document object, now I need to push the record page to other org. tried to retrieve the contentdocument object from vscode editor but receiving "Can'...
0
votes
1answer
5k views

Retrieve all profile metadata for comparison with vscode

Is it possible to retrieve all profile metadata (e.g. every custom object, field, page layout, record type, etc...) in vscode? I tried using the org browser and don't see a profiles folder. I ...
1
vote
0answers
243 views

How to Turn Off the Path Hover in VSCode File Explorer? [closed]

The file path popup that appears when you hover over filenames in the VSCode File Explorer is my least favorite feature of VSCode. If I'm scrolling through a list of file names to find something, ...
0
votes
1answer
85 views

Possible to code a component (Aura or LWC) and see it in local?

So far, while coding a component (Aura, or LWC), we need everytime to deploy to the org to see modifications, is there a way to code in my local machine ? (localhost like) ? In Angular for example ...
0
votes
0answers
58 views

whenever I try to deploy in VS Code it returns this error sf:UNKNOWN_EXCEPTION

sf:UNKNOWN_EXCEPTION: UNKNOWN_EXCEPTION: An unexpected error occurred. Please include this ErrorId if you contact support: 1437374837-49598 (109636631) if I try the error a few more times, but ...
4
votes
1answer
3k views

sfdx force:source:push command failed. Source conflict(s) detected

Run following command: sfdx force:source:push Following error has been received: ERROR: We couldn't complete the push operation due to conflicts. Verify th at you want to keep the local ...
0
votes
0answers
1k views

ERROR_HTTP_414 - <h1>Bad Message 414</h1><pre>reason: URI Too Long</pre> on VS Code

I am trying to push the code to my scratch org through VS Code using following command - sfdx force:source:push --json --loglevel fatal But getting following error on VS Code. ERROR_HTTP_414" - "...
1
vote
0answers
3k views

SFDX: Create Project failed to run

Facing problem to complete this trailhead trail ( https://trailhead.salesforce.com/content/learn/projects/quick-start-lightning-web-components/set-up-visual-studio-code) I have installed Salesforce ...
2
votes
1answer
696 views

Not seeing changes to LWC after deploying via VSCode

I have a SFDX Force-App that contains all of my classes, lightning web components, objects, triggers, etc. I've uploaded this force-app to my sandbox and my changes in my lwc was there and looked good ...
2
votes
1answer
4k views

How to download all Apex classes from Prod using VS code

Now that Force.com IDE plugin for eclipse is unsupportive, is there any way to connect to Prod org using VS code and download all Apex classes. I can see all extensions for SFDX but I do not know how ...
1
vote
0answers
55 views

LWC eslint rule [closed]

I am in VSCODE and trying to set eslint rule for LWC using https://github.com/salesforce/eslint-plugin-lwc I am unable to set it up properly and lint rules are not firing. Can anybody help me here who ...
6
votes
1answer
993 views

Retrieving Metadata from Org using VS Code and CLI results:- MaxListenersExceededWarning: Possible EventEmitter memory leak detected

I am seeing a new warning message when retrieving metadata from VS Code. The metadata retrieval is successful but also getting below message. Steps to reproduce:- I have created a Lightning Web ...
1
vote
3answers
307 views

Unable to authorize the org in vscode

When i tried to authorize the org via vscode this issue is showing.After killing process id 1717,another issue is showing.Here is the issue { Error: spawn cmd ENOENT at Process.ChildProcess....
1
vote
1answer
1k views

Unable to create scratch org successfully in Visual Studio Code

I have authorized dev hub org successfully and now trying to create default scratch org using visual studio code but getting following error: sfdx force:org:create -f config\project-scratch-def.json -...
4
votes
0answers
708 views

VS Code deploy: Maximum call stack size exceeded

I'm trying to deploy code in VS Code to an org. I'm getting the following error. The package.xml is valid, as far as I can tell. Starting SFDX: Deploy Source to Org 14:57:24.268 sfdx force:source:...
1
vote
2answers
2k views

Download all objects and search validation rules only

I've recently setup vs code in hopes that I could easily download all validation rules and search across them for a string. We're updating our roles and role names are used in a lot of validation ...
2
votes
1answer
803 views

Storing VSCode project in google drive? 100% cpu usage

I'm following the trailhead to try and setup vs code Salesforce extensions. Trailhead link After authenticating with my playground org and trying to create an apex class, I noticed it was running ...
2
votes
3answers
4k views

Issue with SFDX: Authorize an Org

I am trying to create a Hello World Lightning Web Component as mentioned in the URL below. Hello World Lightning Web Component But in VS code I am getting below output. I did some analysis but unable ...
0
votes
1answer
660 views

VS code for Lightning Web Component

Suddenly started getting below error in my VS code while deploying components. Error: Parse error in file C:\Users\cccccr.sfdx\stash.json on line 1 FILE HAS NO CONTENT
-2
votes
1answer
89 views

Simplify Git bash CLI steps to commit the code to Github [closed]

I Would like simplify the below steps to commit code to Github. Please share any suggestions Step to Commit and Push code from local folder to repository through terminal. Move to Full retrieve ...
2
votes
2answers
2k views

Error parsing file: LWC Metadata Xml Parser: Unexpected element: runtimeNamespace

I am trying to deploy an LWC and get this error : "Error parsing file: LWC Metadata Xml Parser: Unexpected element: runtimeNamespace". Here is the code of my js-meta.xml <?xml version="1.0" ...
0
votes
1answer
180 views

Type name already in use - Unable to use Rename Symbol command to correct Apex class name capitalisation

I use Apex PMD, one of the rules is: Class names should begin with an uppercase character (rule: Code Style-ClassNamingConventions) See: https://pmd.github.io/latest/pmd_rules_apex_codestyle.html#...
2
votes
1answer
2k views

F2 Rename Symbol in VSCode does not work with Apex

I am unable to get the Rename Symbol F2 command to work in VSCode when editing a Apex class. When I press F2 the floating input appears, once I press enter the code is not updated, and I cannot see ...
8
votes
1answer
2k views

LWC Folder Structure

Id there a way to organize my components inside sub folders and not having them saved directly under LWC? Just a simple example, if I have 10 components related to Contacts and another 10 related to ...

1
3 4
5
6 7
9