-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backslashes in comments in .forceignore
produce warnings on deploy
/retrieve
#3127
Comments
we probably just need to update the regex to exclude comments 💡 |
I believe this is the place where it checks the whole I am curious though why the warning "spams" multiple times in the terminal during the |
you're correct. I actually have that open and was modifying it now!! it seems like every time the I'm changing it so it goes line by line, and checks if it's a commented line |
Summary
When .forceignore file contains backslashes
\
in the comments (for whatever reason...), sf project retrieve start and sf project deploy start commands add multiple warning messages as below:Why backslashes occurred in your
.forceignore
file?When some files are failing to deploy, we happened to add ignore pattern and included the problematic filepath as a comment to that ignored pattern. And the original deployment failures output displayed filepath with backslashes (on Windows). 🙂
Steps To Reproduce
.forceignore
file to include the following line at the end:sf project retrieve start
andsf project deploy start
CLI commands in the VSCode Terminal (PowerShell 7), see the warning(s) in the terminal output. In my case,sf project retrieve start
command produced 3 warning messages;sf project retrieve start
produced 1 warning message.\
with a slash/
character, and run thesf project retrieve start
CLI command again - no warnings produced.Expected result
Backslashes in comments should be ignored, the warning should only react to baskslashes used in the ignored path patterns.
Actual result
Warning is displayed (even multiple times in case of
retrieve
operation).This is especially annoying when running
sf project retrieve start
in the project where many components exist, then these messages are flooding the terminal buffer.System Information
Diagnostics
✅ pass - salesforcedx plugin isn’t installed
✅ pass - you don't have any linked plugins
❌ unknown - using latest or latest-rc CLI version
✅ pass - [@salesforce/plugin-deploy-retrieve] sourceApiVersion matches apiVersion
✅ pass - [@salesforce/plugin-deploy-retrieve] default target DevHub max apiVersion matches default target org max apiVersion
✅ pass - [@salesforce/plugin-deploy-retrieve] sourceApiVersion matches default target org max apiVersion
✅ pass - can access: https://test.salesforce.com
✅ pass - can access: https://appexchange.salesforce.com/services/data
✅ pass - can access: https://developer.salesforce.com/media/salesforce-cli/sf/channels/stable/sf-win32-x64-buildmanifest
> sf version --verbose --json
output:The text was updated successfully, but these errors were encountered: