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

How do I install and use it? #2

Open
matbee-eth opened this issue Nov 13, 2024 · 36 comments
Open

How do I install and use it? #2

matbee-eth opened this issue Nov 13, 2024 · 36 comments

Comments

@matbee-eth
Copy link

No description provided.

@th3w1zard1
Copy link

th3w1zard1 commented Nov 13, 2024

it is on the extension store.

https://marketplace.visualstudio.com/items?itemName=lee2py.aider-composer

you can also download the latest release and open it with vs code directly by drag+drop on main window.

@DenisSergeevitch
Copy link

It's weird, but it's keep complaining that my /opt/anaconda3/bin/python is 2024-11-14 01:50:22.914 [error] Python path does not include python executable, skip starting aider-chat service

However I installed all packages required

@lee88688
Copy link
Owner

/opt/anaconda3/bin/python is the python command path? the setting python path want to the directory which include python command.

@DenisSergeevitch
Copy link

It's a path to the binary I have, so /opt/anaconda3/bin/python --version returns a version etc.

@lee88688
Copy link
Owner

oh I know it, you should set to /opt/anaconda3/bin/

@tuanlv14
Copy link

@lee88688 What I should do ?
...AppData\Local\Programs\Python\env311\Scripts\python.exe
...AppData\Local\Programs\Python\env311\Scripts
...AppData\Local\Programs\Python\env311
...AppData\Local\Programs\Python

Actually I had tried all option but it still appear error: Python path does not include python executable, skip starting aider-chat service

@lee88688 lee88688 pinned this issue Nov 14, 2024
@lee88688
Copy link
Owner

lee88688 commented Nov 14, 2024

@tuanlv14 what version of python are you installed? python from official website, anaconda, or some others? it seems like you use venv to install it?

@lee88688
Copy link
Owner

@tuanlv14 I think you use python env to install the package. I install it using venv. and it is no other problems. have you installed aider-chat and flask package in venv environment?

@tuanlv14
Copy link

@lee88688 :

  • Yes. I user env
  • I confirm that this path: "...AppData\Local\Programs\Python\env311\Scripts" work well.
    Maybe other my computure had some security restriction.

@DenisSergeevitch
Copy link

oh I know it, you should set to /opt/anaconda3/bin/

That worked on Mac, thank you!

@lee88688
Copy link
Owner

@lee88688 :

  • Yes. I user env
  • I confirm that this path: "...AppData\Local\Programs\Python\env311\Scripts" work well.
    Maybe other my computure had some security restriction.

@tuanlv14 you can test this by start aider with this python env. maybe it can give you some inspiration why.
or you can also install venv folder in other place and have a try.

@0kauri0
Copy link

0kauri0 commented Nov 22, 2024

I have installed aider-char and flask to venv as I run archlinux and got aider work from terminal. I`ve pointed python path to venv/bin and got this messages in vscode extention output: [info] Extension "aider-composer" is now active!
[info] Starting aider-chat service... but extension icon does not appear on left panel and runtime status gives Uncaught Errors (1): Cannot read properties of undefined (reading 'uri')

@lee88688
Copy link
Owner

@0kauri0 is there any other information in the output?

@llecrup
Copy link

llecrup commented Nov 24, 2024

I want to use Composer with a local qwen model. When I select Ollama as the provider, it asks for the model, api key and base URL. What do I enter as the api key?

@0kauri0
Copy link

0kauri0 commented Nov 24, 2024

is there any other information in the output?

2024-11-24 20:30:47.624 [info] Extension "aider-composer" is now active!
2024-11-24 20:30:47.624 [info] Starting aider-chat service...

Runtime Status
Activation
Activated by onStartupFinished event: 3ms

Uncaught Errors (1)
Cannot read properties of undefined (reading 'uri')

Messages (2)
Command aider-composer.AcceptAllChanges already registered by Aider Composer (lee2py.aider-composer)

Command aider-composer.RejectAllChanges already registered by Aider Composer (lee2py.aider-composer)

@lee88688
Copy link
Owner

I want to use Composer with a local qwen model. When I select Ollama as the provider, it asks for the model, api key and base URL. What do I enter as the api key?

any api key is accepted. the base uri is the ollama's base url, you should checkout the ollama. usually it is http://127.0.0.1:11434.

@llecrup
Copy link

llecrup commented Nov 26, 2024

Hi what are the workspace folders Aider Composer can't find? I am on Windows 11

2024-11-26 16:42:12.961 [info] Starting aider-chat service...
2024-11-26 16:42:12.961 [warning] No workspace folders found, skip starting aider-chat service.

@lee88688
Copy link
Owner

Hi what are the workspace folders Aider Composer can't find? I am on Windows 11

2024-11-26 16:42:12.961 [info] Starting aider-chat service... 2024-11-26 16:42:12.961 [warning] No workspace folders found, skip starting aider-chat service.

Refer to this #37

@llecrup
Copy link

llecrup commented Nov 28, 2024

I added a repository with a html file that aider created, but still receive the "No workspace folders found, skip starting aider-chat service":

Aider v0.65.1
Model: ollama/qwen2.5-coder:3b with whole edit format
Git repo: .git with 1 files
Repo-map: disabled
Added index.html to the chat.
Use /help for help, run "aider --help" to see cmd line args

@lee88688
Copy link
Owner

I added a repository with a html file that aider created, but still receive the "No workspace folders found, skip starting aider-chat service":

Aider v0.65.1
Model: ollama/qwen2.5-coder:3b with whole edit format
Git repo: .git with 1 files
Repo-map: disabled
Added index.html to the chat.
Use /help for help, run "aider --help" to see cmd line args

can you just open a folder?

@llecrup
Copy link

llecrup commented Nov 29, 2024

Ok, got it.
In the VSCode command palette, type: Workspaces: Add Folder to Workspace, then select folder.

@hamburger-fries
Copy link

using Ubuntu via WSL
Im having trouble getting the Python Path to work in the 'aider-composer' settings.

running this command
'which python3'
The global Python path on your system is: /usr/bin/python3

This is the location of your Python interpreter executable. This path indicates you are using the system-installed Python 3 located in the standard Unix/Linux binary directory.

image

@lee88688
Copy link
Owner

lee88688 commented Dec 1, 2024

using Ubuntu via WSL Im having trouble getting the Python Path to work in the 'aider-composer' settings.

running this command 'which python3' The global Python path on your system is: /usr/bin/python3

This is the location of your Python interpreter executable. This path indicates you are using the system-installed Python 3 located in the standard Unix/Linux binary directory.

image

current only support python command, python3 command may not supported. can you setup a python command? use python venv or anaconda to create one.

@skimtiyaz
Copy link

skimtiyaz commented Dec 8, 2024

when setting the path i picked it from the cmd asking
where python, it replied

C:\Users\Username>where python
C:\Python312\python.exe
C:\Users\Username\AppData\Local\Programs\Python\Python310\python.exe
C:\Users\Username\AppData\Local\Microsoft\WindowsApps\python.exe

then i searched for where aider and where flask, and it replied

C:\Users\Username>where flask
C:\Users\Username\AppData\Roaming\Python\Python312\Scripts\flask.exe

C:\Users\Username>where aider
C:\Users\Username\AppData\Roaming\Python\Python312\Scripts\aider.exe

Then i tried all these paths in windows 10 > VS Code > Aider-composer: Python Path

C:\Python312\python.exe
C:\Users\Username\AppData\Local\Programs\Python\Python310\python.exe
C:\Users\Username\AppData\Local\Microsoft\WindowsApps\python.exe
C:\Users\Username\AppData\Roaming\Python\Python312\
C:\Users\Username\AppData\Roaming\Python\Python312\python.exe
C:\Users\Username\AppData\Roaming\Python\Python312\Scripts\
C:\Users\Username\AppData\Roaming\Python\Python312\Scripts\python.exe

But still says: Python path does not include python executable, please set it in vscode settings.

@lee88688
Copy link
Owner

lee88688 commented Dec 9, 2024

when setting the path i picked it from the cmd asking where python, it replied

C:\Users\Username>where flask
C:\Python312\python.exe
C:\Users\Username\AppData\Local\Programs\Python\Python310\python.exe
C:\Users\Username\AppData\Local\Microsoft\WindowsApps\python.exe

then i searched for where aider and where flask, and it replied

C:\Users\Username>where flask
C:\Users\Username\AppData\Roaming\Python\Python312\Scripts\flask.exe

C:\Users\Username>where aider
C:\Users\Username\AppData\Roaming\Python\Python312\Scripts\aider.exe

Then i tried all these paths in windows 10 > VS Code > Aider-composer: Python Path

C:\Python312\python.exe
C:\Users\Username\AppData\Local\Programs\Python\Python310\python.exe
C:\Users\Username\AppData\Local\Microsoft\WindowsApps\python.exe
C:\Users\Username\AppData\Roaming\Python\Python312\
C:\Users\Username\AppData\Roaming\Python\Python312\python.exe
C:\Users\Username\AppData\Roaming\Python\Python312\Scripts\
C:\Users\Username\AppData\Roaming\Python\Python312\Scripts\python.exe

But still says: Python path does not include python executable, please set it in vscode settings.

do not include python.exe. and I think C:\Users\Username\AppData\Roaming\Python\Python312\Scripts may be the right one. but I don't known why you can't start. can you provide more info in vscode's output in Aider Composer?

@skimtiyaz
Copy link

C:\Users\Username\AppData\Roaming\Python\Python312\Scripts

I tried it today but still it does not work for me, Here's the output:

2024-12-10 14:30:47.451 [info] Extension "aider-composer" is now active!
2024-12-10 14:30:47.451 [info] Starting aider-chat service...
2024-12-10 14:30:47.451 [error] Python path does not include python executable, skip starting aider-chat service.
2024-12-10 14:33:48.097 [info] Restarting aider-chat service...
2024-12-10 14:33:48.098 [info] Stopping aider-chat service...
2024-12-10 14:33:48.098 [info] Starting aider-chat service...
2024-12-10 14:33:48.098 [error] Python path does not include python executable, skip starting aider-chat service.
2024-12-10 14:33:55.478 [info] Restarting aider-chat service...
2024-12-10 14:33:55.479 [info] Stopping aider-chat service...
2024-12-10 14:33:55.479 [info] Starting aider-chat service...
2024-12-10 14:33:55.480 [error] Python path does not include python executable, skip starting aider-chat service.
2024-12-10 14:33:57.945 [info] Restarting aider-chat service...
2024-12-10 14:33:57.945 [info] Stopping aider-chat service...
2024-12-10 14:33:57.945 [info] Starting aider-chat service...
2024-12-10 14:33:57.945 [error] Python path does not include python executable, skip starting aider-chat service.
2024-12-10 14:34:14.130 [info] Extension "aider-composer" is now deactive!
2024-12-10 14:34:18.903 [info] Extension "aider-composer" is now active!
2024-12-10 14:34:18.903 [info] Starting aider-chat service...
2024-12-10 14:34:18.903 [error] Python path does not include python executable, skip starting aider-chat service.

@lee88688
Copy link
Owner

you can test this by start aider with this python env. maybe it can give you some inspiration why. or you can also install venv folder in other place and have a try.

@skimtiyaz you can try aider in terminal first. when it works, it may work in extension.

@thebobbyboy420

This comment was marked as duplicate.

@jivagrisma
Copy link

jivagrisma commented Dec 27, 2024

Requisitos:

Instalar python

Instale los paquetes necesarios usando:
pip install aider-chat flask

Verifica que tiene instalado Python:
python3 --version

Busque la ruta de Python 3:

En la terminal, ejecute:

which python3

Establecer la ruta de Python en VS Code:

Abrir VS Code.

Vaya a Archivo > Preferencias > Configuración (o presione Ctrl + ,).

En la barra de búsqueda, escriba: preferences "python.defaultInterpreterPath"

aider-composer

@detroittommy879
Copy link

Can't get anywhere with mine because the Settings page says "Please select a setting" but there is nothing there to select.. same with Editor Model, "Please select a editor model" - when i try to put in API keys and try different Providers, it just .. disappears lol

@lee88688
Copy link
Owner

lee88688 commented Jan 7, 2025

Can't get anywhere with mine because the Settings page says "Please select a setting" but there is nothing there to select.. same with Editor Model, "Please select a editor model" - when i try to put in API keys and try different Providers, it just .. disappears lol

you should use add form below. and then you can select.

@insujeon
Copy link

insujeon commented Jan 7, 2025

I'm having the same problem. My work environment is Vscode in Windows, and it is connected to the Ubuntu Server.

Even though I set a correct Python path for both vscode and aider-composer configuration, I still cannot choose any item from the 'Current Setting' and 'Editor Model' menus of the Settings.

image

@lee88688
Copy link
Owner

lee88688 commented Jan 8, 2025

@insujeon please add a model first and you can select.

@wellzero
Copy link

wellzero commented Jan 8, 2025

I add deepseek, it stay following status all the time, I install aider in remote ubuntu, and vscode connect remote ubuntu.
image

@lee88688
Copy link
Owner

lee88688 commented Jan 8, 2025

@wellzero remote is currently not supported. I'm working on this. not sure if this can be resolved.

@wellzero
Copy link

wellzero commented Jan 8, 2025

hope you can fix it. waiting for your new feature. :)

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