File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import Development.IDE.GHC.Compat.ExactPrint as GHC
1010import Development.IDE.GHC.Dump (showAstDataHtml )
1111import GHC.Stack
1212import GHC.Utils.Outputable
13+ import System.Directory.Extra (createDirectoryIfMissing )
1314import System.Environment.Blank (getEnvDefault )
1415import System.IO.Unsafe
1516import Text.Printf
@@ -37,6 +38,7 @@ traceAst lbl x
3738 doTrace = unsafePerformIO $ do
3839 u <- U. newUnique
3940 let htmlDumpFileName = printf " /tmp/hls/%s-%s-%d.html" (show timestamp) lbl (U. hashUnique u)
41+ createDirectoryIfMissing True " /tmp/hls"
4042 writeFile htmlDumpFileName $ renderDump htmlDump
4143 return $ unlines
4244 [prettyCallStack callStack ++ " :"
You can’t perform that action at this time.
0 commit comments