-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Compilation Failed #150
Comments
I just tried the EduTools JetBrains plugin on IntelliJ IDEA 2018.1.1 and it seems to work OK.
https://github.com/Kotlin/kotlin-koans Then you can run the Junit tests in the Project |
I realised recently @haposik has also raised the same issue (with the screenshot). |
You might try running the Junit test manually and look for details on the build errors. Try switching to the Project Files view in the Project tool window, then navigate to lesson2 / task6 / lesson2-task6_test (the task shown by @haposik) or to your particular lesson. Then you can run the test manually as indicated in the screenshot below. The View / Tool Windows / { Messages and Build } windows might have hints about the compiler complaints. To switch back to plug in mode, select "Course" in the project window. |
I find this as a bug..so this should be solved, instead of finding a workaround. |
What compiler errors are you seeing? This information should be in the View / Tool Windows / { Messages and Build } windows as you are seeing a compile errors. If you post your compile errors then the IntelliJ people will have clues about the problem. |
Following is the Error in This issue also has the screenshot -> #148 |
The lesson6 / task1 problem (Generics) is the last problem in project. It doesn't compile until you get the whole solution right. I confess I had to peek at the solution. Spoiler - my modified solution is below - if you paste this solution over the top of the:
line in the problem - this should compile and solve the problem. The solution is quite tricky - the syntax has to be exactly correct before the compile errors disappear. TYP = type of items in the collections, and COLL = the "flavor" (HashSet or ArrayList in this case) of the collection.
|
Bro @jimandreas , you are not reading my posts properly. You are just answering for the sake of it. I wrote |
Sorry that I cannot help you. Can another reader attempt to provide help to @akki777 ? |
I have the same issue with all the Koans. I'm trying to get it running on gradle with Java 10, but I'm beginning to suspect this is the issue. Is there anywhere we can see the supported JVM numbers? |
I guess no one from the team cares to look into this or other issues. @svtk |
Many things here. Another issue with tests: https://youtrack.jetbrains.com/issue/EDU-1005. About Java versions: should work with all Java versions, but I can't guarantee that's not another bug with Java 10. @stevematdavies, if you could provide more details in the issue, we can check. Sorry if I missed something. Edu plugin issues should be discussed in the tracker, where the plugin team can check that. So if other problems occur, please provide the details there. Thanks! |
I am using
Edu Tools - Kotlin Koans
to learn Kotlin. TheCompare with Answer
in the Task Description window shows "Contents are identical". Still when I "Check Task" in the Task Description window, I get Compilation Failed.This is happening in IntelliJ 2017.3.4 as well as Android Studio 3.1.2 .
The "Lesson 1 - Task 1 (hello World.kt)" works fine. but afterwards this issue occurs.
It says I have issues in other lessons like "Generics Task 1" and in tests file also.
The text was updated successfully, but these errors were encountered: