on master help sign in
Make ghcide on the command line use absolute file paths (#401)
commitf06cae0cd1189fbb516c8dfaaacb8b66d8456e89 authorNeil Mitchell <ndmitchell@gmail.com> dateTue 4 Feb 2020, 09:15 (7 years ago) parentf3abff8
1 file changed+3−1
exe/Main.hs+3−1
exe/Main.hs+3−1
@@ -107,7 +107,9 @@ main = do
107107 putStrLn "Report bugs at https://github.com/digital-asset/ghcide/issues"
108108
109109 putStrLn $ "\nStep 1/6: Finding files to test in " ++ dir
110− files <- nubOrd <$> expandFiles (argFiles ++ ["." | null argFiles])
110+ files <- expandFiles (argFiles ++ ["." | null argFiles])
111+ -- LSP works with absolute file paths, so try and behave similarly
112+ files <- nubOrd <$> mapM canonicalizePath files
111113 putStrLn $ "Found " ++ show (length files) ++ " files"
112114
113115 putStrLn "\nStep 2/6: Looking for hie.yaml files that control setup"