You need to sign in to do that
Don't have an account?
Dave Craigmile
forceignore process is broken in Winter 2021
forceignore is broken with Winter 2021. I can neither deploy to nor retrieve from the org I am connected to by right-clicking on the package.xml file in my VSCode project. That used to work fine.
Here is my forceignore:
**/jsconfig.json
**/__tests__/**
**/.eslintrc.json
Here is the error I get when I try to deploy source to org:
Thanks.
Here is my forceignore:
**/jsconfig.json
**/__tests__/**
**/.eslintrc.json
Here is the error I get when I try to deploy source to org:
tarting Conflict Detection: converting org source 16:08:53.472 sfdx force:mdapi:convert --rootdir C:\Users\Dave2\AppData\Local\Temp\.sfdx\tools\conflicts\TMS Source Org\unpackaged --outputdir C:\Users\Dave2\AppData\Local\Temp\.sfdx\tools\conflicts\TMS Source Org\converted (node:4856) Warning: The .forceignore file doesn't adhere to .gitignore format which will be the default behavior starting in Spring '21 release. More information on .gitignore format here: https://git-scm.com/docs/gitignore. Fix the following lines in your .forceignore and add '# .forceignore v2' to your .forceignore file to switch to the new behavior. (node:4856) Warning: **\jsconfig.json ERROR running force:mdapi:convert: An error was encountered processing path: C:\Users\Dave2\AppData\Local\Temp\.sfdx\tools\conflicts\TMS Source Org\unpackaged\applications\Transportation.app 16:09:04.164 sfdx force:mdapi:convert --rootdir C:\Users\Dave2\AppData\Local\Temp\.sfdx\tools\conflicts\TMS Source Org\unpackaged --outputdir C:\Users\Dave2\AppData\Local\Temp\.sfdx\tools\conflicts\TMS Source Org\converted ended with exit code 1 An error was encountered during conflict detection. (node:4856) Warning: The .forceignore file doesn't adhere to .gitignore format which will be the default behavior starting in Spring '21 release. More information on .gitignore format here: https://git-scm.com/docs/gitignore. Fix the following lines in your .forceignore and add '# .forceignore v2' to your .forceignore file to switch to the new behavior. (node:4856) Warning: **\jsconfig.json ERROR running force:mdapi:convert: An error was encountered processing path: C:\Users\Dave2\AppData\Local\Temp\.sfdx\tools\conflicts\TMS Source Org\unpackaged\applications\Transportation.appAny thoughts? Following the instructions in the error message does nothing. I am on the latest of everything....
Thanks.
This appears to be the same issue as https://salesforce.stackexchange.com/questions/324025/why-is-sfdx-deploy-throwing-a-false-warning-error-regarding-forceignore-v2-and-d
While I investigate further, can you change to jsconfig.json .eslintrc.json and see if that fixes the error(There might be a warning tough)
I will update this thread as I have more information.Thanks
Starting Conflict Detection: converting org source
13:35:40.910 sfdx force:mdapi:convert --rootdir C:\Users\Dave2\AppData\Local\Temp\.sfdx\tools\conflicts\TMS Source Org\unpackaged --outputdir C:\Users\Dave2\AppData\Local\Temp\.sfdx\tools\conflicts\TMS Source Org\converted
(node:9176) Warning: The .forceignore file doesn't adhere to .gitignore format which will be the default behavior starting in Spring '21 release. More information on .gitignore format here: https://git-scm.com/docs/gitignore. Fix the following lines in your .forceignore and add '# .forceignore v2' to your .forceignore file to switch to the new behavior.
(node:9176) Warning: jsconfig.json
ERROR running force:mdapi:convert: Unexpected file found in package directory: c:\Users\Dave2\Documents\Visual Studio Code\TMS\force-app\main\default\lwc\jsconfig.json
13:35:45.113 sfdx force:mdapi:convert --rootdir C:\Users\Dave2\AppData\Local\Temp\.sfdx\tools\conflicts\TMS Source Org\unpackaged --outputdir C:\Users\Dave2\AppData\Local\Temp\.sfdx\tools\conflicts\TMS Source Org\converted
ended with exit code 1
An error was encountered during conflict detection. (node:9176) Warning: The .forceignore file doesn't adhere to .gitignore format which will be the default behavior starting in Spring '21 release. More information on .gitignore format here: https://git-scm.com/docs/gitignore. Fix the following lines in your .forceignore and add '# .forceignore v2' to your .forceignore file to switch to the new behavior.
(node:9176) Warning: jsconfig.json
ERROR running force:mdapi:convert: Unexpected file found in package directory: c:\Users\Dave2\Documents\Visual Studio Code\TMS\force-app\main\default\lwc\jsconfig.json
Reference: https://github.com/forcedotcom/cli/issues/690
Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you
https://developer.salesforce.com/tools/vscode/en/user-guide/detect-conflicts/