- Newest
- Most votes
- Most comments
It sounds like you're experiencing an issue with Amazon Q's /dev feature, specifically related to code generation and testing. This could be due to a few factors:
-
Devfile configuration: By default, Amazon Q does not automatically test the code it presents. To enable Amazon Q to test its code, you need to provide it with a devfile. This devfile describes the development environment and the commands that can be run. If you haven't set up a devfile, or if there's an issue with your devfile, it could cause the behavior you're seeing.
-
Testing environment limitations: The sandbox in which Amazon Q runs its dev environment has limited resources (2 vCPUs and 4 GB of memory). If your project is complex or requires more resources, it might cause timeouts.
-
Command execution time: The commands in your devfile must complete within five minutes. If any command takes longer, it could lead to timeouts.
-
IDE settings: There's a setting in your IDE that allows Amazon Q to run code and test commands. If this setting is turned off, it could prevent Amazon Q from properly executing the /dev command.
To troubleshoot:
- Check if you have a properly configured devfile in the root of your project.
- Ensure your IDE settings allow Amazon Q to run code and test commands.
- Try simplifying your test request to see if it's a complexity issue.
- If the problem persists, you might want to disable the feature that allows Amazon Q to test its code suggestions and manually test the code it generates.
If none of these steps resolve the issue and it's been ongoing for 24 hours, it could potentially be a service issue. In that case, you may want to contact AWS support for further assistance.
Sources
Disabling Amazon Q from testing its code suggestions - Amazon Q Developer
Testing code suggestions generated by the Amazon Q '/dev' command - Amazon Q Developer
Configuring a devfile in Amazon Q - Amazon Q Developer
Enhancing Code Generation with Real-Time Execution in Amazon Q Developer | AWS DevOps & Developer Productivity Blog
Relevant content
- asked 10 months ago
- asked a year ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 3 months ago
I have started to experience the same. Any luck getting around the issue?
Yes, I had to delete the devfile to make it provide answers again.