File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
ghcide/src/Development/IDE/Core Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,7 @@ import System.Environment (getExecutablePath)
154154import System.Process.Extra (readProcessWithExitCode )
155155import Text.Read (readMaybe )
156156import System.Info.Extra (isMac )
157+ import HIE.Bios.Ghc.Gap (hostIsDynamic )
157158
158159templateHaskellInstructions :: T. Text
159160templateHaskellInstructions = " https://haskell-language-server.readthedocs.io/en/latest/troubleshooting.html#support-for-template-haskell"
@@ -830,15 +831,7 @@ isHiFileStableRule = defineEarlyCutoff $ RuleNoDiagnostics $ \IsHiFileStable f -
830831
831832displayTHWarning :: LspT c IO ()
832833displayTHWarning
833- | isMac = do
834- isDynamicBinary <- lift $ do
835- exe <- getExecutablePath
836- (_, out, _) <- readProcessWithExitCode exe [" +RTS" , " --info" ] " "
837- return $ fromMaybe False $ do
838- fields <- readMaybe out
839- rtsWay <- lookup (" RTS way" :: String ) fields
840- return $ " dyn" `isInfixOf` rtsWay
841- unless isDynamicBinary $
834+ | isMac && not hostIsDynamic = do
842835 LSP. sendNotification SWindowShowMessage $
843836 ShowMessageParams MtInfo $ T. unwords
844837 [ " This HLS binary does not support Template Haskell."
You can’t perform that action at this time.
0 commit comments