SFDX not pushing

Something funky happening with SFDX CLI. Earlier today, I had an unexpected restart on my Mac — not sure why, but I’ve run an anti-virus scan and appears to be clean. Restarted a couple of times.

Now, SFDX not seeing a status difference between my source and my scratch org. I was able to push a layout, but the class had an error (invokable classes can only have one parameter). I fixed that and tried to push again, but got the “No Results Found” error. If I run sfdx force:source:status, I get “No Results found”.

I double checked the scratch org — the class isn’t there, but sfdx doesn’t see a difference between my source and scratch.

I thought maybe I had mistakenly edited the mdapioutput class (that happened to me once before), but I don’t have a current mdapioutput set of files, so it’s not that.

Wondering if something got corrupted, if so, what would it be, and how can I check it/fix it?

UPDATE: I was able to fake it out by creating another new class that did nothing, but when I ran sfdx force:source:status, it showed up, along with the real class I wanted to move. I was able to push them both, then delete the dummy class.

Answer

UPDATE: I was able to fake it out by creating another new class that did nothing, but when I ran:

sfdx force:source:status

It showed up, along with the real class I wanted to move. I was able to push them both, then delete the dummy class.

Attribution
Source : Link , Question Author : PatMcClellan__c , Answer Author : Robs

Leave a Comment