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
1answer
16 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
181 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
54 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
28 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
43 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 ...
0
votes
1answer
36 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
36 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
42 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
156 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
46 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
88 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
52 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 ...
0
votes
2answers
50 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
45 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
43 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
41 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 ...
0
votes
0answers
34 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
39 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
56 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
18 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
33 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 ...
1
vote
1answer
79 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
94 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
31 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
45 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
29 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
34 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 ...
0
votes
1answer
46 views

Visual Studio not pulling managed package components

Seems like the latest VS Code version is not pulling managed package components to the workspace. I have it connected with my dev org that contains the managed package which I have released in ...
0
votes
0answers
56 views

Formatting Visualforce Pages in VSCode on Save

can someone confirm how to get prettier working with visualforce pages on save in VSCode? I have tried in a fresh project but it never works. Steps taken: SFDX: Create Project npm install SFD: Create ...
0
votes
0answers
10 views

VS Code Authorize an Org while using remote SSH

I have a remote linux machine to which I am connecting via remote SSH in my VS Code. I use "Remote - SSH" VS code extension for the same. I could browse remote directory in my VS Code and do ...
1
vote
0answers
118 views

Connect TIMEDOUT error Salesforce CLI while trying to open org

I am trying to authorize my org but i am facing an error below any idea why the error occurs and how to resolve Starting SFDX: Open Default Org 20:13:52.519 sfdx force:org:open Error: connect ...
0
votes
1answer
73 views

How to ignore SLDS token problems(Infos) in VSCODE?

I'm developing lwc in VSCODE, and today my editor suddenly shows a bunch of SLDS problems just like this it is annoying and I do not want to fix it by update the token to a new version or make a ...
0
votes
0answers
93 views

VSCode sfdx deploy error after authorizing: Error authenticating with the refresh token due to: expired access/refresh token. Able to retrieve

I'm experiencing an issue where I can authorize an org from VSCode, but can not deploy to the org. Interestingly enough, I can retrieve from the org - when I type in the command from the terminal, not ...
0
votes
1answer
98 views

Error: 'read ECONNRESET' unable to retrieve components in vscode

In VS Code, I performed these steps: Ran the command 'SFDX: Create Project with Manifest'. Ran the command 'SFDX: Authorize an Org' and authorized the org. Right-clicked the package.xml file and ...
0
votes
0answers
24 views

Not able to create Scratch Org in VS Code

I am trying to create a scratch org from VS code but it shows me an error. It says "connect ETIMEDOUT 101.53.168.237:443" I was able to do it correctly few days back - all of a sudden its ...
0
votes
0answers
62 views

Unverified Breakpoint: Apex Replay debugger not stopping at the break points in VS Code

I am experiencing an issue with the Apex Replay Debugger on my Mac. When I am trying to replay a log file in Apex Replay Debugger in VSCode, the debugger never stops at the specified break point. When ...
0
votes
3answers
55 views

Unable to retrieve workflow rule from case comment object

I have created a new workflow rule for Case Comment object. When trying to retrieve from org browser getting this error "Cannot read property 'split' of undefined" and when i tried to ...
1
vote
1answer
352 views

Local server connection Issue with Lightning Web Component in VS Code

I was trying to connect local server with the lightning web component in Vs code.I have written the following command in terminal sfdx plugins:install @salesforce/lwc-dev-server But I am getting this ...
1
vote
1answer
174 views

No Package.xml Found In Destructive MDAPI Deployment

I've already looked at the existing questions and made sure of the following: Only package.xml & destructiveChanges.xml are in the folder I'm trying to deploy. package.xml is empty outside of the ...
1
vote
1answer
42 views

How do I prevent developers from deploying directly to Devhub and instead push the code to sandbox?

I have a production org that is the Devhub. I have a full copy sandbox. I want that the developers that are working on their respective scratch orgs, don't deploy their changes to production directly. ...
3
votes
1answer
562 views

Salesforce VScode retrieve from org "Cannot read property 'split' of undefined"

I was using the "Retrieve source in manifest from org" command for the resources in package.xml file. However when I executed the command it failed saying "Starting SFDX: Retrieve ...
0
votes
0answers
39 views

Running SFDX: Create a Default Scratch Org doesn't create a scratch org

When I run the command SFDX: Create a Default Scratch Org.. it doesn't creating the scratch org, the banner of the command is still there and the command prompt doesn't show any error. Any help would ...
1
vote
0answers
32 views

How to write a meta data for an object (Standard Object and Custom Object )?

I want to create meta data file so that I can enable field history tracking and there is no need for manual enabling in sandbox. I want this metadata file to work with Jenkins pipeline. I have to do ...
1
vote
1answer
57 views

YML scripts for deploying changes into DEV instance

I have the below bash script to deploy the changes are checked in to Azure Devops to the Salesforce instance. Script runs as soon as checkin made to DEV branch it is all working good sfdx force:...
0
votes
1answer
29 views

Where to place eslintrc.json and jsconfing.json when we use multiple package directories?

Should I have signle jsconfing.json and eslintrc.json in sfdx project that is in fact monorepo or I need separate configurations for each directory/package? What are pros and cons of mentioned ...
0
votes
0answers
30 views

How to stop the panel from opening up when you save in VS Code?

Whenever I save my code in VS Code, the bottom panel opens up, and I have to manually close it. Is there a way to suppress it, or have it 'auto close'? I checked my settings for panel and Save and ...
0
votes
1answer
21 views

error on page while displaying lwc component on record page

i want to create account records using lwc with its 6 fields. code was deployed successfully but when i deployed it on page it gives error-the page has error you might need to refresh it. here is my ...
0
votes
0answers
17 views

Turn on Replay Log Debugger fails in Visual Studio Code

I'm getting an error when trying to use the 'turn on Apex debug log for replay debugger' command in Visual Studio Code. VS-Code version 1.15.2 sfdx-cli version sfdx-cli/7.98.0 linux-x64 node-v15.14.0 ...
0
votes
0answers
35 views

show list of account record on clicking in checkbox and delete the selected account and refresh list

I want to show account record on checking a checkbox and delete the selected record and refresh list but I am getting errors. duplicate value found: duplicates value on record with id: Cannot find ...
3
votes
1answer
160 views

SFDX - LWC1001: Unexpected compilation error: did not find a shallow_cmp function for AST_Chain

Problem: After developing 4 LWC components then deploying to a scratch org via SFDX: Push Source to Default Scratch Org, the Salesforce CLI returns: LWC1001: Unexpected compilation error: did not find ...

1
2 3 4 5
8