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

Failed to run security scan. Project does not contain valid files to scan error in JetBrains Rider with c# #5148

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

Comments

@dguisinger
Copy link

Describe the bug
I am receiving the error "Failed to run security scan and display results. Caused by: Amazon Q: Project does not contain valid files to scan" on a .NET multi-project solution. If it is something I am doing wrong, the error is not helpful.

To reproduce
Open my project
Click Amazon Q
Select "Run Project Scan"

Expected behavior
I expect it to either run the scan or provide an error message that can help me resolve the issue.

Your Environment

  • OS: MacOS 15.1
  • JetBrains product: Rider
  • JetBrains product version: 2024.3
  • AWS Toolkit version: 3.42-243

Additional context
Failed to run security scan and display results. Caused by: Amazon Q: Project does not contain valid files to scan, status code: null, exception: CodeWhispererCodeScanException, request ID: nullJetbrains IDE: JetBrains Rider 2024.3, IDE version: RD-243.21565.191,

software.aws.toolkits.jetbrains.services.codewhisperer.codescan.CodeWhispererCodeScanException: Amazon Q: Project does not contain valid files to scan
at software.aws.toolkits.jetbrains.services.codewhisperer.codescan.CodeWhispererCodeScanExceptionKt.cannotFindBuildArtifacts(CodeWhispererCodeScanException.kt:22)
at software.aws.toolkits.jetbrains.services.codewhisperer.codescan.sessionconfig.CodeScanSessionConfig.createPayload(CodeScanSessionConfig.kt:115)
at software.aws.toolkits.jetbrains.services.codewhisperer.codescan.CodeWhispererCodeScanSession$run$2.invokeSuspend(CodeWhispererCodeScanSession.kt:99)
at software.aws.toolkits.jetbrains.services.codewhisperer.codescan.CodeWhispererCodeScanSession$run$2.invoke(CodeWhispererCodeScanSession.kt)
at software.aws.toolkits.jetbrains.services.codewhisperer.codescan.CodeWhispererCodeScanSession$run$2.invoke(CodeWhispererCodeScanSession.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturnIgnoreTimeout(Undispatched.kt:74)
at kotlinx.coroutines.TimeoutKt.setupTimeout(Timeout.kt:148)
at kotlinx.coroutines.TimeoutKt.withTimeout(Timeout.kt:43)
at kotlinx.coroutines.time.TimeKt.withTimeout(Time.kt:42)
at software.aws.toolkits.jetbrains.services.codewhisperer.codescan.CodeWhispererCodeScanSession.run(CodeWhispererCodeScanSession.kt:98)
at software.aws.toolkits.jetbrains.services.codewhisperer.codescan.CodeWhispererCodeScanManager$launchCodeScanCoroutine$1$3.invokeSuspend(CodeWhispererCodeScanManager.kt:254)
at software.aws.toolkits.jetbrains.services.codewhisperer.codescan.CodeWhispererCodeScanManager$launchCodeScanCoroutine$1$3.invoke(CodeWhispererCodeScanManager.kt)
at software.aws.toolkits.jetbrains.services.codewhisperer.codescan.CodeWhispererCodeScanManager$launchCodeScanCoroutine$1$3.invoke(CodeWhispererCodeScanManager.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturnIgnoreTimeout(Undispatched.kt:74)
at kotlinx.coroutines.TimeoutKt.setupTimeout(Timeout.kt:148)
at kotlinx.coroutines.TimeoutKt.withTimeout(Timeout.kt:43)
at kotlinx.coroutines.time.TimeKt.withTimeout(Time.kt:42)
at software.aws.toolkits.jetbrains.services.codewhisperer.codescan.CodeWhispererCodeScanManager$launchCodeScanCoroutine$1.invokeSuspend(CodeWhispererCodeScanManager.kt:250)
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)

@dguisinger dguisinger added the bug We can reproduce the issue and confirmed it is a bug. label Dec 2, 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