forcedotcom / cli

Salesforce CLI
https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/
BSD 3-Clause "New" or "Revised" License
494 stars 78 forks source link

Deploy on save fails - %s: File or folder not found #1283

Closed wrone closed 2 years ago

wrone commented 2 years ago

Summary

When I press ctrl+s the automatic deployment of a file fails. The terminal shows this error - %s: File or folder not found.

When I click the "SFDX: Deploy This Source to Org" - the file is deployed without errors.

image

System Information

$ sfdx version --verbose --json { "cliVersion": "sfdx-cli/7.126.0", "architecture": "win32-x64", "nodeVersion": "node-v16.13.0", "pluginVersions": [ "@oclif/plugin-autocomplete 0.3.0 (core)", "@oclif/plugin-commands 1.3.0 (core)", "@oclif/plugin-help 3.2.3 (core)", "@oclif/plugin-not-found 1.2.4 (core)", "@oclif/plugin-plugins 1.10.1 (core)", "@oclif/plugin-update 1.5.0 (core)", "@oclif/plugin-warn-if-update-available 1.7.0 (core)", "@oclif/plugin-which 1.0.3 (core)", "@salesforce/sfdx-plugin-lwc-test 0.1.7 (core)", "alias 1.1.22 (core)", "apex 0.3.0 (core)", "auth 1.7.5 (core)", "config 1.2.46 (core)", "custom-metadata 1.0.12 (core)", "data 0.6.4 (core)", "generator 1.2.1 (core)", "limits 1.2.3 (core)", "org 1.9.0 (core)", "salesforce-alm 53.4.1 (core)", "schema 1.0.10 (core)", "sfdx-cli 7.126.0 (core)", "source 1.3.1 (core)", "telemetry 1.2.8 (core)", "templates 52.6.0 (core)", "trust 1.0.10 (core)", "user 1.5.2 (core)" ], "osVersion": "Windows_NT 10.0.19043" }

github-actions[bot] commented 2 years ago

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

maggiben commented 2 years ago

Hi, can you trying doing a deploy from the command line instead ? sfdx force:source:deploy -p force-app

wrone commented 2 years ago

Hey,

both work: sfdx force:source:deploy -p "force-app\main\default\classes\MyApexClass.cls" sfdx force:source:deploy -m ApexClass:MyApexClass

image

klivian commented 2 years ago

Seeing it too, but only on the "Deploy on save" like @wrone - does this mean the issue belongs more in https://github.com/forcedotcom/salesforcedx-vscode/issues rather than here?

wrone commented 2 years ago

@klivian I will raise it there as well

wrone commented 2 years ago

I guess the issues will be solved soon - https://github.com/forcedotcom/salesforcedx-vscode/issues/3657