diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 39749dfd..88fc0d7a 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -29,7 +29,7 @@ jobs: - uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: '3.12' cache: 'pip' - uses: actions/cache@v3 diff --git a/apps/dir-tree-html/DirTreeHtml.dib b/apps/dir-tree-html/DirTreeHtml.dib index 21feb70a..d2556ff5 100644 --- a/apps/dir-tree-html/DirTreeHtml.dib +++ b/apps/dir-tree-html/DirTreeHtml.dib @@ -8,11 +8,6 @@ #!fsharp -#!import ../../lib/fsharp/Notebooks.dib -#!import ../../lib/fsharp/Testing.dib - -#!fsharp - #r @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstandard2.1/FSharp.Control.AsyncSeq.dll" #r @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.0/System.Reactive.dll" #r @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/netstandard2.0/System.Reactive.Linq.dll" @@ -22,6 +17,11 @@ #!fsharp +#!import ../../lib/fsharp/Notebooks.dib +#!import ../../lib/fsharp/Testing.dib + +#!fsharp + #!import ../../lib/fsharp/Common.fs #!import ../../lib/fsharp/CommonFSharp.fs #!import ../../lib/fsharp/Async.fs diff --git a/lib/spiral/runtime.dib b/lib/spiral/runtime.dib index c04ea740..3cacee51 100644 --- a/lib/spiral/runtime.dib +++ b/lib/spiral/runtime.dib @@ -366,21 +366,17 @@ fun () => // // test // // print_code=true -inl temp_folder, disposable = file_system.create_temp_directory () +inl temp_dir, disposable = file_system.create_temp_directory () disposable |> use |> ignore -inl file_name = "test.txt" -inl path = temp_folder file_name - -inl command = $'\@$"pwsh -c ""Get-Content {!path}"""' - fun () => + inl path = temp_dir "test.txt" "0" |> file_system.write_all_text_async path |> async.do inl cts = threading.new_cancellation_token_source () trace Debug (fun () => "1") _locals inl result = execution_options fun x => { x with - command + $'\@$"pwsh -c ""Get-Content {!path}"""' cancellation_token = cts |> threading.cancellation_source_token |> Some |> optionm'.box } |> execute_with_options_async