question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is your feature request related to a problem? Please describe. I’m running the new change_set_based_tools and a compile on save is desperately needed.

Describe the solution you’d like Setting you can add to cause it to run deploy this source file to org command on save

Describe alternatives you’ve considered Could probably use a “Run on save extension” but it would be much nicer to have it supported out of the box

Internal Work Item: W-5552627

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:7
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
NikitaChizhikcommented, Dec 19, 2018

Please , could you do deploy on save. (I should press ctrl+save then with mouse choose file from left sidebar and right click and choose to deploy source to org. and repeat it every time I want to deploy) - that’s a nightmare.)

Note: I am dealing with not scratch org. I develop against any org(simple). Thats my case for now. VSCode version is latest and salesforcePack version is latest.

Now I made a shortcut(ctrl+d) to deploy current open file . BUT it also doesnt work. it writes to me Cannot read property ‘fsPath’ of undefined.

Please look at these two bugs (which prevent me and many others not to use vsCode and this SF plugin).

Thanks for your project and work.

1reaction
smrobert09commented, Oct 31, 2018

@renatoliveira @omniphx @ntotten We have an extension that adds the file system tracking. It creates a hash table of the folder structure, detects changes, and allows a ‘deploy all changes’ type command.

SFDX creates the hash file automatically on ‘force:source:retrieve --manifest’ (the sourcePathInfos.json file under .sfdx/orgs/<orgUsername>/sourcePathInfos.json). The problem is that it deletes as soon as the command finishes, making us rebuild it or try to capture/copy it. I know sandboxes aren’t source tracking orgs, meaning that we override changes on every push, but if that file were left in place, this would be an easy win. Is this something we can request from the CLI team @ntotten ?

We could easily then create a pull request for this into the official package.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deploy On Save | Salesforce for VSCode
Select File > Preferences > Settings (Windows or Linux) or Code > Preferences > Settings (macOS). · Under Salesforce Feature Previews, select Push-or-deploy-on-...
Read more >
Push or Deploy on Save in Visual Studio Code to Salesforce Org
This video post explained about to enable Push or Deploy on Save in Visual Studio Code to Salesforce OrgProductive features for the ...
Read more >
Salesforce VS-Code new “Push or deploy code on save”
Go to : preferences > setting > Salesforce feature Previews · Click the “Edit in setting.json” · Click “Copy to Setting” · Set...
Read more >
How to Deploy the changes on Save in Salesforce using ...
How to Deploy the changes on Save in Salesforce using VSCode · Go to:File > preferences > setting > Salesforce feature Previews ·...
Read more >
Push or Deploy on Save in Visual Studio Code Salesforce
This features useful for the developer to push or deploy the code when a local source file is saved using simple key shortcut...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found