1

As in the title, I've encountered a problem with the .sfdx/ folder in my repo. After cloning the project it sees some local changes in the typings/lwc and typings/tools folder. .sfdx/ folder is ofc in the .gitignore.

enter image description here

I can discard most of the changes except the apex.db. In this case I'm getting this error: enter image description here

I've tried killing Java process in the background etc. but nothing worked. Only cloning project once again allowed me to change branches but this ofc isn't the solution.

Does anyone have an idea what's the issue and how to solve this one?

4
  • There may be a background process that is still using it, might want to restart vscode otherwise your computer as well and try again?
    – Raul
    Commented Jun 23, 2022 at 9:26
  • @Raul done that, sadly it's happening every time when the branch is changed so even killing the java process as this is the one in the background every time is not the best solution sadly
    – ukulele
    Commented Jun 23, 2022 at 9:36
  • Have you tried soft reset in GIT? and also restarting your computer?
    – Raul
    Commented Jun 23, 2022 at 9:40
  • yes, all of it - nothing worked
    – ukulele
    Commented Jun 23, 2022 at 9:44

1 Answer 1

2

I had the exact same problem. Try removing the cache for this file, it worked perfectly for me.

git rm -r --cached .sfdx/tools/apex.db or even just git rm -r --cached .sfdx

1
  • Awesome! git rm -r --cached .sfdx worked perfectly and everything seems to be fine now. Thanks a lot :)
    – ukulele
    Commented Oct 18, 2022 at 13:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .