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
0
votes
0answers
10 views

Issues with Retrieving Inactive version of flow and deploying Custom Notifications

I have 2 issues. I want the flow to be retrieved from sandbox to VScode. Is there a way to retrieve the inactive version of the flow to the VScode? The latest version of the flow in sandbox is ...
1
vote
1answer
9 views

Visual Studio Code [Content] Command 'SFDX: Authorize an Org' resulted in an error (command 'sfdx.force.auth.web.login' not found) [OK]

my vs code was working fine including Authorise an Org. However, after I deleted authorised org details file in the .sfdx folder and deleted an alias in alias.json file. I started getting this error ...
1
vote
0answers
22 views

Apex Log manager needed, or way how to filter big amount of logs

I'm looking for some tool, or extension for managing/ searching Apex logs. My main problem is I can produce very easily, a lot of logs by myself and ofc I'm not alone. Basically, when I reload one ...
0
votes
0answers
14 views

Failure performing sObject describe connect ETIMEDOUT

I have started using VScode for my salesforce development , while i could setup my application in the IDE and retrieve all the necessary code. I find i'am unable to refresh standard object. but i can ...
1
vote
1answer
42 views

SFDX: Execute SOQL Query failed to run

Unable to run SOQL queries on VSCode. I'm getting the following error. Starting SFDX: Execute SOQL Query... 19:33:27.886 sfdx force:data:soql:query --query SELECT Id, Name FROM Account 19:33:27.888 ...
0
votes
1answer
23 views

Unable to Authorize an Org in VSCode

I'm unable to Authorize an Org from VSCode. I'm getting the following error. Starting SFDX: Authorize an Org 16:39:55.121 sfdx force:auth:web:login --setalias <org-name> --instanceurl https://...
0
votes
1answer
31 views

How can I connect vs code to my subdomain

I am new in learning lwr & lwc. I have installed VS Code, salesforce extension pack inside VS code, & Salesforce CLI . On salesforce side I created a new site/subdomain in my sandbox by >...
0
votes
1answer
70 views

lightning web component specialist

Not able to complete the challenge. Can anyone help me Build the component boatSearch Challenge Not yet complete... here's what's wrong: We can't find the right settings for the lightning-button in ...
0
votes
0answers
32 views

Connecting Salesforce Org to Visual Studio Code

I am new to Salesforce and I am currently learning Lightning Web Components. I connected my Org with Salesforce with no problem. But when I try to deploy a component to my Org the output console of VS ...
0
votes
0answers
13 views

error message SFDX: Create a Default Scratch Org... failed to run

I'm trying to create a scratch org but get the error message "SFDX: Create a Default Scratch Org... failed to run" I have connected my vscode to my org. what am i doing wrong? I also saw ...
0
votes
0answers
18 views

VSCode, Change Namespace of Report TYpes and Reports

My company makes an AppExchange App and we are changing the namespace for some customers. In VS Code I have been successful with Flows, and Classes. I am now having trouble with Report Types. I am ...
0
votes
0answers
19 views

Retrieve source from org not grabbing files - VS Code

I have a Sandbox that I working with. I have created a new folder on the desktop 'Working_San', I create a project 'Standard Project Template', and then I authorize the org. I am able to sign in ...
0
votes
0answers
21 views

Command 'SFDX: Run Apex Tests' resulted in an error (command 'sfdx.force.apex.test.run' not found)

I am learning Salesforce Apex development by taking a trailhead tutorial. Tutorial: Find and Fix Bugs with Apex Replay Debugger I followed the tutorial along and got the following error when I try to ...
1
vote
1answer
35 views

Checked Out A Scratch Org In VS Code and Want to Go Back

I was connected to my production org with VS Code and checked out a scratch org through my VS Code. Now I want to go back to my production code but am not sure what commands to go back to the "...
0
votes
0answers
28 views

Not able to authorize salesforce org in vs code

When i try to authorize my salesforce org with vs code i am getting the below error. "Error authenticating with auth code due to :getaddrinfo ENOTFOUND test.salesforce.com" All the ...
0
votes
1answer
93 views

Prettier Apex Plugin Won't Format Apex

UPDATE: I've been able to run prettier manually using npx prettier --config .prettierrc --write .\force-app\main\default\classes but I still cannot have it to work on save. Hello everyone, I'm ...
1
vote
1answer
58 views

What's wrong at setting Java Home in Visual Studio Code for enabling Apex Tests?

I wanna enable Apex Tests in my workspace in VS Code, but I am unable to find out what is wrong. Here are my possibilities: Here is the setting that I am putting... {"salesforcedx-vscode-apex....
1
vote
1answer
354 views

Error deploying field with VS Code "Method not implemented"

I am unable to deploy field changes to my dev org with VS Code, due to the following error when running SFDX: Deploy source to org: An error was encountered during conflict detection. ...
13
votes
2answers
448 views

Project structure and modular development best practices

I want to stop using the usual force-app/main/default single folder project structure in order to better organize my projects and decouple dependancies. While researching about this practice, I found ...
0
votes
0answers
86 views

Salesforce DX push failed to scratch org with error parsing package.xml-meta.xml file

After created a scratch org, I pushed my visualforce page and got error: Error force-app\package.xml-meta.xml Error parsing file: Element {http://soap.sforce.com/2006/04/metadata}types invalid at ...
0
votes
1answer
37 views

VS Code: deployed duplicate fields?

I needed to add 100 fields in a sandbox. I saw that VS Code showed the fields as xml under \force-app\main\default\objects\This_Object__c\fields\field1__c.field-meta.xml Thinking myself clever, I ...
3
votes
1answer
48 views

How can I see all my active Orgs in the VS CLI and remove the expired ones?

So I want to remove the expired Scratch-Orgs and get a list of my valid Orgs including the scratch orgs?
3
votes
1answer
85 views

Question about Unorganized Org/Sandboxes

So I'm fairly green when it comes to development. I left a company that had an insanely structured enterprise Salesforce organization with many teams and joined one that I'm realizing is pretty much ...
0
votes
1answer
688 views

ERROR: We can't query your org. Getting this error after Authorize a Dev Hub

so, I'm pretty new to salesforce development and I got this error while trying to Authorize a Dev Hub, I already enabled the Dev Hub and I couldn't find anything anywhere to solve this error. Also, I ...
3
votes
2answers
192 views

SFDX: how to ensure you are in the right org?

I am just getting started with using VSCode to work on an apex class. As I do not want to touch the sandbox I got the code from originally, is there a quick way to see what org I am connected to at ...
0
votes
1answer
85 views

Not seeing SFDX Commands in VS Code

I cant see the SFDX Commands like deploy to server, retrieve from server. Authorization to the sandbox was successful yesterday. When I try to deploy my code from the same workspace in vs code today, ...
0
votes
1answer
41 views

SFDX commands not working in VS Code

I use VS Code for my pushing and pulling changes from org and branch and earlier I was able to use the SFDX commands but now I am not able to do so. Now when I try to run any SFDX command in the ...
0
votes
1answer
69 views

Visual Studio Code SFDX Source Deploy is not showing the errors

I started to see for more than a month that problems caused by compilation are not displayed in VsCode (either in the Problems tab or highlighted on the source) nor the error message on Salesforce CLI ...
1
vote
1answer
289 views

SFDX: Authorize an Org failed to run in VSCODE

SFDX: Authorize an Org failed to run in VS Code: I am tring to authorize an org on visual studio code but when I am trying authorize it, I am getting the below error. SFDX: Authorize an Org failed to ...
0
votes
0answers
160 views

SFDX: Diff Folder Against Org - see only the files with diffs

I'm working with a sandbox org which is not source-tracked because I don't have access to the Prod org, so I don't think I can use SFDX: force:source:status. After running SFDX: Diff Folder Against ...
0
votes
2answers
317 views

Open existing Aura Component in VS Code

I am new in VS Code Salesforce extension and I would like to ask if any way exist to open and edit Aura Components from VS Code. I already learned how to create new and deploy them and now need to ...
4
votes
2answers
197 views

Show Changed But Undeployed Files in VS Code

I'm working on a Lightning App site where I'm developing locally using Visual Studio Code, and then deploying my changes to my default org (I'm using the Salesforce CLI Integration extension). Is ...
1
vote
2answers
111 views

How to authentication a Dev Hub from a VS Code hosted via GitHub CodeSpaces

GitHub recently released CodeSpaces which allows you to run VSCode in the cloud, which I believe the up coming Salesforce Code Builder will be based on. I am trying to get it to work on my Chromebook, ...
0
votes
1answer
172 views

ERROR running force:source:retrieve: Cannot read property 'id' of undefined VS Code

I am trying to retrieve the Salesforce metadata in VS Code with the below command, sfdx force:source:retrieve -x ./manifest/package.xml This was working fine prior to today, but suddenly I have ...
0
votes
1answer
140 views

CLI path is set to C:\Program Files but VS code is reading it from AppData\Local\sfdx\client\bin\ and it's causing errors

"C:\Users\me\AppData\Local\sfdx\client\bin\..\7.110.0-85b006b\bin\sfdx.cmd"' is not recognized as an internal or external command, operable program or batch file. can i just delete the ...
1
vote
2answers
368 views

How to deploy assignement of Compact layout & Record Lightning page to Record Type/Profil

How can i deploy assignement of Compact layout & Record Lightning page to Record Type/Profil . I tried this package ,the compact layout and record page were deployed properly but the assignement ...
1
vote
1answer
58 views

PMD showing errors for one class, but not another class with the same issue

I just installed PMD and its pretty janky from my experience, for example I have two classes and it shows the "same name" error for one class but completely ignores it for the other class.......
1
vote
2answers
75 views

How to make VScode auto fix missing semicolons Apex?

Hey does anyone here know how to make VSCode auto fix missing semicolons instead of just show where it is missing? I Started setting up Prettier and it will format apex code but not replace double ...
1
vote
0answers
188 views

Retrieve source in manifest from Org

I'm trying to retrieve classes from my test org using package.xml. Recently the operation fails immediately with the following error; 10:35:14.995 Starting SFDX: Retrieve Source from Org Socket is ...
1
vote
0answers
82 views

How to authenticate sandbox to VS Code with Multi-factor required

I am trying to authenticate my VS Code to one of my sandbox and when I am entering my credential into the salesforce UI it is literally doing nothing and when I am checking login history for my user, ...
1
vote
1answer
44 views

diff on folder in visual studio code

I am using Visual Studio Code with Salesforce Extensions. I am trying to find all diffs between my local project and the sandbox. When I right click on classes folder and click on Diff Folder Against ...
0
votes
0answers
145 views

Cannot authorise a salesforce org in VS Code due to certificate error

I cannot authorise a salesforce org in VS Code. I am prompted to login, but then I get this error: ERROR running auth:web:login: Invalid client credentials. Verify the OAuth client secret and ID. ...
1
vote
0answers
19 views

Vscode authorisation taking long time

In vscode I was unable to authorise a org even I set Java path and salesforce cli path as well but still taking long time and tried plug-in as well can anyone help me to authorise an org
0
votes
1answer
40 views

Blue squiggly lines when using SLDS Validator extension in VS Code

I'm new to LWC and VS Code. I've installed the recommended salesforce extension package which has SLDS Validator in it. But in my html file, it is showing blue squiggly lines under the SLDS class ...
3
votes
1answer
275 views

Updated Design Tokens with VSCode and SLDS Validator

Recently, I am getting slds validation errors in VS Code for 'presumably' updated design tokens for the aura component .cmp file. It is complaining that: slds-m-bottom_medium should be updated to ...
0
votes
1answer
311 views

can we authorize vscode using session id? because i am not able to authorize , it gives error that no event found

Hi so i am trying to authorize the my org in vscode using the below documentation https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_auth_existing_access_token.htm but ...
2
votes
0answers
33 views

How can I get VS Code to consider dynamic styles as valid CSS?

I'm building a Lightning Web Component with dynamic styles in VS Code. Each time I do, I get warnings and errors about empty rulesets and expected braces and selectors. <html-element style={...
0
votes
2answers
69 views

Solid metadata search and backup [duplicate]

I know this question has been posted before but wanted to revisit with a fresh set of eyes. So as you know, admins need to search an ENTIRE org's metadata for various reasons. For my use case, I need ...
1
vote
1answer
32 views

Is it possible to turn on the Apex Replay Debugger permanently or for the entire day from VSCode

Every time I use the VSCode command to turn on the Apex Replay Debugger, it expires in less than an hour, and then I have to re-run the command to turn it back on again. Is there a way to turn it on ...
0
votes
0answers
46 views

SFDX Plugging Debugging in VS Code

I'm working on a DX CLI plugin using VS Code. My work machine just upgraded my VS Code install to v 1.56.2. Previous version I had wouldn't even start the remote debugger. Now the remote debugger will ...

1
2 3 4 5
9