File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
hls-plugin-api/src/Ide/Plugin Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,19 @@ doFormatting lf providers ideState ft uri params = do
6262 provider lf ideState ft contents fp params
6363 Nothing -> return $ Left $ responseError $ T. pack $ " Formatter plugin: could not get file contents for " ++ show uri
6464 Nothing -> return $ Left $ responseError $ T. pack $ " Formatter plugin: uriToFilePath failed for: " ++ show uri
65- Nothing -> return $ Left $ responseError $ T. pack $ " Formatter plugin: no formatter found for:[" ++ T. unpack mf ++ " ]"
65+ Nothing -> return $ Left $ responseError $ mconcat
66+ [ " Formatter plugin: no formatter found for:["
67+ , mf
68+ , " ]"
69+ , if mf == " brittany"
70+ then T. unlines
71+ [ " \n The haskell-language-server must be compiled with the agpl flag to provide Brittany."
72+ , " Stack users add 'agpl: true' in the flags section of the 'stack.yaml' file."
73+ , " The 'haskell-language-server.cabal' file already has this flag enabled by default."
74+ , " For more information see: https://github.com/haskell/haskell-language-server/issues/269"
75+ ]
76+ else " "
77+ ]
6678
6779-- ---------------------------------------------------------------------
6880
You can’t perform that action at this time.
0 commit comments