Closed pabl0rg closed 7 years ago
Pinging @dmitry-zhuravlev
I found the issue on the Kobalt side, but @pabl0rg is right that the error causes the IDEA plug-in to go into a loop so there's also an issue on the plug-in side, which doesn't seem to handle errors correctly.
I traced this down into DependenciesProcessor
on the following line (122):
listener.onFailure(taskId, processorEx)
For some reason, calling this creates this loop. Any thoughts, Dmitry?
I was able to reproduce this easily with @pabl0rg's instructions, let me know if you need help.
Fixed in 0.930.
@dmitry-zhuravlev Make sure you use 0.929 to reproduce this bug (leaving it open until I hear back from you).
@cbeust It seems that this error loop was caused by exception in method which try to determine line/column of Build.kt script. In this particular case the error message Bad artifact coordinates.....
doesn't relates to Build.kt compilation and hence have no line/column inside.
Ah yes, good catch. And yes, sync can fail for a lot of different reasons, not just a syntax error in the build file, so we need to make sure the parse can fail gracefully.
this can be reproduced with: https://github.com/pabl0rg/kobalt-mixed-example
I started kobalt server manually with
./kobaltw --force --server
The following stacktrace was printed in the terminal and the IntelliJ plugin seemed stuck in an endless loop (burning CPU, never exiting, unable to cancel).