We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba199f5 commit 9070044Copy full SHA for 9070044
ghcide/exe/Main.hs
@@ -167,9 +167,11 @@ loadSession :: FilePath -> IO (FilePath -> Action HscEnvEq)
167
loadSession dir = do
168
cradleLoc <- memoIO $ \v -> do
169
res <- findCradle v
170
- -- Sometimes we get C: and sometimes we get c:, try and normalise that
+ -- Sometimes we get C:, sometimes we get c:, and sometimes we get a relative path
171
+ -- try and normalise that
172
-- e.g. see https://github.com/digital-asset/ghcide/issues/126
- return $ normalise <$> res
173
+ res' <- traverse makeAbsolute res
174
+ return $ normalise <$> res'
175
session <- memoIO $ \file -> do
176
c <- maybe (loadImplicitCradle $ addTrailingPathSeparator dir) loadCradle file
177
cradleToSession c
0 commit comments