When I run the Solution file, Intellij opens task3412\Solution.java and has the error "java: package org.slf4j does not exist" I have checked the import and package lists for all the files in this task, none of them refer to task 3412. Since I passed validation, I can't post the files here (CodeGym, this is really not a helpful rule, we need to be able to discuss the solution sometimes!). Anyone have any idea why this is happening? And can anyone else confirm that this happens? Here is what the screen looks like before I click the run button. The code for this task is in ConvertibleUtil.java so I'm not showing the solution in this screenshot. When I click the run button, this is what happens:
Passed validation, but when running Solution, it tries to run a file from another task!
You must be signed in to leave a comment
24 November 2022, 18:32
jovarunner.5 enf endier retur retuno retune wile() 5 complire Colulatshion 64Atisicjovarunnercompiler 15;©®™%15 Son.BV.Sisesrsses©®™ArtiesSinger
24 November 2022, 16:01
Codegym put all tasks in one big IntelliJ project. And when you run (compile) one task, the entire project compiles, means all single tasks. If in one file of the project is a problem, then IntelliJ will show you that. And you didn't import the necessary libs for task3412. Just do that and you can go on coding.
26 November 2022, 15:25
But I was able to do the previous tasks without this happening. I have many incomplete tasks, but did not have this problem before. I just deleted the solution file for that task and then was able to run this one.
26 November 2022, 15:47
The compiler doesn't care if you think the code is finished or not. The compiler only cares if your code is syntactically correct. And if classes are used in the code that are unknown to the compiler, then it should definitely give an error. Why not just import the missing lib? How did test your code in the first place? Or comment out the code in question.