This repository was archived by the owner on Oct 7, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,8 @@ run opts = do
72
72
d <- getCurrentDirectory
73
73
logm $ " Current directory:" ++ d
74
74
logm $ " Operating system:" ++ os
75
+ args <- getArgs
76
+ logm $ " args:" ++ show args
75
77
76
78
-- Get the cabal directory from the cradle
77
79
cradle <- findLocalCradle (d </> " File.hs" )
@@ -99,7 +101,6 @@ run opts = do
99
101
Nothing -> logm $ " cannot find any hie exe, looked for:" ++ intercalate " , " candidates
100
102
Just e -> do
101
103
logm $ " found hie exe at:" ++ e
102
- args <- getArgs
103
104
logm $ " args:" ++ show args
104
105
logm " launching ....\n\n\n "
105
106
callProcess e args
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import qualified Paths_haskell_ide_engine as Meta
21
21
import System.Directory
22
22
import System.Environment
23
23
import System.FilePath ((</>) )
24
+ import System.Info
24
25
import System.IO
25
26
import qualified System.Log.Logger as L
26
27
@@ -119,8 +120,10 @@ run opts = do
119
120
if optLsp opts
120
121
then do
121
122
-- Start up in LSP mode
122
- logm $ " Run entered for HIE(" ++ progName ++ " ) " ++ hieVersion
123
+ logm $ " Run entered for HIE(" ++ progName ++ " ) " ++ hieVersion
124
+ logm $ " Operating as a LSP server on stdio"
123
125
logm $ " Current directory:" ++ origDir
126
+ logm $ " Operating system:" ++ os
124
127
logm $ " args:" ++ show args
125
128
126
129
let initOpts = defaultCradleOpts { cradleOptsVerbosity = verbosity }
@@ -142,6 +145,7 @@ run opts = do
142
145
-- Provide debug info
143
146
cliOut $ " Running HIE(" ++ progName ++ " )"
144
147
cliOut $ " " ++ hieVersion
148
+ cliOut $ " To run as a LSP server on stdio, provide the '--lsp' argument"
145
149
cliOut $ " Current directory:" ++ origDir
146
150
-- args <- getArgs
147
151
cliOut $ " \n args:" ++ show args
You can’t perform that action at this time.
0 commit comments