Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

HIE should start web server only on demand #31

Closed
gracjan opened this issue Nov 7, 2015 · 2 comments
Closed

HIE should start web server only on demand #31

gracjan opened this issue Nov 7, 2015 · 2 comments

Comments

@gracjan
Copy link
Contributor

gracjan commented Nov 7, 2015

If there are multiple hie engines started they all try to listen on the same port.

If the only interface used is stdin/stdout it is not wise to make startup fail just due to inet port being busy.

@alanz
Copy link
Collaborator

alanz commented Nov 7, 2015

Agree

@alanz
Copy link
Collaborator

alanz commented Nov 7, 2015

At the moment in MainHie.hs we have

-- TODO: pass port in as a param from GlobalOpts
_ <- forkIO (jsonHttpListener cin)

Modify Options.hs to have a flag to enable the listener, and only launch it if the flag is set.

This should be a copy-paste of the option for "--console", just renamed.

As a bonus, consider adding a port parameter too.

cocreature added a commit to cocreature/haskell-ide-engine that referenced this issue Nov 8, 2015
@alanz alanz closed this as completed in e89a1be Nov 8, 2015
@alanz alanz added this to the prehistory milestone Feb 2, 2019
fendor pushed a commit to fendor/haskell-ide-engine that referenced this issue Oct 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants