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

[Feature Request] Add context of previously executed commands and outputs #20

Open
Jasperhino opened this issue Mar 31, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@Jasperhino
Copy link

Is there a convenient option to read the bash history and provide a solution for any problem i might run into?

e.g. i execute

poetry install       
Installing dependencies from lock file

Package operations: 66 installs, 0 updates, 0 removals

  - Installing pycddlib (2.1.7): Failed

  ChefBuildError

  Backend subprocess exited when trying to invoke build_wheel
  
  running bdist_wheel
  running build
  running build_ext
  Compiling cdd.pyx because it changed.
  [1/1] Cythonizing cdd.pyx
  building 'cdd' extension
  creating build
  creating build/temp.macosx-14.0-arm64-cpython-312
  creating build/temp.macosx-14.0-arm64-cpython-312/cddlib
  creating build/temp.macosx-14.0-arm64-cpython-312/cddlib/lib-src
  clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -DGMPRATIONAL -Icddlib/lib-src -I/private/var/folders/db/8bjxm83551s6k9y4081jd5sh0000gn/T/tmp56717o84/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c cdd.c -o build/temp.macosx-14.0-arm64-cpython-312/cdd.o
  In file included from cdd.c:1244:
  In file included from cddlib/lib-src/cdd.h:17:
  cddlib/lib-src/cddmp.h:30:11: fatal error: 'gmp.h' file not found
   #include "gmp.h"
            ^~~~~~~
  1 error generated.
  error: command '/usr/bin/clang' failed with exit code 1
  

  at /opt/homebrew/Cellar/poetry/1.8.2/libexec/lib/python3.12/site-packages/poetry/installation/chef.py:164 in _prepare
      160│ 
      161│                 error = ChefBuildError("\n\n".join(message_parts))
      162│ 
      163│             if error is not None:
    → 164│                 raise error from None
      165│ 
      166│             return path
      167│ 
      168│     def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:

Note: This error originates from the build backend, and is likely not a problem with poetry but with pycddlib (2.1.7) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "pycddlib (==2.1.7)"'.

I now would love to do something like tlm fix to prompt the llm to help me to fix my problem and suggest a command to run next.

Is there something like this already? Any ideas on how to implement this?

Love the project 💙

@yusufcanb yusufcanb added good first issue Good for newcomers enhancement New feature or request labels Apr 4, 2024
@yusufcanb
Copy link
Owner

This could be done by applying another command and respecting Modelfile.

Something like below seems intuitive;
poetry install --verbose | tlm fix

Thanks for your feedback.

@yusufcanb yusufcanb added this to the 1.2 milestone Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants