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
5
votes
1answer
200 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
73 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
2k 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
260 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
37 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
4k 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
210 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
71 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
54 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
2k 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
570 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
3k 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
46 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
984 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
303 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
958 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
624 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
678 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
3k 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
639 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
82 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
1k 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
141 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
1k 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 ...
4
votes
5answers
12k views

how to open lwc without vscode salesforce

I mean If I can check the code (for lwc as js and html code) in salesforce without vscode. I can not see the code in developer console
-2
votes
1answer
76 views

How I can retrieve DeployOptions with VS Code?

How i can retrieve DeployOptions metadata with VS Code and edit it? Or How I can deploy a class to Production without running any tests?
2
votes
3answers
347 views

Project is not created after running SFDX: Create Project in VS Code

I have issue while creating a project using either SFDX: Create Project or SFDX: Create Project with Manifest command. I don't receive any error but the project is not created. The variable path is ...
1
vote
1answer
223 views

VS Code Open code in browser

My VS Code project is already authorised with Salesforce sandbox and I am able to deploy or retrieve the files successfully. How can I launch the Salesforce org from the currently opened apex class ...
3
votes
1answer
199 views

VS Code Debugging Class

I am new to VS Code, I have read up on it. I can write APEX very well but only in the developer console. I am used to System.Debug Logs. I see that in VS Code you can put in Breakpoints versus debug ...
0
votes
2answers
118 views

Shortcut to see result of a Query in VS-Code itself rather than keep checking in Developer Console?

I wanted to know if there is any shortcut, with which we can instantly check result of SOQL query written in Apex class in VS-code itself rather than every time keep checking it in Developer Console??
2
votes
2answers
844 views

Unable to retreive All the LWC on VsCode

I tried creating projects on VScode with or without manifest and updating metadata but cant retreive the LWC of an Unmanaged Package.
9
votes
1answer
2k views

How to format Apex code more flexible than with Prettier

Note: This is a Salesforce-specific question so don't close it. Salesforce has contributed a Prettier plugin for Apex so in other forums people cannot help me. I'm new to Prettier and couldn't ...
2
votes
2answers
2k views

Warning: force:lightning:lwc:start is not a sfdx command

I am trying to use the new LWC Local Development Server. I've run command: sfdx update So I know I am using the latest version of the CLI. And I've installed the plugin: sfdx plugins:install @...
0
votes
1answer
2k views

Error: Cannot find module '@salesforce/sfdx-lwc-jest/config' while testing my LWC from vs code

I have started my practice on LWC testing While i'm run this command:"npm run test:unit" i am getting this error:Cannot find module '@salesforce/sfdx-lwc-jest/config'. Error body is: Error: Cannot ...
4
votes
3answers
104 views

VS Code Deploying User Interface similar to MavensMate?

One of the things I loved about MavensMate was how easy it was to deploy Metadata from one SFDC Org to another. See image below - it allowed you to select which metadata types you wanted to deploy and ...
2
votes
0answers
160 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
1k views

How to retrieve lightning component quick action in VS code

How to retrieve lightning component quick action in VS code. When i retrieve the layout it is showing the quick action for visual force components only. Do any one know how to fix this. My package.xml ...
7
votes
0answers
279 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. ...
1
vote
1answer
173 views

Giving custom field edit access to System Administrator

I recently transferred a bunch of metadata from one Salesforce Organization Instance to another. To do this, I created a package that contained all the custom objects, web components, apex classes, ...
1
vote
1answer
39 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
145 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
1answer
3k 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 ...
4
votes
1answer
677 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
1answer
1k views

Cannot connect to Salesforce Org from VS Code/Salesforce CLI: Must pass a username and/or OAuth options when creating an AuthInfo instance

I'm trying to connect to my Trailhead playground org with the Salesforce CLI on VS Code. Here's what I've done: I created the project then clicked on Authorizing a dev hub. I was prompted for a login ...
0
votes
2answers
1k 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. ...

1
4
5
6 7 8