Skip to content

Conversation

@JeanMertz
Copy link
Contributor

I noticed when asking the LLM to run a command, my cargo build errors weren't being logged and instead the response was:

There was an error from the command cargo build:

Tool failed with code 101 and no output

With this change, the error is correctly captured and added to the prompt:

There was an error from the command cargo build:

bunch of stderr output here...

This might not be the correct way to solve the issue, but in the logs I always see the err variable as nil, and Plenary docs aren't very helpful on understanding what the variable represents. Feel free to close this and solve it the proper way, but this worked on my machine.

@olimorris
Copy link
Owner

Great stuff thanks for this.

At some point this week I'm going to move tools from leveraging Job.new():start() as I want to be strict over the order of completion

@olimorris olimorris merged commit 199824e into olimorris:main Feb 18, 2025
4 checks passed
cleong14 pushed a commit to cleong14/codecompanion.nvim that referenced this pull request May 21, 2025
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

Successfully merging this pull request may close these issues.

2 participants