{"id":21158390,"url":"https://github.com/toilal/kotlin-kapt-silent-error","last_synced_at":"2025-03-14T15:27:26.365Z","repository":{"id":148157792,"uuid":"103271821","full_name":"Toilal/kotlin-kapt-silent-error","owner":"Toilal","description":"Reproduce bug with kotlin error inside intellij","archived":false,"fork":false,"pushed_at":"2017-09-12T13:20:25.000Z","size":121,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-21T09:09:36.254Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Toilal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-12T13:07:28.000Z","updated_at":"2017-09-12T13:17:12.000Z","dependencies_parsed_at":"2023-05-19T08:15:10.862Z","dependency_job_id":null,"html_url":"https://github.com/Toilal/kotlin-kapt-silent-error","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Toilal%2Fkotlin-kapt-silent-error","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Toilal%2Fkotlin-kapt-silent-error/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Toilal%2Fkotlin-kapt-silent-error/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Toilal%2Fkotlin-kapt-silent-error/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Toilal","download_url":"https://codeload.github.com/Toilal/kotlin-kapt-silent-error/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243599884,"owners_count":20317189,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T12:22:37.963Z","updated_at":"2025-03-14T15:27:26.347Z","avatar_url":"https://github.com/Toilal.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"###  Error:Execution failed for task ':app:kaptDebugKotlin'\n\nThis configuration cause a compilation error when running gradle build that is perfectly fine.\n\n```\ngradlew build\n...\napp\\build\\tmp\\kapt3\\stubs\\debug\\dummy\\myapplication\\MainActivity.java:3: \nerror: org.androidannotations.annotations.EActivity cannot be used on a final element\n...\n```\n\nThat's because class must be declared `open` for EActivity annotation to work properly.\n\n### IntelliJ Issue\n\nBut when running in IntelliJ with Android Plugin, only a cryptic error appears and real error message is not accessible.\n\n```\nError:Execution failed for task ':app:kaptDebugKotlin'.\n\u003e Internal compiler error. See log for more details\n```\n\nit's not possible to read the effective compilation error message, neither from UI or idea logs.\n\n`idea.log` contains the following stacktrace instead.\n\n```\njava.lang.NoSuchMethodException: com.android.ide.common.blame.Message.\u003cinit\u003e(com.android.ide.common.blame.Message$Kind, java.lang.String, java.lang.String, com.google.common.collect.ImmutableList)\n\tat java.lang.Class.getConstructor0(Class.java:3082)\n\tat java.lang.Class.getConstructor(Class.java:1825)\n\tat org.jetbrains.kotlin.android.KotlinOutputParserHelper$simpleMessageConstructor$2.invoke(KotlinOutputParserHelper.kt:171)\n\tat org.jetbrains.kotlin.android.KotlinOutputParserHelper$simpleMessageConstructor$2.invoke(KotlinOutputParserHelper.kt:143)\n\tat kotlin.SynchronizedLazyImpl.getValue(Lazy.kt:130)\n\tat org.jetbrains.kotlin.android.KotlinOutputParserHelper.getSimpleMessageConstructor(KotlinOutputParserHelper.kt)\n\tat org.jetbrains.kotlin.android.KotlinOutputParserHelper.createNewMessage(KotlinOutputParserHelper.kt:272)\n\tat org.jetbrains.kotlin.android.KotlinOutputParserHelper.createMessage(KotlinOutputParserHelper.kt:250)\n\tat org.jetbrains.kotlin.android.KotlinOutputParserHelper.createMessage$default(KotlinOutputParserHelper.kt:244)\n\tat org.jetbrains.kotlin.android.KotlinOutputParserHelperKt.parse(KotlinOutputParserHelper.kt:41)\n\tat org.jetbrains.kotlin.android.KotlinOutputParser.parse(KotlinOutputParser.java:28)\n\tat com.android.ide.common.blame.parser.ToolOutputParser.parseToolOutput(ToolOutputParser.java:86)\n\tat com.android.tools.idea.gradle.output.parser.BuildOutputParser.parseGradleOutput(BuildOutputParser.java:43)\n\tat com.android.tools.idea.gradle.project.build.invoker.GradleTasksExecutor$GradleTasksExecutorImpl.lambda$collectMessages$5(GradleTasksExecutor.java:517)\n\tat com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:342)\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\n\tat java.lang.Thread.run(Thread.java:745)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoilal%2Fkotlin-kapt-silent-error","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoilal%2Fkotlin-kapt-silent-error","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoilal%2Fkotlin-kapt-silent-error/lists"}