function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Dave CraigmileDave 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:
 
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.app
Any thoughts?  Following the instructions in the error message does nothing.  I am on the latest of everything....

Thanks.


 
SwethaSwetha (Salesforce Developers) 
HI Dave,
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
Dave CraigmileDave Craigmile
Nope.  Did not help:

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
 
SwethaSwetha (Salesforce Developers) 
It appears to be a bug that many users reported. While the salesforce product development team is working on the fix, the workaround would be to downgrade to salesforcedx@49.13.1 
Reference: https://github.com/forcedotcom/cli/issues/690
Dave CraigmileDave Craigmile
Thanks.
SwethaSwetha (Salesforce Developers) 
Based on https://github.com/forcedotcom/cli/issues/690#issuecomment-716869356 the issue has been fixed on the latest update. Please run the below command
sfdx plugins:install salesforcedx@latest-rc

Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you
Nishant Goswami 19Nishant Goswami 19
This is how I resolved this issue.
https://developer.salesforce.com/tools/vscode/en/user-guide/detect-conflicts/