ananthakumaran / paisa

Paisa – Personal Finance Manager. https://paisa.fyi demo: https://demo.paisa.fyi
https://paisa.fyi
GNU Affero General Public License v3.0
2.34k stars 117 forks source link

Error using hledger to sync on Windows 11 #129

Closed jafin closed 7 months ago

jafin commented 7 months ago

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\\Documents\paisa\

To Reproduce Steps to reproduce the behavior:

  1. Sync journal
  2. See error

Expected behavior Sync journal works

Screenshots

image

Journal

ananthakumaran commented 7 months ago

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.

jafin commented 7 months ago

@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?

ananthakumaran commented 7 months ago

@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?

jafin commented 7 months ago

@ananthakumaran thank you that was my issue. Removing the hledger.exe from the folder corrected the problem