Intellij seems to be running my code from the OUT folder rather than SRC

Answered

I have come to a complete standstill on my project because Intellij seems to be using the generated code in the OUT folder rather than the actual source code in the SRC folder. I've been wracking my brains for days now and haven't gotten anywhere. It seems no matter what changes I make to my source code when I run my tests Intellij seems to compile the code stored in the OUT folder which of course has remained unchanged for days now.

Has anyone ever experienced a similar issue or can someone tell me exactly where/ how the source code path is configured? 

My project is a Test automation project using Cucumber ...so the Feature files are working fine it's the Steps and pages that are being read from the OUT folders.

Any help at all would be much appreciated

 

0
4 comments

See http://www.seleniumframework.com/cucumber-jvm-3/cucumber-jvm-folder-structure/.

Do the files get updated in the output folders after Rebuild?

If the issue remains, please provide a sample project illustrating the problem and the exact steps to reproduce.

0
Avatar
Permanently deleted user

Thanks for that.

I should have mentioned that the project is not new and has been working fine for months. Something somewhere seems to have changed and I can't think of any obvious causes.

To answer your question the output files do not get updated upon rebuilding/running they are stuck as they were several days ago.   

0

Enable debug log and check build.log for any issues (https://intellij-support.jetbrains.com/hc/articles/207241085). Try configuring the project content and source roots from scratch, see https://www.jetbrains.com/help/idea/configuring-content-roots.html.

0
Avatar
Permanently deleted user

Thanks for the help Serge, Managed to get it sorted... I previously had opened my project in Android Studio which seemed to amend one of the JDK paths for my project. This setting got carried through to IntelliJ and was causing confusion as there were two different paths. This caused my (gradle) build to fail (but with no specific errors) which in turn meant my OUT folder was not being regenerated but the tests themselves carried on regardless. Not entirely sure where the specific setting was in IntelliJ but after much trial and error managed to get it back to the correct path. 

Cheers

0

Please sign in to leave a comment.