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
1
vote
1answer
14 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
19 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
25 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 ...
0
votes
1answer
9 views

Invalid reference FullCalendarJS of type resourceUrl in file fullCalendarJs.js

I am trying to deploy to my dev org a custom calendar lightning component https://github.com/Gurenax/sfdx-lwc-fullcalendarjs. I have copied the code but the problem is when i try to deploy it i get ...
1
vote
1answer
34 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
20 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
21 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
13 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
1k 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
38 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
28 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
21 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 ...
3
votes
1answer
34 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?
0
votes
0answers
19 views

Checkpoints in 'VS Apex Replay Debbuger' 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
33 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 ...
0
votes
1answer
58 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
1answer
33 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
21 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 ...
0
votes
1answer
87 views

Format apex code in VS code

I have been using uncrustify to format apex code for quite some time and its been working as expected other then formatting soql queries but from past few days if I press alt + shift + F it doesn't ...
0
votes
1answer
23 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", ...
0
votes
0answers
15 views

Supress SFDX push on save for LWC testing JS files

I have enabled deploy on save feature enabled on my workspace. My test's reside in lwc/componentExample/__tests__/componentExample.test.js directory for each component, similar to example on LWC ...
5
votes
1answer
40 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
40 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
211 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
28 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
41 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
23 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
81 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
31 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
0answers
15 views

Azure Devops with Salesforce

I am new to Salesforce development and just got involved in it. And in our Org we haven't started leveraging the Azure Devops with Salesforce yet. All the development happens in an Dev instance and ...
0
votes
1answer
29 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
22 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 ...
2
votes
1answer
170 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
86 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" - "...
0
votes
0answers
225 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 ...
1
vote
0answers
51 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 ...
1
vote
1answer
76 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
27 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 ...
0
votes
0answers
62 views

sfdx force:auth:web:login freezes

When I try to authenticate to the org by going to "VSCode" and clicking on "No Default Org Set" then Select the environment and then I type alias name. The spinner comes at the bottom right of the "...
6
votes
1answer
651 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
2answers
82 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....
0
votes
1answer
129 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
145 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
151 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
90 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
2answers
109 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 ...
1
vote
1answer
134 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
45 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
163 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
0answers
23 views

Source Tracking in VS Code

I would like to Track Salesforce Source Code in Visual Studio. Already Installed & Configured Coding Tracker Extension into my VS Code.But I am unable to Track Source Code and facing "Can’t reach ...

1
2 3 4 5