I need help with very annoying IntelliJ behavior. Let's say I was working on the task number one and didn't finish it yet (unfinished code, some errors, etc.). Then I decided to take a rest and take a look on the task number two, and I wrote the solution and press "Run". Then, instead to this this particular second task IntelliJ switch back to the first task and throws an errors for the first task.
How can I prevent IntelliJ from checking previous tasks while I'm working on another tasks? I mean, if I need to run second task I want to see output only for that tasks.
Thanks in advance. It is very annoying.
IntelliJ while pressing Run on the one task throw an errors and switch to old task
Resolved
Comments (4)
- Popular
- New
- Old
You must be signed in to leave a comment
Anthony Chalk
17 September 2020, 10:38
I think the best way would be to copy-paste the code from the first task and save it somewhere.
Then reset the first task so there aren't any errors
0
Roman Grygorczuk
17 September 2020, 10:47
I have tried this one two, but most of the time first task has errors by default. Like in the tasks when I need to add static word to variables. So resetting does not help as the basic code has an issues by default which I need to fix. It is happening only while I enroll new tasks and do no finish it.
0
Roman Grygorczuk
17 September 2020, 11:10
Actually I just found a reply for the one of the task from Alex (41 level) and he says "Also, if you have errors in any of the other tasks in the same project (i.e. within CodeGymTask), IntelliJ IDEA will always refer you to that task(s) and will not let you verify any tasks, until you fix all errors in the project."
This is exactly what I mean. Do you think I still can avoid this issue?
0
Anthony Chalk
17 September 2020, 12:02solution
You could try deleting that particular class from IntelliJ.
You may want to check with the CodeGym mods before doing that though
+2