Skip to content

Commit 8d234d8

Browse files
authored
Merge pull request #2 from blaix/win-backend-command-fix
Fix calling backend on windows
2 parents 0fd1651 + 2054328 commit 8d234d8

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/Compiler/Backend.gren

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import FileSystem.Path as Path exposing (Path)
3636
import Compiler.PackageName as PackageName exposing (PackageName)
3737
import Compiler.Platform as Platform exposing (Platform)
3838
import SemanticVersion exposing (SemanticVersion)
39-
import ChildProcess
39+
import ChildProcess exposing (Shell(..))
4040
import Json.Encode as Json
4141
import Dict exposing (Dict)
4242
import Task exposing (Task)
@@ -272,9 +272,6 @@ run permission options =
272272
|> commandEncoder options.interactiveSession options.pathToString
273273
|> Json.encode 0
274274

275-
escapedCommand =
276-
"'" ++ commandAsJson ++ "'"
277-
278275
colorEnvVar =
279276
if options.useColor then
280277
Dict.singleton "FORCE_COLOR" "1"
@@ -284,9 +281,10 @@ run permission options =
284281
ChildProcess.spawn
285282
permission
286283
(options.pathToString options.compilerPath)
287-
[ escapedCommand ]
284+
[ commandAsJson ]
288285
{ ( ChildProcess.defaultSpawnOptions options.onInit options.onComplete )
289-
| environmentVariables =
286+
| shell = NoShell
287+
, environmentVariables =
290288
ChildProcess.MergeWithEnvironmentVariables colorEnvVar
291289
}
292290

0 commit comments

Comments
 (0)