cbeust / kobalt

A Kotlin-based build system for the JVM.
Apache License 2.0
433 stars 60 forks source link

old files in .kobalt/build cause problems after upgrading to 1.0.3 #337

Closed pabl0rg closed 7 years ago

pabl0rg commented 7 years ago

I got this error right after upgrading

Juans-MacBook-Pro dsl-doc> kbw --update
            _  __          _               _   _
           | |/ /   ___   | |__     __ _  | | | |_
           | ' /   / _ \  | '_ \   / _` | | | | __|
           | . \  | (_) | | |_) | | (_| | | | | |_
           |_|\_\  \___/  |_.__/   \__,_| |_|  \__|  1.0.3

*****
***** ERROR com.beust.kobalt.BuildScriptKt.buildScript(Lkotlin/jvm/functions/Function1;)V
*****
Juans-MacBook-Pro dsl-doc> kbw --version
Kobalt 1.0.3, Wrapper 1.0.3
Juans-MacBook-Pro dsl-doc> kbw run
            _  __          _               _   _
           | |/ /   ___   | |__     __ _  | | | |_
           | ' /   / _ \  | '_ \   / _` | | | | __|
           | . \  | (_) | | |_) | | (_| | | | | |_
           |_|\_\  \___/  |_.__/   \__,_| |_|  \__|  1.0.3

*****
***** ERROR com.beust.kobalt.BuildScriptKt.buildScript(Lkotlin/jvm/functions/Function1;)V
*****

I fixed it by rm .kobalt/build/*

cbeust commented 7 years ago

Yes, this is caused by a bug in the current incremental compiler, which I reported. I will make Kobalt delete this directory if it was built by an older version.