Removes the nimcache symbol directory for each run.
This commit is contained in:
parent
28041461b7
commit
b4ea608b65
1 changed files with 7 additions and 2 deletions
|
|
@ -75,7 +75,13 @@ proc startNimrodSession(project, script: string, mode: TRunMode):
|
|||
result.lastOutput = ""
|
||||
result.filename = name & ext
|
||||
result.modname = name
|
||||
result.nimcache = "SymbolProcRun." & script.splitFile.name
|
||||
|
||||
let (nimcacheDir, nimcacheName, nimcacheExt) = script.splitFile
|
||||
result.nimcache = "SymbolProcRun." & nimcacheName
|
||||
|
||||
if mode == SymbolProcRun:
|
||||
removeDir(nimcacheDir / result.nimcache)
|
||||
|
||||
if mode == CaasRun:
|
||||
result.nim = startProcess(NimrodBin, workingDir = dir,
|
||||
args = ["serve", "--server.type:stdin", name])
|
||||
|
|
@ -122,7 +128,6 @@ proc doCommand(session: var TNimrodSession, command: string) =
|
|||
if session.mode == SymbolProcRun:
|
||||
command = "--symbolFiles:on --nimcache:" & session.nimcache &
|
||||
" " & command
|
||||
echo "Running ", command
|
||||
session.lastOutput = doProcCommand(session,
|
||||
command & " " & session.filename)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue