# General Usage

**URL:** https://discourse.julialang.org/c/usage/6.md?page=12

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 13

---

## [Documenter.jl doctest does not apply filter as expected](https://discourse.julialang.org/t/documenter-jl-doctest-does-not-apply-filter-as-expected/136706)

<div class="topic-metadata">

**Author:** [@phx](https://discourse.julialang.org/u/phx)\
**Replies:** 4\
**Last updated:** [April 16, 2026, 9:57am UTC](https://discourse.julialang.org/t/documenter-jl-doctest-does-not-apply-filter-as-expected/136706 "2026-04-16T09:57:45Z")

</div>

Hi all, I am writing the documentation for a package of mine, and in a doctest I have this output: 11-element Vector{ComplexF64}: 0.0 + 0.0im -1.617576049847552e-6 + 6.617439891157473e-23im -…

---

## [Passing through \`==\` for subtypes of a parametric abstract type with differing parameters](https://discourse.julialang.org/t/passing-through-for-subtypes-of-a-parametric-abstract-type-with-differing-parameters/136716)

<div class="topic-metadata">

**Author:** [@brainandforce](https://discourse.julialang.org/u/brainandforce)\
**Replies:** 11\
**Last updated:** [April 15, 2026, 5:59am UTC](https://discourse.julialang.org/t/passing-through-for-subtypes-of-a-parametric-abstract-type-with-differing-parameters/136716 "2026-04-15T05:59:39Z")

</div>

Say I define AbstractFoo{T}, which has no supertype besides Any, but has subtypes Bar{T} and Baz{T}: julia\> abstract type AbstractFoo{T} end julia\> struct Bar{T} \<: AbstractFoo{T} value::T end …

---

## [ResumableFunctions @yield doesn't work even in the simplest IO example](https://discourse.julialang.org/t/resumablefunctions-yield-doesnt-work-even-in-the-simplest-io-example/136713)

<div class="topic-metadata">

**Author:** [@tdm](https://discourse.julialang.org/u/tdm)\
**Replies:** 2\
**Last updated:** [April 15, 2026, 2:55am UTC](https://discourse.julialang.org/t/resumablefunctions-yield-doesnt-work-even-in-the-simplest-io-example/136713 "2026-04-15T02:55:59Z")

</div>

This is the simplest IO example (copied from AI) and explicitly supported in the docs: @resumable function read\_lines(filename) io = open(filename) try for line in eachline(io) @yield line …

---

## [Arrow types in Catalyst JumpProblem](https://discourse.julialang.org/t/arrow-types-in-catalyst-jumpproblem/136709)

<div class="topic-metadata">

**Author:** [@hhindley](https://discourse.julialang.org/u/hhindley)\
**Replies:** 6\
**Last updated:** [April 14, 2026, 4:04pm UTC](https://discourse.julialang.org/t/arrow-types-in-catalyst-jumpproblem/136709 "2026-04-14T16:04:11Z")

</div>

I have a question about the arrow types in Catalyst models when simulating jump processes. I build the model as a reaction network in Catalyst and simulate it as a JumpProblem. It’s a large model and so I’m trying to opt…

---

## [Finding sub-arrays in an array?](https://discourse.julialang.org/t/finding-sub-arrays-in-an-array/136700)

<div class="topic-metadata">

**Author:** [@sophibug](https://discourse.julialang.org/u/sophibug)\
**Replies:** 7\
**Last updated:** [April 14, 2026, 3:50pm UTC](https://discourse.julialang.org/t/finding-sub-arrays-in-an-array/136700 "2026-04-14T15:50:02Z")

</div>

I’m putting this here because this is a chemistry usage but it’s not really a chemistry-specific case. I have an array that has a bunch of states formatted like this: 1.0 1.0 0.0 1.0 0.0 1.0 6380.35 1.0 1.0…

---

## [Julia Language Server crashes in VSCode after update to VSCode 1.115.0](https://discourse.julialang.org/t/julia-language-server-crashes-in-vscode-after-update-to-vscode-1-115-0/136703)

<div class="topic-metadata">

**Author:** [@tdm](https://discourse.julialang.org/u/tdm)\
**Replies:** 2\
**Last updated:** [April 14, 2026, 1:01am UTC](https://discourse.julialang.org/t/julia-language-server-crashes-in-vscode-after-update-to-vscode-1-115-0/136703 "2026-04-14T01:01:38Z")

</div>

I didn’t make any changes myself, this just happened after an auto update. JLS is trying to parse my code and crashes continuously. This is on Windows 10 Pro. I am running Julia 1.12.5+0.x64.w64.mingw32 Any suggestio…

---

## [OffsetArrays, transpose, no\_offset\_view](https://discourse.julialang.org/t/offsetarrays-transpose-no-offset-view/136690)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 3\
**Last updated:** [April 13, 2026, 5:09pm UTC](https://discourse.julialang.org/t/offsetarrays-transpose-no-offset-view/136690 "2026-04-13T17:09:36Z")

</div>

Why doesn’t no\_offset\_view remove offsets from a transposed OffsetArray ? Edit: After I posted my initial message, @adienes kindly pointed out that the offsets are removed: -1:2 → 1:4, 0:4 → 1:5 . My actual problem is…

---

## [Calling Julia from Python without severe startup](https://discourse.julialang.org/t/calling-julia-from-python-without-severe-startup/126949)

<div class="topic-metadata">

**Author:** [@Peter\_Job](https://discourse.julialang.org/u/Peter_Job)\
**Replies:** 5\
**Last updated:** [April 12, 2026, 4:59pm UTC](https://discourse.julialang.org/t/calling-julia-from-python-without-severe-startup/126949 "2026-04-12T16:59:37Z")

</div>

Hello! I’m writing this issue because when I googled around this issue, I found a few different solutions, and all of them have been either painful or slow. Hopefully a discoverable thread with the details of how we are…

---

## [Crash only in VSCode](https://discourse.julialang.org/t/crash-only-in-vscode/136673)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 6\
**Last updated:** [April 11, 2026, 1:32pm UTC](https://discourse.julialang.org/t/crash-only-in-vscode/136673 "2026-04-11T13:32:04Z")

</div>

If I run the following code in a Julia (1.12.1) terminal, all fine: using Pkg cd(@\_\_DIR\_\_) Pkg.activate(;temp=true) Pkg.add("CondaPkg") # only once import CondaPkg # only once CondaPkg.add("ezodf") # only once…

---

## [How to construct a type using Meta programming?](https://discourse.julialang.org/t/how-to-construct-a-type-using-meta-programming/136644)

<div class="topic-metadata">

**Author:** [@Thomas008](https://discourse.julialang.org/u/Thomas008)\
**Replies:** 4\
**Last updated:** [April 10, 2026, 1:47pm UTC](https://discourse.julialang.org/t/how-to-construct-a-type-using-meta-programming/136644 "2026-04-10T13:47:36Z")

</div>

I would like to contruct a type using meta programming. More specific,I need a tuple type like Tuple{Vector{String}, Vector{String}} . Constructing a value is quite easily possible, e.g. ex = Expr(:tuple) push!(ex.a…

---

## [Recommended idiom for collecting narrowest type](https://discourse.julialang.org/t/recommended-idiom-for-collecting-narrowest-type/136604)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 16\
**Last updated:** [April 10, 2026, 1:59am UTC](https://discourse.julialang.org/t/recommended-idiom-for-collecting-narrowest-type/136604 "2026-04-10T01:59:47Z")

</div>

Suppose I have a Vector with an abstract element type. What is the recommended idiom for collecting the elements into a vector with the narrowest possible element type? MWE: struct Foo{T} x::T end X = Foo\[Foo(1), Fo…

---

## [VR Support](https://discourse.julialang.org/t/vr-support/136656)

<div class="topic-metadata">

**Author:** [@obsidianjulua](https://discourse.julialang.org/u/obsidianjulua)\
**Replies:** 0\
**Last updated:** [April 9, 2026, 5:48pm UTC](https://discourse.julialang.org/t/vr-support/136656 "2026-04-09T17:48:00Z")

</div>

Anyone aware of any julia VR support. Even unregistered. Wanted to work on a julia VR solar training for meta quest and im wondering if I have to start fresh.

---

## [Claude Code Language Server Plugin](https://discourse.julialang.org/t/claude-code-language-server-plugin/136128)

<div class="topic-metadata">

**Author:** [@Alec\_Loudenback](https://discourse.julialang.org/u/Alec_Loudenback)\
**Replies:** 1\
**Last updated:** [April 9, 2026, 5:32pm UTC](https://discourse.julialang.org/t/claude-code-language-server-plugin/136128 "2026-04-09T17:32:26Z")

</div>

I created a Julia LSP Claude plugin if anyone wants to try it out. I submitted it to Anthropic to be included in their curated set of plugins. GitHub - alecloudenback/ClaudeCodeJuliaLSP: Julia language server plugin for …

---

## [How To Set-Up Julia on Android Termux?](https://discourse.julialang.org/t/how-to-set-up-julia-on-android-termux/97289)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 11\
**Last updated:** [April 9, 2026, 9:13am UTC](https://discourse.julialang.org/t/how-to-set-up-julia-on-android-termux/97289 "2026-04-09T09:13:25Z")

</div>

Hi folks, I am running termux on an android tablet and really have no idea how to get Julia installed on it. Any suggestions on what to do? I googled and found some information about installing a Linux version onto term…

---

## [Running a single test script](https://discourse.julialang.org/t/running-a-single-test-script/136623)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 7\
**Last updated:** [April 8, 2026, 5:39pm UTC](https://discourse.julialang.org/t/running-a-single-test-script/136623 "2026-04-08T17:39:15Z")

</div>

I want to be able to run a single test just by including it. For example, imagine the following test file: using Test, BenchmarkTools @test 1+1 == 2 If I include it directly, it fails: include("test/test\_example.jl" …

---

## [GLMakie: Legend for figures with two y-axis](https://discourse.julialang.org/t/glmakie-legend-for-figures-with-two-y-axis/135328)

<div class="topic-metadata">

**Author:** [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Replies:** 8\
**Last updated:** [April 8, 2026, 2:42pm UTC](https://discourse.julialang.org/t/glmakie-legend-for-figures-with-two-y-axis/135328 "2026-04-08T14:42:35Z")

</div>

Hi! I spent some time in the net but a failed to find a suitable solution. In the forum I found the helpful topic: https://discourse.julialang.org/t/solved-plotting-2-plots-on-same-figure-with-dual-axis/124623 But th…

---

## [Cannot prevent repeated precompilation in docker runtime](https://discourse.julialang.org/t/cannot-prevent-repeated-precompilation-in-docker-runtime/136606)

<div class="topic-metadata">

**Author:** [@dopamine](https://discourse.julialang.org/u/dopamine)\
**Replies:** 1\
**Last updated:** [April 8, 2026, 2:16pm UTC](https://discourse.julialang.org/t/cannot-prevent-repeated-precompilation-in-docker-runtime/136606 "2026-04-08T14:16:16Z")

</div>

Hello, I’m deploying a julia script via docker, and can’t seem to prevent precompilation during runtime, which is very expensive, time-wise. So I observe that precompilation happens normally during the build time, but i…

---

## [Isfile on Windows problem](https://discourse.julialang.org/t/isfile-on-windows-problem/136620)

<div class="topic-metadata">

**Author:** [@JM\_Beckers](https://discourse.julialang.org/u/JM_Beckers)\
**Replies:** 6\
**Last updated:** [April 8, 2026, 1:39pm UTC](https://discourse.julialang.org/t/isfile-on-windows-problem/136620 "2026-04-08T13:39:13Z")

</div>

I have a strange problem. I try to work with files in a directory I access using mypath=raw"C:\\users\\foo\\\\" and isfile(mypath\*"afile") works with almost all files in the directory but two of them are not reckognised…

---

## [Test data as Artifact](https://discourse.julialang.org/t/test-data-as-artifact/136239)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 11\
**Last updated:** [April 7, 2026, 7:02pm UTC](https://discourse.julialang.org/t/test-data-as-artifact/136239 "2026-04-07T19:02:46Z")

</div>

My package’s tests require ~20 MB of data. Currently, this data is regenerated on every test run. I’d like to generate it once (e.g., per release) and fetch it at test time instead. The Julia Artifacts framework seems l…

---

## [Design patterns around large type unions](https://discourse.julialang.org/t/design-patterns-around-large-type-unions/136607)

<div class="topic-metadata">

**Author:** [@Deduction42](https://discourse.julialang.org/u/Deduction42)\
**Replies:** 6\
**Last updated:** [April 7, 2026, 5:50pm UTC](https://discourse.julialang.org/t/design-patterns-around-large-type-unions/136607 "2026-04-07T17:50:37Z")

</div>

I’m trying to build a chemical process modelling library that takes live sensor data as input, and one of the perennial challenges to this is the fact that there are many different types of flow meters with multiple inst…

---

## [Colorbar title placement in makie](https://discourse.julialang.org/t/colorbar-title-placement-in-makie/136602)

<div class="topic-metadata">

**Author:** [@tduretz](https://discourse.julialang.org/u/tduretz)\
**Replies:** 7\
**Last updated:** [April 7, 2026, 11:29am UTC](https://discourse.julialang.org/t/colorbar-title-placement-in-makie/136602 "2026-04-07T11:29:55Z")

</div>

I’m trying to make a figure which features a horizontal colorbar. I would like the title of the colorbar to be placed directly to the right of the colorbar, instead of above/below. I’ve seen this post but using this mes…

---

## [Notification of completion from long-running sim](https://discourse.julialang.org/t/notification-of-completion-from-long-running-sim/136576)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 2\
**Last updated:** [April 7, 2026, 9:29am UTC](https://discourse.julialang.org/t/notification-of-completion-from-long-running-sim/136576 "2026-04-07T09:29:05Z")

</div>

Is there an up-to-date package for sending sms or similar as notification?

---

## [Why is the VSCode REPL invalidating so much?](https://discourse.julialang.org/t/why-is-the-vscode-repl-invalidating-so-much/136590)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 3\
**Last updated:** [April 7, 2026, 7:18am UTC](https://discourse.julialang.org/t/why-is-the-vscode-repl-invalidating-so-much/136590 "2026-04-07T07:18:41Z")

</div>

The example used he is precompiled and runs much faster on Julia 1.10 but to use @trace\_compile I must use 1.12 Note, I checked that the same precompiled cache is been used in both cases. ## 'Normal' REPL julia\> @time …

---

## [Help eliminate a captured variable](https://discourse.julialang.org/t/help-eliminate-a-captured-variable/136585)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 1\
**Last updated:** [April 6, 2026, 10:51am UTC](https://discourse.julialang.org/t/help-eliminate-a-captured-variable/136585 "2026-04-06T10:51:08Z")

</div>

I am trying to eliminate a captured variable, as reported by JET.jl, in this piece of code, copied here for convenience: function transform\_with(flag::LogJacFlag, transformation::StaticArrayTransformation{D,S}, …

---

## [Reusing @local cache when multithreading](https://discourse.julialang.org/t/reusing-local-cache-when-multithreading/136579)

<div class="topic-metadata">

**Author:** [@amousavi](https://discourse.julialang.org/u/amousavi)\
**Replies:** 1\
**Last updated:** [April 6, 2026, 1:30am UTC](https://discourse.julialang.org/t/reusing-local-cache-when-multithreading/136579 "2026-04-06T01:30:17Z")

</div>

Hi everyone! I am trying to update an old project of mine where I have three nested for loops as such: scratch = zeros(Float32, tree\_nodes, nthreads()) collect\_here = zeros(Float32, nthreads()) for i in eachindex(V) @…

---

## [LLVM ERROR: Cannot select: intrinsic %llvm.x86.aesni.aesenclast](https://discourse.julialang.org/t/llvm-error-cannot-select-intrinsic-llvm-x86-aesni-aesenclast/133921)

<div class="topic-metadata">

**Author:** [@pxshen](https://discourse.julialang.org/u/pxshen)\
**Replies:** 7\
**Last updated:** [April 5, 2026, 6:43pm UTC](https://discourse.julialang.org/t/llvm-error-cannot-select-intrinsic-llvm-x86-aesni-aesenclast/133921 "2026-04-05T18:43:14Z")

</div>

LLVM ERROR: Cannot select: intrinsic %llvm.x86.aesni.aesenclast Encountered with PackageCompiler.jl on Julia 1.12.1 , works on 1.11.7 Julia Version 1.12.1 Commit ba1e628ee49 (2025-10-17 13:02 UTC) Build Info: Officia…

---

## [Can't set debug breakpoint when running jetls instead of Julia language server](https://discourse.julialang.org/t/cant-set-debug-breakpoint-when-running-jetls-instead-of-julia-language-server/136575)

<div class="topic-metadata">

**Author:** [@brianguenter](https://discourse.julialang.org/u/brianguenter)\
**Replies:** 0\
**Last updated:** [April 5, 2026, 5:09pm UTC](https://discourse.julialang.org/t/cant-set-debug-breakpoint-when-running-jetls-instead-of-julia-language-server/136575 "2026-04-05T17:09:53Z")

</div>

The JETls docs say you might get conflicting results in VSCode if you run the julia language server simultaneously. I disabled the julia language server but now I can’t set debugging breakpoints. Is there a way to enabl…

---

## [PythonCall.jl and garbage collection](https://discourse.julialang.org/t/pythoncall-jl-and-garbage-collection/136234)

<div class="topic-metadata">

**Author:** [@dmaioli](https://discourse.julialang.org/u/dmaioli)\
**Replies:** 18\
**Last updated:** [April 5, 2026, 10:02am UTC](https://discourse.julialang.org/t/pythoncall-jl-and-garbage-collection/136234 "2026-04-05T10:02:33Z")

</div>

I am trying out PythonCall.jl and I am loving it so far. However, it seems that when using some Python libraries that call C/C++ under the hood (for example NumPy) Python objects created with PythonCall.jl are never auto…

---

## [Poor vectorization when comparing unsigned integers](https://discourse.julialang.org/t/poor-vectorization-when-comparing-unsigned-integers/133122)

<div class="topic-metadata">

**Author:** [@matthias314](https://discourse.julialang.org/u/matthias314)\
**Replies:** 4\
**Last updated:** [April 5, 2026, 5:14am UTC](https://discourse.julialang.org/t/poor-vectorization-when-comparing-unsigned-integers/133122 "2026-04-05T05:14:45Z")

</div>

The following almost identical functions lead to quite different LLVM IR: function f(v::NTuple{N}, w::NTuple{N}, i) where N i = i % Int16 ntuple(Val(N)) do j j = j % Int16 ifelse(j \<= i, v\[j\], w…

---

## [Unknown option when saving music score with MusicVisualizations](https://discourse.julialang.org/t/unknown-option-when-saving-music-score-with-musicvisualizations/136556)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 1\
**Last updated:** [April 4, 2026, 5:38pm UTC](https://discourse.julialang.org/t/unknown-option-when-saving-music-score-with-musicvisualizations/136556 "2026-04-04T17:38:20Z")

</div>

Hello, I am trying to save a music score based on an example from JuliaMusic, but I receive an error for unknown option error in musescore. I am having trouble solving the issue. Here is my code using MusicManipulation…

[Previous page](https://discourse.julialang.org/c/usage/6.md?page=11)

[Next page](https://discourse.julialang.org/c/usage/6.md?page=13)
