Skip to content

Commit e583f13

Browse files
jacgcocreature
authored andcommitted
Issue visual warning for humans if --lsp option used (#161)
Experience shows that people sometimes mistakenly start `ghcide` on the command line with the `--lsp` option (which is intended to be used only in server/client communication scenarios) and then wonder why nothing is working.. So let's issue a warning message whenever `--lsp` is used.
1 parent 2a67821 commit e583f13

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

exe/Main.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ main = do
7575
if argLSP then do
7676
t <- offsetTime
7777
hPutStrLn stderr "Starting LSP server..."
78+
hPutStrLn stderr "If you are seeing this in a terminal, you probably should have run ghcidie WITHOUT the --lsp option!"
7879
runLanguageServer def def $ \event vfs caps -> do
7980
t <- t
8081
hPutStrLn stderr $ "Started LSP server in " ++ showDuration t

0 commit comments

Comments
 (0)