Error using hledger to sync on Windows 11
jafin opened this issue · 4 comments
Describe your Environment
OS: Windows 11 23H2
Paisa Version: 0.6.2
App Variant: Desktop
Describe the bug
Configured to use hledger, when I run Sync journal it errors with
exec: "hledger" cannot run executable found relative to current directory
I copied hledger.exe into the same folder of paisa.exe. I also copied it to c:\Users<username>\Documents\paisa\
To Reproduce
Steps to reproduce the behavior:
- Sync journal
- See error
Expected behavior
Sync journal works
Screenshots
Journal
I copied hledger.exe into the same folder of paisa.exe.
This is not supported, golang explicitly forbids the execution of binary from the current folder. I would suggest moving the hledger.exe
to one of the folders under PATH
. You can run echo $env:PATH
from powershell to find the list of folders.
@ananthakumaran I copied hledger.exe
into an existing PATH env folder
. Same error.
Also tried executing from within powershell, in case there was an issue with windows cmd shell. No change.
Any other suggestions?
@jafin did you delete the file (hledger.exe) from the folder where paisa.exe resides? if not can you share the error text assuming the text has changed?
@ananthakumaran thank you that was my issue. Removing the hledger.exe
from the folder corrected the problem