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 @@ -13,6 +13,7 @@ import GHC.Utils.Outputable
13
13
import System.Environment.Blank (getEnvDefault )
14
14
import System.IO.Unsafe
15
15
import Text.Printf
16
+ import System.Directory.Extra (createDirectoryIfMissing )
16
17
--------------------------------------------------------------------------------
17
18
-- Tracing exactprint terms
18
19
@@ -37,6 +38,7 @@ traceAst lbl x
37
38
doTrace = unsafePerformIO $ do
38
39
u <- U. newUnique
39
40
let htmlDumpFileName = printf " /tmp/hls/%s-%s-%d.html" (show timestamp) lbl (U. hashUnique u)
41
+ createDirectoryIfMissing True " /tmp/hls"
40
42
writeFile htmlDumpFileName $ renderDump htmlDump
41
43
return $ unlines
42
44
[prettyCallStack callStack ++ " :"
You can’t perform that action at this time.
0 commit comments