From f0b82a37dffe2b94f6a3efe96e4d2af666ed509b Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Wed, 9 Nov 2022 11:59:36 +0100 Subject: Ignore -Xplugin= argument, I can't get kapt3 to work with the standard kotlinc --- bin/flycheck-android-kotlin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/flycheck-android-kotlin.py') diff --git a/bin/flycheck-android-kotlin.py b/bin/flycheck-android-kotlin.py index 8d0fb16..a7994c9 100644 --- a/bin/flycheck-android-kotlin.py +++ b/bin/flycheck-android-kotlin.py @@ -93,7 +93,7 @@ def run_kotlinc(cp, files, output, args, sourcefile, outdir): command.extend(['-cp', ':'.join(cp)]) if output: command.extend(['-d', output]) - command.extend(args) + command.extend([arg for arg in args if not arg.startswith('-Xplugin=')]) command.append(sourcefile) if outdir: with tempfile.NamedTemporaryFile(mode='w') as f: -- cgit v1.2.3-70-g09d2