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
neblincneblinc 

Error when saving to server from eclipse: did not find Apexclass component

I'm trying to save a new apex class to server and I get error in saving from another apex class which has been in our classes for some time. The error is on a class with a single static test method. The error says:

'did not find apexclass component  for 'my_test'.

 

How do I debug this error ?

 

Looks like when saving to server it is running unit test and failing. Yes, I'm not saving to sandbox. If I work with sandbox - will I run into error anyway when I eventually move this to production ?

bob_buzzardbob_buzzard

Are you attempting to save directly to a production org?  The developer's guide states that you can't do this, so maybe that's the problem.

 

You should develop on a sandbox/dev org and then deploy from Eclipse to the production org once your code is working and you have test coverage.