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

Q Developer issue with /review in Intellij #5200

Open
Srinu3366 opened this issue Dec 12, 2024 · 0 comments
Open

Q Developer issue with /review in Intellij #5200

Srinu3366 opened this issue Dec 12, 2024 · 0 comments
Labels
amazon-q bug We can reproduce the issue and confirmed it is a bug. codewhisperer

Comments

@Srinu3366
Copy link

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

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)

@Srinu3366 Srinu3366 added the bug We can reproduce the issue and confirmed it is a bug. label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
amazon-q bug We can reproduce the issue and confirmed it is a bug. codewhisperer
Projects
None yet
Development

No branches or pull requests

2 participants