Skip to content

Optimizing/reviewing large chunks of code fails with "Improperly formed request" #378

Open
@Furytron

Description

Describe the bug

Apologies if this is logged before or not specifically an Amazon Q Eclipse issue, but I couldnt find information on it. When sending code to prompt, or using inline options on large chunks of code (246 loc in my case) and asking Q to review or optimize will throw an error.

To Reproduce

  1. Select a whole Java class
  2. Send it to the prompt or right click and select inline optimize
  3. See failure:

An error occurred while processing your request.
Details: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Improperly formed request.

Expected behavior

I would expect it to review/optimize the code, or produce a user friendly error. If there is a problem in formatting, or length of code, it should warn me instead of failing. I've no idea what the problem is.

Screenshots

Image

Your Environment:

  • OS: Windows 11
  • Eclipse IDE for Java Developers (includes Incubating components)
  • Version: 2024-06 (4.32.0)
  • Build id: 20240606-1231
  • Amazon Q for Eclipse plugin version: Amazon Q 1.0 (Pro)
  • JVM version: OpenJDK Runtime Environment Temurin-21.0.4+7 (build 21.0.4+7-LTS)

Additional context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions