Q Developer issue with /review in Intellij #5200
Labels
amazon-q
bug
We can reproduce the issue and confirmed it is a bug.
codewhisperer
partner-team
Triggers issue routing to owner team
Describe the bug
I am getting an error when I am trying to use review functionality in Q developer. It is happening in a specific project. I tried it in other projects and it seems working fine.
To reproduce
Open Q Developer chat window and use /review to review the project
Expected behavior
Screenshots
![image](https://private-user-images.githubusercontent.com/25985494/395246756-e7f0188c-c31f-4208-a34c-0111bb3cf64a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMjU0OTAsIm5iZiI6MTczOTEyNTE5MCwicGF0aCI6Ii8yNTk4NTQ5NC8zOTUyNDY3NTYtZTdmMDE4OGMtYzMxZi00MjA4LWEzNGMtMDExMWJiM2NmNjRhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDE4MTk1MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVkOGJjMDhhMjYzYWZlNGIyZDQ5ZTMxOWE2MDU5ZjcxMjI4ZDk0YzBjYjRmMjY2ODJmNWQ1MmVkMWE2YTY5NDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.6sPC_6JO7-r_3VfnH8X_HQMMmYUp1fZxbutYt1-reIM)
Failed to run code review and display results. Caused by: Amazon Q encountered an error while reviewing for code issues. Please try again later., status code: null, exception: PatternSyntaxException, request ID: null Jetbrains IDE: IntelliJ IDEA 2024.2.3, IDE version: IU-242.23339.11,
java.util.regex.PatternSyntaxException: Unescaped trailing backslash near index 9
.*chsenv
at java.base/java.util.regex.Pattern.error(Pattern.java:2204)
at java.base/java.util.regex.Pattern.compile(Pattern.java:1951)
at java.base/java.util.regex.Pattern.(Pattern.java:1576)
at java.base/java.util.regex.Pattern.compile(Pattern.java:1101)
at kotlin.text.Regex.(Regex.kt:88)
at software.aws.toolkits.jetbrains.services.amazonq.FeatureDevSessionContext.(FeatureDevSessionContext.kt:86)
at software.aws.toolkits.jetbrains.services.amazonq.FeatureDevSessionContext.(FeatureDevSessionContext.kt:41)
at software.aws.toolkits.jetbrains.services.codewhisperer.codescan.sessionconfig.CodeScanSessionConfig.(CodeScanSessionConfig.kt:61)
at software.aws.toolkits.jetbrains.services.codewhisperer.codescan.sessionconfig.CodeScanSessionConfig$Companion.create(CodeScanSessionConfig.kt:333)
at software.aws.toolkits.jetbrains.services.codewhisperer.codescan.CodeWhispererCodeScanManager$launchCodeScanCoroutine$1.invokeSuspend(CodeWhispererCodeScanManager.kt:402)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:735)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:732)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:732)
at java.base/java.lang.Thread.run(Thread.java:1583)
Your Environment
IntelliJ IDEA 2024.2.3 (Ultimate Edition)
Build #IU-242.23339.11, built on September 25, 2024
Runtime version: 21.0.4+13-b509.17 amd64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.windows.WToolkit
Windows 10.0
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 4056M
Cores: 12
Non-Bundled Plugins:
aws.toolkit.core (3.44-242)
amazon.q (3.44-242)
aws.toolkit (3.44-242)
The text was updated successfully, but these errors were encountered: