New answers tagged

0

Did you create your component via the right click context menu in VS Code? It's possible that there's a missing configuration file either among the component files or in your local project. Try recreating the component through that method and make sure the files are saved locally.


0

http://mysalesforcestuff.blogspot.com/2018/10/100-test-class-coverage-when-commenting.html http://carvingintheclouds.blogspot.com/2013/12/deploying-destructive-changes-using.html In sandbox, replace code in class that has no code coverage with few lines of dummy code In sandbox, create test class to cover few lines of dummy code Deploy class and test class ...


0

The easiest solution is to create a new Apex Class via VS Code as per sfdcdox's answer above, then copy the contents of your file 'LightningComponentBundle' into it. Delete the original from Project and Org and then rename your new class as needed. Alternatively you can create the class via the developer console in your org and then retrieve the metadata as ...


1

The error means you're missing a metadata file. On the file explorer, click on the New File button, and name it: ChangePasswordController.cls-meta.xml And give it the following contents: <?xml version="1.0" encoding="UTF-8'?> <ApexClass xmlns="http://soap.sforce.com/2006/04"> <apiVersion>49.0</apiVersion> ...


0

1- Uninstall Salesforce CLI 2- Go to windows explorer and use this path "%LOCALAPPDATA%\sfdx" 3- Delete all the files from there 4- Reinstall Salesforce CLI


0

Technically, there is a way but it is weird and based on the aforementioned background processes: Send a changeset with the component and examine the uploaded changeset source. It is bundled so all css, javascript and markup display in one page. If the source is already in prod, check the the deployed source and view it from there. This is obviously not ...


0

There's a different login flow that's intended for other devices where this local webserver setup isn't feasible, but it's actually a great way of dealing with this exact issue on desktops too! You may need to use the command line directly instead of invoking via the command palette, but it's a simple command: sfdx force:auth:device:login It gives you a code ...


-1

The simplest way to solve this is is to change terminal type , by default VS code uses power shell , if you can change it CMD , it will work . enter link description here


1

I built my own VSCode Extension that I use for the requirements until the Salesforce official extension pack supports this as Generally Available. Allow quicksaving to org upon saving If the code in the server is different than local copy the save is stopped and a compare view is given that shows the difference between local copy and server copy. The ...


1

Automatic conflict detection is available in beta for some commands only: https://developer.salesforce.com/tools/vscode/en/user-guide/detect-conflicts : Select File > Preferences > Settings (Windows or Linux) or Code > Preferences > Settings (macOS). Under Salesforce Feature Previews, select Detect Conflicts At Sync. You can also enter conflict ...


1

Usually this kind of issues are due to sfdx updates by salesforce, first step would be to updating SFDX with sfdx update command. If that doesn't work, try to uninstall the salesforcedx Plug-In with below command and install it again. sfdx plugins:uninstall salesforcedx Edit: There is an issue on Salesforce CLI github project which mentions this.


Top 50 recent answers are included