Running project with errors present in some files...

Hello All

I have a project in which I have added as sources the source code of the framework
on which i am building my project, There are some errors in that code base BUT
these do not interfere in the code which is needed to run.

So my question - Is there an option like eclipse has which asks the user whether
user would like to continue to run inspite of the errors. Ofcourse eclipse will immediately
stop running the moment it runs into some compilation issue in the code present
in the flow of excution . BUT in my case, there is some code for example say test case
code or some helpers which do not affect the run in any way.


So is there some option which i can tweak to achieve this. Am using version 6

Thanks
swaroop belur

4 comments

IMHO the only way is to exclude those files from compilation (Settings
-> Compiler -> Exclude from Compile or right click on the error message).

swaroop belur wrote:

Hello All

I have a project in which I have added as sources the source code of the framework
on which i am building my project, There are some errors in that code base BUT
these do not interfere in the code which is needed to run.

So my question - Is there an option like eclipse has which asks the user whether
user would like to continue to run inspite of the errors. Ofcourse eclipse will immediately
stop running the moment it runs into some compilation issue in the code present
in the flow of excution . BUT in my case, there is some code for example say test case
code or some helpers which do not affect the run in any way.


So is there some option which i can tweak to achieve this. Am using version 6

Thanks
swaroop belur


--
Martin Fuhrer
Fuhrer Engineering AG
http://www.fuhrer.com

0

You could use the Eclipse compiler itself to achieve this. It is
included with IntelliJ IDEA, though it is quite an old version (0.631
from Eclipse 3.2.0 milestone-4).
To use the Eclipse compiler, go to File | Settings | Compiler and select
Eclipse under "Use compiler:". To enable the compiler to continue in the
presence of errors add "-proceedOnError" to the "Additional command line
parameters"

Bas

swaroop belur wrote:

Hello All

I have a project in which I have added as sources the source code of the framework
on which i am building my project, There are some errors in that code base BUT
these do not interfere in the code which is needed to run.

So my question - Is there an option like eclipse has which asks the user whether
user would like to continue to run inspite of the errors. Ofcourse eclipse will immediately
stop running the moment it runs into some compilation issue in the code present
in the flow of excution . BUT in my case, there is some code for example say test case
code or some helpers which do not affect the run in any way.


So is there some option which i can tweak to achieve this. Am using version 6

Thanks
swaroop belur

0

even changing to eclipse compiler in settings and providing the argument
does not solve the issue.

Idea still doesnt start the project...

0

If you are running from IDEA itself, you need to disable the "Make before launch" in the run configuration. Otherwise IDEA will stop the run if the compiler reports an error. This does mean that you will have to manually invoke make, before running if you want to use your latest code.

Bas

0

Please sign in to leave a comment.