Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable beta K2 compiler #4170

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ tasks.withType<KotlinCompile>().all {
kotlinOptions {
jvmTarget = javaVersion.majorVersion
apiVersion = project.kotlinTarget().get()
languageVersion = project.kotlinTarget().get()
languageVersion = "2.0"
freeCompilerArgs = listOf("-Xjvm-default=all")
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
AmazonQToolWindow.getStarted(project)
}
}
null

JBCefJSQuery.Response(null)

Check warning on line 71 in plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/gettingstarted/QGettingStartedContent.kt

View check run for this annotation

Codecov / codecov/patch

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/gettingstarted/QGettingStartedContent.kt#L71

Added line #L71 was not covered by tests
}
receiveMessageQuery.addHandler(handler)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@
private fun addMessageHook(browser: Browser) = callbackFlow {
val handler = Function<String, Response> {
trySend(it)
null

Response(null)

Check warning on line 77 in plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/webview/BrowserConnector.kt

View check run for this annotation

Codecov / codecov/patch

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/webview/BrowserConnector.kt#L77

Added line #L77 was not covered by tests
}

browser.receiveMessageQuery.addHandler(handler)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
return@onCompletion
} // for any other exception, let the `catch` operator handle it.
else if (error != null) {
throw error
// smartcast is failing on 2.0: Type mismatch: inferred type is '@R|kotlin/ParameterName|(name = String(cause)) kotlin/Throwable?' but 'kotlin/Throwable' was expected
throw error as Throwable

Check warning on line 58 in plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/cwc/controller/chat/messenger/ChatPromptHandler.kt

View check run for this annotation

Codecov / codecov/patch

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/cwc/controller/chat/messenger/ChatPromptHandler.kt#L58

Added line #L58 was not covered by tests
}

// Send the gathered suggestions in a final answer-part message
Expand Down
Loading