Lencerf / vscode-beancount

VSCode extension for Beancount
https://marketplace.visualstudio.com/items?itemName=Lencerf.beancount
MIT License
171 stars 35 forks source link

Unable to run fava due to default port 5000 being occupied on macOS #91

Open haiquand opened 9 months ago

haiquand commented 9 months ago

The default port of fava sometime is occupied on macOS, can't open the fava link and there is no error logs.

Starting Fava on http://127.0.0.1:5000
 * Serving Flask app 'fava'
 * Debug mode: on
Address already in use
Port 5000 is in use by another program. Either identify and stop that program, or start the server with a different port.
On macOS, try disabling the 'AirPlay Receiver' service from System Preferences -> General -> AirDrop & Handoff.

trick solution:

change the .vscode/settings.json

"beancount.favaPath": "./venv/bin/fava -p 50000",

Hope this trick solution can help people who have the same problem :D

Akuukis commented 9 months ago

Nice, someone should add it to readme.