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

MicroAgent should check for required library before generating code #66

Open
Davidmycodeguy opened this issue Sep 20, 2024 · 1 comment

Comments

@Davidmycodeguy
Copy link

Description:
MicroAgent currently generates and attempts to execute code without verifying if the necessary libraries (e.g., @testing-library/user-event) are installed. This can result in errors when executing the code if the library is missing.

To improve the user experience, MicroAgent should:

Check if the required library (such as @testing-library/user-event) is installed before generating any code that depends on it.
If the library is not installed, prompt the user to install the required package.
Only proceed with code generation and execution once the necessary library is confirmed to be installed.
Example:
If a user asks MicroAgent to generate code using @testing-library/user-event, the agent should first check if the library is installed. If not, MicroAgent could respond with something like:

"It looks like @testing-library/user-event is not installed. Please install it by running npm install @testing-library/user-event and try again."

MicroAgent should only generate and run the code after the user confirms that the library is installed.

Additional Context:
This feature will help avoid unnecessary errors caused by missing libraries and improve overall reliability when using MicroAgent to generate code.

@SergioRubio01
Copy link

Great one! I've been stuck for hours with an error involving testing dependencies installation for a Vue app and it is not able to reach convergence until the library is manually installed, leading to reduced efficiency and developer headache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants