From b2a826000523625c77b6c05abfea6a18b0989b22 Mon Sep 17 00:00:00 2001 From: MichaelHatherly Date: Wed, 9 Oct 2024 13:38:57 +0100 Subject: [PATCH] Fix Julia 1.11 errors Fixes #190. --- .github/workflows/CI.yml | 2 +- src/QuartoNotebookWorker/src/NotebookState.jl | 1 - src/worker.jl | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 95986f3..1d23be4 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -44,7 +44,7 @@ jobs: matrix: version: - "1.6" - - "1.10" + - "1.11" os: - ubuntu-latest - macos-13 diff --git a/src/QuartoNotebookWorker/src/NotebookState.jl b/src/QuartoNotebookWorker/src/NotebookState.jl index 421711e..065b6f8 100644 --- a/src/QuartoNotebookWorker/src/NotebookState.jl +++ b/src/QuartoNotebookWorker/src/NotebookState.jl @@ -12,7 +12,6 @@ function __init__() if ccall(:jl_generating_output, Cint, ()) == 0 PROJECT[] = Base.active_project() OPTIONS[] = task_local_storage(:QUARTO_NOTEBOOK_WORKER_OPTIONS, Dict{String,Any}()) - define_notebook_module!() end end diff --git a/src/worker.jl b/src/worker.jl index 986b2c0..36a06a6 100644 --- a/src/worker.jl +++ b/src/worker.jl @@ -12,6 +12,7 @@ function worker_init(f::File, options::Dict) ), ) end + QNW.NotebookState.define_notebook_module!(Main) global refresh!(args...) = QNW.refresh!($(f.path), $(options), args...) global render(args...; kwargs...) = QNW.render(args...; kwargs...) end