From 194ed4a2f59399bca8d6975c9aab652b6c9054c1 Mon Sep 17 00:00:00 2001 From: Jakob Peters Date: Fri, 3 Jan 2025 12:15:04 -0800 Subject: [PATCH] Fix `refresh_line` too new to be called --- HISTORY.md | 4 ++++ NEWS.md | 4 ++-- Project.toml | 2 +- src/utilities.jl | 4 ++-- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index dddf299..538358d 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,6 +1,10 @@ # History +## v0.1.1 + +- Fix incorrect name of `install_speculator` in documentation + ## v0.1.0 - `speculate`: Search for compilation directives diff --git a/NEWS.md b/NEWS.md index f357e72..c729a2d 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,6 +1,6 @@ # News -## v0.1.1 +## v0.1.2 -- Fix incorrect name of `install_speculator` in documentation +- Fix [`refresh_line` too new to be called #5](https://github.com/jakobjpeters/Speculator.jl/issues/5) diff --git a/Project.toml b/Project.toml index 4737013..bd356d7 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Speculator" uuid = "ac92255e-d98e-45c4-b636-98964c1c8a8b" authors = ["Jakob Peters "] -version = "0.1.1" +version = "0.1.2" [deps] InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240" diff --git a/src/utilities.jl b/src/utilities.jl index 0e99f89..0c67658 100644 --- a/src/utilities.jl +++ b/src/utilities.jl @@ -55,13 +55,13 @@ function log_repl(f, background_repl::Bool) mistate = active_repl.mistate sleep(0.01) - refresh_line(mistate) + invokelatest(refresh_line, mistate) print(stderr, "\r\33[K") end f() - background_repl && refresh_line(mistate) + background_repl && invokelatest(refresh_line, mistate) nothing end