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
1 answer
54 views

sf v2 CLI does not work with VSCode Salesforce Extensions

I have upgraded to sf (v2) from sfdx (v7) As per documentation: Move from sfdx (v7) to sf (v2) Which involved uninstalling sfdx (v7) But now when using VSCode the commands it generates no longer ...
Robs's user avatar
  • 9,187
0 votes
0 answers
44 views

Deploying tracked Activity field through VS Code

I'm having some issues figuring out how to deploy field tracking for an Activity field. I'm sure it's something to do with the weird Activity/Task/Event web that Salesforce has weaved. I tried adding ...
LFelts's user avatar
  • 1
0 votes
1 answer
74 views

VS Code CLI Retrieve taking too long to respond/complete

For several years I have been using the SF CLI retrieve commands in VS Code to retrieve data from my Partial Copy Sandboxes to my local git repo. About a month ago I moved from using the force:source:...
Jeff Callahan's user avatar
-2 votes
0 answers
26 views

Issue fetching ScratchOrg details from VS Code [duplicate]

Problem: unpackaged/package.xml Entity of type 'Report' named 'prm_channel_reports_folder/prm_channel_producivity_reports_folder' cannot be found
Saripilli Ramya Jyoshna Yadav's user avatar
0 votes
1 answer
343 views

Issue while Authorizing Org to VS Code though two of my org are already connected to VS Code

Can anyone please help?! I am unable to do Authorize org with VS Code. I have two orgs that are already authorized with VS Code, but I am not able to authorize a new org. It's throwing an error though ...
Puja's user avatar
  • 1
2 votes
1 answer
61 views

Apex VS Code Type Intellisense

I am wondering if anyone knows a way to make "type" intellisense work better when instantiating things like Lists and Maps in VS code for Apex. I've put a few examples in the images below, ...
user3643040's user avatar
1 vote
0 answers
108 views

VS Code Salesforce extensions not activating

I've been using VS Code for a few years now, and in different computers and even in a couple of companies but a several weeks ago I have been having this issue. When opening or running any command in ...
Marco Galvão's user avatar
0 votes
1 answer
323 views

How to retrieve List View buttons using SFDX?

I am trying to retrieve the list view buttons settings from my Lead object but am unsure of how to capture this using VSCode Org or SFDX. It is under Custom Objects > Leads > List View Button ...
Deployment Failure's user avatar
0 votes
0 answers
56 views

Retrieve the folders of dashboards/reports with vscode package.xml

I want to register a report folder using the package.xml in VScode and transfer the folders. I entered the following source code in the package.xml, and when I performed a retrieve in the terminal, an ...
Mitsunori's user avatar
0 votes
0 answers
151 views

VS Code Retrieve and Deploy Commands are not working from command palette/right click menu while working great from Terminal commands

Getting below error when I Retrieve or Deploy any component in my VS Code - Error deploying or retrieving source: The file or directory that you tried to deploy or retrieve isn't in a package ...
sunil gupta's user avatar
0 votes
0 answers
79 views

Trying to retrieve all the Metadata components in VSCode

I have tried to retrieve all the Metadata components from a Production org in VS Code successfully in the past by using the below command. sf project generate manifest --from-org --name=allMetadata -...
Soham Banerjee's user avatar
0 votes
0 answers
20 views

Org Status=requested resource does not exist

Yesterday, the all of the connected orgs that I had been using without issue had their statuses change to "The requested resource does not exist" in vs code. I have tried uninstalling and ...
Lauren Sweet's user avatar
0 votes
0 answers
273 views

VS Code - Authorize An Org - Failing on SFDX command

I recently started getting an error when trying to authorize an org using the Salesforce extension in VS Code. This is the error I am getting: sfdx org:login:web --alias PackagingOrg --instance-url ...
James's user avatar
  • 329
-3 votes
1 answer
30 views

Authorizing Salesforce Dev Org From VS Code

When I am trying to authorize my dev org in VSCode, I am getting the below error? Is anyone facing the same issue?
Sudipta Deb's user avatar
  • 1,261
-1 votes
2 answers
399 views

how to overcome salesforce CLI slowness?

Salesforce extensions are taking ages to load in VS-Code. CLI team is releasing updates 5 times in a month, Not sure each release has went through performance testing before release ? After update I ...
Ragul's user avatar
  • 1
0 votes
1 answer
132 views

Unable to install lwc local server VS code

from yesterday I'm trying to install LWC local development server using 'sfdx plugins:install @Salesforce/lwc-dev-server' but i'm getting an error a weird error like this. Polling for new version(s) ...
Mohammad Danish's user avatar
1 vote
0 answers
56 views

Manually loading apex test code coverage from sfdx command into vsCode

Whenever I run tests through vsCode, the tests take very long time to complete (a single test could take up >10 min or they time out with the "Your request exceeded the time limit for ...
Luis M Valenzuela's user avatar
-2 votes
1 answer
200 views

Not authorizing sandbox in VS code

I am getting error while authorizing sandbox in VS code. Earlier I was successfully authorized old sandbox but now it is giving error. After Users\PJ20912 I am not able to see path in my computer. Can ...
Varsha Yadav's user avatar
0 votes
1 answer
598 views

VS Code Apex Language Server Error

I am experiencing an issue with the Apex Language Server not running in VS Code. I have looked for solutions to this issue. The only thing I found recommended trying to set the Java path in the ...
James's user avatar
  • 329
0 votes
1 answer
52 views

Not able to setup Default org in VS code

Previously I have setup sandbox as a Default Org in my VS code. But somehow it's not showing now and when I am trying to setup again, I am not able to do so as commands are not showing in Command ...
Shobit Gupta's user avatar
0 votes
0 answers
1k views

Unable to do sfdx deploy or sfdx retrieve from Vs code

I reinstalled git as I thought my git became corrupt, git doesnt have issue as git log and git status commands work. My VS code is connected to a sandbox, whenever I am doing a sfdx deploy source to ...
amitsingh6651's user avatar
0 votes
0 answers
129 views

How to retrieve profile's all metadata in vscode?

I want to retrieve profile's all metadata which include fields permission, classes permission , layout assignment. I tried few ways which didn't seems to work Using package.xml : I have added profile,...
StackExchange's user avatar
-1 votes
1 answer
28 views

Query regarding Org browser

I forgetfully hide the org browser(cloud logo) in vs code. Anyone knows how to unhide it?
Ronit Das's user avatar
1 vote
1 answer
60 views

Is sfdx force:apex:log:tail working with findstr on Windows 10?

As I'm on Windows 10 and currently not intending to install the Linux Subsystem (WSL) on my machine I'm wondering why I couldn't get this command running sfdx force:apex:log:tail --color | findstr ...
Maserick's user avatar
  • 100
0 votes
0 answers
57 views

How to setup a DX Project Workflow to customize Production

I am trying to understand the workflow of creating a DX project from an existing Production Org so that I can port over all metadata to a DevHub and ScratchOrg in order to make customization. I am ...
Ricardo da Silva's user avatar
5 votes
1 answer
714 views

Which AI tools are able to generate code for Salesforce development?

I've had Cody AI running in my VS Code setup, but am wondering what other AI tools I should try e.g. GitHub Copilot? Also I'm wondering if Illuminated Cloud 2 with its explicit parsing of Apex and the ...
Keith C's user avatar
  • 135k
0 votes
0 answers
49 views

How to retrieve a UI Schedule Job metadata from Org?

I know that we can use code to schedule jobs, but I already have a UI based Schedule Job on my org, and I only want to fetch the metadata for that. I have org browser in my VS Code, but I can't find ...
Amit Jodha's user avatar
0 votes
0 answers
45 views

DNS Error from VS Code

Just started happening today. Cannot connect to any orgs via VS Code: Any ideas what is going on here? On latest CLI version and have rebooted. Same error regardless of Comcast or Verizon internet ...
Dave C's user avatar
  • 457
1 vote
0 answers
2k views

Getting the error : The "path" argument must be of type string. Received undefined

When I am trying to push an lwc component to the org using SFDX: Deploy This Source To Org I am getting the following error : The "path" argument must be of type string. Received undefined ...
SFDC Learner's user avatar
3 votes
1 answer
434 views

How to control logging level of VSCode's output when executing Apex anonymous?

When working with a scratch org within VSCode, I periodically setup a simple file to test out various Apex commands, etc. I will setup the Apex script and the use VSCode's command palette to run the ...
ImJohnMDaniel's user avatar
0 votes
1 answer
96 views

Code coverage button missing in vscode

According to the docs and another answer I should have a three-bars icon in the bottom status bar which will allow me to toggle view of apex test coverage. I don't have this button. Disabling all ...
YodaDaCoda's user avatar
0 votes
0 answers
204 views

CLI installation sfdx is not recognized

I am trying to get VS Code and SF CLI to work but after the installation of both I am getting the "sfdx is not recognized as the name of a cmdlet..." when I attempt to test my CLI ...
Zoom_v's user avatar
  • 3,856
15 votes
2 answers
3k views

VSCode doesn't clear errors even after successfully deploying to org

Since last week Friday my VSC is no longer clearing errors, even after I fix them. The only way to clear them is to close VSC and reopen it, which is a rather painful thing to do every time just to ...
Irene's user avatar
  • 1,765
8 votes
3 answers
4k views

VS Code deploying takes too long

Deploying any updates via VS Code salesforce extension can take 5-10 minutes. Restarting of VS code helps for 2-3 first deploys and then the issue comes back. Deployment Status at org says, that ...
Vadzim Brazevich's user avatar
0 votes
1 answer
250 views

Error While Deploying Schedule Trigger Flow

While Deploying the Schedule Trigger Flow I am getting the following error : This flow can't reference $Record because its trigger type is None. Change the trigger type, change the flow global ...
SFDC Learner's user avatar
-1 votes
1 answer
361 views

Salesforce Org Autorize Error

Hi guys I have a problem with authorize to my Sandbox, I used this command to authorize "login --setalias "MyOrg" --instanceurl "MyOrgUrl" --setdefaultusername" and ...
Nikita Ershov's user avatar
0 votes
1 answer
513 views

sfdx force:source:push -u globalschema --ignore warnings --forceoverwrite

I am used to using this command: sfdx force:source:push -u globalschema --ignore warnings --forceoverwrite Now I am getting this error Warning: We plan to deprecate this command in the future. Try ...
sdfxconfuseduser's user avatar
-1 votes
1 answer
5k views

SFDX: Authorize an Org failed to run

11:55:18.338 sfdx force:auth:web:login --setalias vscodeOrg --instanceurl https://login.salesforce.com --setdefaultusername (node:8748) Warning: Deprecated environment variable: SFDX_JSON_TO_STDOUT. ...
Elnura's user avatar
  • 1
-1 votes
1 answer
1k views

Cannot read properties of undefined (reading 'split')

https://trailhead.salesforce.com/content/learn/projects/get-started-with-salesforce-development/get-ready-to-develop I am following the project on Trailhead, when I was trying to "Execute ...
eins's user avatar
  • 1
4 votes
2 answers
1k views

VS Code SFDX Unit Tests: Cannot see "Run Test" or "Run All Tests"

At some point in the last week I found that I can no longer see the following prompts at the top of already working unit tests in VS Code Run All Tests Run Test | Debug Test While this is absolutely ...
VaroutSP's user avatar
  • 321
1 vote
0 answers
74 views

Apex Test in VS Code: "Faye client generated a transport:down event"

Weird message when I tried to use Salesforce Extensions to run an Apex test in VS Code this morning: Running SFDX: Run Apex Tests: Faye client generated a transport:down event. Who is Faye, and where ...
Matthew Souther's user avatar
0 votes
1 answer
188 views

Does anyone know how to include the namespace prefix in your VSCode folder structure when running "sfdx force:source:retrieve"?

When running "sfdx force:source:retrieve -x package_objects.xml" our folder structure does not include the prefix for our managed package. For example we have a custom object "NewObject&...
sgrimes's user avatar
0 votes
0 answers
126 views

Apex Replay Debugger: list of size x too large to display

I am trying to debug an Apex Class for Salesforce B2B Commerce. In this class I am querying the Order Delivery Method records but when I try to see these records in the debugger it says list of size 7 ...
RanRag's user avatar
  • 125
1 vote
0 answers
611 views

Unexpected end of JSON input in vs code when trying to retrieve org browser metadata

When i am trying to retrieve Org browser metadata through vs code i am getting this error. SyntaxError: Unexpected end of JSON input I have created package with manifest,authorized my org and set ...
Deepak Agarwal's user avatar
0 votes
0 answers
113 views

Salesforce SFDX and Netskope

Following the deployment of a security solution within our park, Netskope (similar to Zscaler) We have problems with SFDX CLI and VSCode, indeed we solved a first problem concerning SSL: We added the ...
Sebastien38300's user avatar
0 votes
1 answer
142 views

Viewing apex code completion details after sf deploy fails

I'm writing an Apex trigger and testing it against a Salesforce developer instance. I've been writing the code in VS Code, and deploying by running sf deploy. When I run sf deploy the Test results ...
David Kane's user avatar
0 votes
1 answer
42 views

VSCODE Log for Replay Debugger Inconsistent with current code

After pushing code, setting breakpoints, enabling Log for Replay, running tests and Retrieving Debug logs When I step through, the pointer seems to be pointing at phantom code lines, and seems as ...
Ricardo da Silva's user avatar
2 votes
1 answer
208 views

Assert not available in VSCODE

The Assert class does not appear to be available in VSCODE with extensions installed. While I can still use the class and its methods with no errors on Push , the editor complains about it and there ...
Ricardo da Silva's user avatar
0 votes
0 answers
371 views

Error parsing file

I am having difficulties deploying reports and dashboards from dev org to another dev org. After retrieving the metadata ( report folder , dashboard folder, reports and dashboards) i want to deploy by ...
Alpar.Balo's user avatar
1 vote
2 answers
657 views

Unable to install lwc-dev-server / run sfdx force:lightning:lwc:start

I am trying to run LWC in local. I was able to install with errors C:\WINDOWS\system32>sfdx plugins:install @salesforce/lwc-dev-server Polling for new version(s) to become available on npm... done ...
PAS's user avatar
  • 111

1
2 3 4 5
11