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

Windows paths aren't handled correctly #13

Closed
lurebat opened this issue Jun 2, 2024 · 4 comments
Closed

Windows paths aren't handled correctly #13

lurebat opened this issue Jun 2, 2024 · 4 comments

Comments

@lurebat
Copy link

lurebat commented Jun 2, 2024

aichat -r %functions% what time is it
Call get_current_time '{}'
Call get_current_time '{}':
    /bin/bash: C:UsersmeAppDataRoamingaichatfunctionsshget_current_time.sh: No such file or directory

It seems to try to run the file via the windows path, so the backslashes are replaced with nothing and the function doesn't work.

@sigoden
Copy link
Owner

sigoden commented Jun 2, 2024

@lurebat

Did you setup accordingthe readme instruction?
Run argc call get_current_time '{}' to check if the setup is okay.

@lurebat
Copy link
Author

lurebat commented Jun 2, 2024

Running the command directly does work, so it seems that it's aichat who gets it wrong.
Maybe it's related to the symlinking?

Setup I made:

I cloned the repo, made functions.txt with the following content:

get_current_time.sh
get_current_weather.sh
get_web_page.sh
search_duckduckgo.sh
search_wolframalpha.sh
may_execute_py_code.py
may_execute_js_code.js

ran argc build and then argc install

@sigoden
Copy link
Owner

sigoden commented Jun 2, 2024

aichat simply execute ./bin/get_current_time.cmd, that's all.

It seems the bash path is incorrect, #15 fixed it.

please sync the repo, run argc build, and try again.

@lurebat
Copy link
Author

lurebat commented Jun 2, 2024

Confirmed working

@lurebat lurebat closed this as completed Jun 2, 2024
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