# \#warning

**URL:** https://discourse.julialang.org/tag/warning/137.md

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

---

## [Getting warning, but model works well](https://discourse.julialang.org/t/getting-warning-but-model-works-well/130850)

<div class="topic-metadata">

**Author:** [@Bart\_van\_de\_Lint](https://discourse.julialang.org/u/Bart_van_de_Lint)\
**Replies:** 5\
**Last updated:** [July 19, 2025, 2:11am UTC](https://discourse.julialang.org/t/getting-warning-but-model-works-well/130850 "2025-07-19T02:11:41Z")

</div>

I am getting this warning during mtkcompile, while I was not getting it before. It might be related to an update in StructuralTransformations. The model still works fine. How can I disable the warning? ┌ Warning: Intern…

---

## [Terminate after warning is thrown - global setting](https://discourse.julialang.org/t/terminate-after-warning-is-thrown-global-setting/80368)

<div class="topic-metadata">

**Author:** [@dnldlg](https://discourse.julialang.org/u/dnldlg)\
**Replies:** 6\
**Last updated:** [April 10, 2025, 4:05am UTC](https://discourse.julialang.org/t/terminate-after-warning-is-thrown-global-setting/80368 "2025-04-10T04:05:58Z")

</div>

I want to ensure that my program runs without doing questionable operations. Thus I would like the program to terminate whenever a warning is thrown; i.e. promote a warning to the level of errors. Is there a way to do t…

---

## [Incorrect \`method overwritten\` warning with optional kwargs..?](https://discourse.julialang.org/t/incorrect-method-overwritten-warning-with-optional-kwargs/120714)

<div class="topic-metadata">

**Author:** [@iago-lito](https://discourse.julialang.org/u/iago-lito)\
**Replies:** 4\
**Last updated:** [September 30, 2024, 2:56pm UTC](https://discourse.julialang.org/t/incorrect-method-overwritten-warning-with-optional-kwargs/120714 "2024-09-30T14:56:27Z")

</div>

My package exposes this caller method, whose behaviour may be controlled by consumers provided they specialize f: TestPkg/src/TestPkg.jl module TestPkg # Entry point for users. caller(a) = f(a; b = 1) export caller #…

---

## [Warning: Module TranscodingStreams with build ID fafbfcfd-709b-c95f-0000-2059ac53b05f is missing from the cache](https://discourse.julialang.org/t/warning-module-transcodingstreams-with-build-id-fafbfcfd-709b-c95f-0000-2059ac53b05f-is-missing-from-the-cache/119459)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 4\
**Last updated:** [September 17, 2024, 3:25pm UTC](https://discourse.julialang.org/t/warning-module-transcodingstreams-with-build-id-fafbfcfd-709b-c95f-0000-2059ac53b05f-is-missing-from-the-cache/119459 "2024-09-17T15:25:51Z")

</div>

┌ Warning: Module TranscodingStreams with build ID fafbfcfd-709b-c95f-0000-2059ac53b05f is missing from the cache. │ This may mean TranscodingStreams \[3bb67fe8-82b1-5028-8e26-92a6c54297fa\] does not support precompilation…

---

## [Oscar and Matlab both call nrows](https://discourse.julialang.org/t/oscar-and-matlab-both-call-nrows/114157)

<div class="topic-metadata">

**Author:** [@ilovemath](https://discourse.julialang.org/u/ilovemath)\
**Replies:** 9\
**Last updated:** [May 14, 2024, 3:42am UTC](https://discourse.julialang.org/t/oscar-and-matlab-both-call-nrows/114157 "2024-05-14T03:42:46Z")

</div>

Hi there, So, I am calling both Oscar and Matlab packages. Both call nrows in their subroutines under the hood in their often typical function calls. I was able to write the code so that I would not get the warning sa…

---

## [How to declare a global variable without initializing it?](https://discourse.julialang.org/t/how-to-declare-a-global-variable-without-initializing-it/105225)

<div class="topic-metadata">

**Author:** [@LeoK987](https://discourse.julialang.org/u/LeoK987)\
**Replies:** 5\
**Last updated:** [October 20, 2023, 12:06pm UTC](https://discourse.julialang.org/t/how-to-declare-a-global-variable-without-initializing-it/105225 "2023-10-20T12:06:03Z")

</div>

Say I declare the following outside all functions, VSCode complains that exportfile is missing reference, on that line and on all lines referencing the symbol. global exportfile::IOStream But if I initialize it there w…

---

## [Precompiling packages yields an encoding error that repeatedly prints](https://discourse.julialang.org/t/precompiling-packages-yields-an-encoding-error-that-repeatedly-prints/100200)

<div class="topic-metadata">

**Author:** [@johnabs](https://discourse.julialang.org/u/johnabs)\
**Replies:** 0\
**Last updated:** [June 11, 2023, 9:13pm UTC](https://discourse.julialang.org/t/precompiling-packages-yields-an-encoding-error-that-repeatedly-prints/100200 "2023-06-11T21:13:31Z")

</div>

Hi all, I’m witnessing some very strange behavior, which I’ve never seen before. I’m on julia version 1.8.3, and when I run julia, even julia --version, or when I try to run using $package\_name which precompiles it, I k…

---

## [What are the basis of this warning: \[DynamicPPL\] attempt to link a linked vi?](https://discourse.julialang.org/t/what-are-the-basis-of-this-warning-dynamicppl-attempt-to-link-a-linked-vi/98919)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 2\
**Last updated:** [May 16, 2023, 10:22am UTC](https://discourse.julialang.org/t/what-are-the-basis-of-this-warning-dynamicppl-attempt-to-link-a-linked-vi/98919 "2023-05-16T10:22:58Z")

</div>

I’m stuck because of this warning for several days now. I don’t see any obvious issue in my code. I have been through posts, one of recommendation was to use Turing.setadbackend(:zygote) though it didn’t work for me. I’…

---

## [How to make warning into error?](https://discourse.julialang.org/t/how-to-make-warning-into-error/5251)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 4\
**Last updated:** [December 1, 2022, 11:56pm UTC](https://discourse.julialang.org/t/how-to-make-warning-into-error/5251 "2022-12-01T23:56:32Z")

</div>

In C++, we can be pedantic and convert all warnings into errors during compilation: shell\> g++ -Werror Is there a similar feature in Julia? This switch could be very useful in Travis CI builds for mature packages. I am…

---

## [Warning regarding imported packages (\`LinearAlgebra\` and \`DrWatson\`)](https://discourse.julialang.org/t/warning-regarding-imported-packages-linearalgebra-and-drwatson/78319)

<div class="topic-metadata">

**Author:** [@ultrapoci](https://discourse.julialang.org/u/ultrapoci)\
**Replies:** 0\
**Last updated:** [March 23, 2022, 8:17am UTC](https://discourse.julialang.org/t/warning-regarding-imported-packages-linearalgebra-and-drwatson/78319 "2022-03-23T08:17:30Z")

</div>

I’m using Julia 1.7.2 and I’m trying to set up a project to work on. I’ve created the folder using DrWatson and I’ve added Revise to startup.jl: the idea is of course to have to ability to modify code (I’m using VSCode b…

---

## [Warnings about unused parameter in method](https://discourse.julialang.org/t/warnings-about-unused-parameter-in-method/58956)

<div class="topic-metadata">

**Author:** [@kumarbalachandran](https://discourse.julialang.org/u/kumarbalachandran)\
**Replies:** 2\
**Last updated:** [April 12, 2021, 4:09am UTC](https://discourse.julialang.org/t/warnings-about-unused-parameter-in-method/58956 "2021-04-12T04:09:31Z")

</div>

So I have a declaration as below abstract type C end struct A \<:C x::Float64 y::Float64 end function pattern(ant::A, pos::Float64) return pos^2 end struct B \<: C x::Float64 y::Float64 …

---

## [What does "DataFrame(columns::AbstractMatrix)\` is deprecated, use \`DataFrame(columns, :auto)\`" mean?](https://discourse.julialang.org/t/what-does-dataframe-columns-abstractmatrix-is-deprecated-use-dataframe-columns-auto-mean/55997)

<div class="topic-metadata">

**Author:** [@HelgavonLichtenstein](https://discourse.julialang.org/u/HelgavonLichtenstein)\
**Replies:** 1\
**Last updated:** [February 25, 2021, 10:38am UTC](https://discourse.julialang.org/t/what-does-dataframe-columns-abstractmatrix-is-deprecated-use-dataframe-columns-auto-mean/55997 "2021-02-25T10:38:06Z")

</div>

Hi, I re-ran some older code and see changes have been made. I tried following the discussion for this depreciation here but am not understanding the difference or what I need to do to update my code. The warning shows…

---

## [Warn/error for empty varargs? (push!, vcat, etc.)](https://discourse.julialang.org/t/warn-error-for-empty-varargs-push-vcat-etc/51919)

<div class="topic-metadata">

**Author:** [@digital\_carver](https://discourse.julialang.org/u/digital_carver)\
**Replies:** 2\
**Last updated:** [December 16, 2020, 4:04pm UTC](https://discourse.julialang.org/t/warn-error-for-empty-varargs-push-vcat-etc/51919 "2020-12-16T16:04:36Z")

</div>

a = \[1, 2\] push!(a) The second line here is effectively a nop, but it runs without any indication that something weird is going on. It’s highly unlikely that this code was intended as is, so it would be useful if we cou…

---

## [JuMP warning messages](https://discourse.julialang.org/t/jump-warning-messages/35143)

<div class="topic-metadata">

**Author:** [@bandaya](https://discourse.julialang.org/u/bandaya)\
**Replies:** 5\
**Last updated:** [February 26, 2020, 8:01pm UTC](https://discourse.julialang.org/t/jump-warning-messages/35143 "2020-02-26T20:01:24Z")

</div>

I get this warning message on some optimization problems. ┌ Warning: The addition operator has been used on JuMP expressions a large number of times. This warning is safe to ignore but may indicate that model generation…

---

## [Logging - handling repeated warnings](https://discourse.julialang.org/t/logging-handling-repeated-warnings/22014)

<div class="topic-metadata">

**Author:** [@crbinz](https://discourse.julialang.org/u/crbinz)\
**Replies:** 9\
**Last updated:** [March 21, 2019, 12:54pm UTC](https://discourse.julialang.org/t/logging-handling-repeated-warnings/22014 "2019-03-21T12:54:20Z")

</div>

My code calls a function in another module that emits warning when certain conditions are met. Often, if I’m not careful, that condition will be met for many thousands of calls, resulting in many thousands of repeated w…

---

## [Warning at Julia start in Atom/Juno/REPL](https://discourse.julialang.org/t/warning-at-julia-start-in-atom-juno-repl/14909)

<div class="topic-metadata">

**Author:** [@rickhg12hs](https://discourse.julialang.org/u/rickhg12hs)\
**Replies:** 6\
**Last updated:** [September 13, 2018, 8:00pm UTC](https://discourse.julialang.org/t/warning-at-julia-start-in-atom-juno-repl/14909 "2018-09-13T20:00:04Z")

</div>

How can I fix this warning? Press Enter to start Julia. Starting Julia... INFO: Loading HttpServer methods... \_ \_ \_ \_(\_)\_ | A fresh approach to technical computing (\_) | (\_) (\_) | …

---

## [Warn() vs @warn](https://discourse.julialang.org/t/warn-vs-warn/13579)

<div class="topic-metadata">

**Author:** [@tlienart](https://discourse.julialang.org/u/tlienart)\
**Replies:** 1\
**Last updated:** [August 16, 2018, 4:55pm UTC](https://discourse.julialang.org/t/warn-vs-warn/13579 "2018-08-16T16:55:54Z")

</div>

Hello, I’m upgrading a package to 0.7 and I was prompted to use @warn instead of warn. I did but got faced with an error which I suspect is due to a poor understanding of macros and string interpolation. Here’s a simpli…

---

## [Julia 0.7 : how to use iterate() to remove warning in Combinatorics.Combinations?](https://discourse.julialang.org/t/julia-0-7-how-to-use-iterate-to-remove-warning-in-combinatorics-combinations/13089)

<div class="topic-metadata">

**Author:** [@Fred](https://discourse.julialang.org/u/Fred)\
**Replies:** 3\
**Last updated:** [August 9, 2018, 1:49pm UTC](https://discourse.julialang.org/t/julia-0-7-how-to-use-iterate-to-remove-warning-in-combinatorics-combinations/13089 "2018-08-09T13:49:38Z")

</div>

Hi ! In Julia 0.7, the following code produce no error in the REPL julia\> using Combinatorics julia\> for c in Combinatorics.Combinations(1:3,2) println(c) end \[1, 2\] \[1, 3\] \[2, 3\] If I execute the co…

---

## [Getting a long list of warnings when "using" a package a second time](https://discourse.julialang.org/t/getting-a-long-list-of-warnings-when-using-a-package-a-second-time/11084)

<div class="topic-metadata">

**Author:** [@briochemc](https://discourse.julialang.org/u/briochemc)\
**Replies:** 15\
**Last updated:** [May 25, 2018, 8:54pm UTC](https://discourse.julialang.org/t/getting-a-long-list-of-warnings-when-using-a-package-a-second-time/11084 "2018-05-25T20:54:17Z")

</div>

I get a long list of warnings when I load a package a second time. Is this normal? Or should I change my workflow? (I think I am doing something wrong, but I am not sure). A minimal working example is julia\> using DualN…

---

## [Re-importing modules with changes in the code](https://discourse.julialang.org/t/re-importing-modules-with-changes-in-the-code/9192)

<div class="topic-metadata">

**Author:** [@Duls91](https://discourse.julialang.org/u/Duls91)\
**Replies:** 5\
**Last updated:** [February 20, 2018, 5:46pm UTC](https://discourse.julialang.org/t/re-importing-modules-with-changes-in-the-code/9192 "2018-02-20T17:46:30Z")

</div>

I am writing some functions into an additional file, which I am including in the jupyter notebook. The file looks like this: module pivPlotting using PyPlot export vectorPlot function vectorPlot(frame1, u, v, searchA…

---

## [WARNING: deprecated syntax "\_ as an rvalue around docs/Docs.jl:522"](https://discourse.julialang.org/t/warning-deprecated-syntax---as-an-rvalue-around-docs-docs-jl-522/5347)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 1\
**Last updated:** [August 12, 2017, 3:12pm UTC](https://discourse.julialang.org/t/warning-deprecated-syntax---as-an-rvalue-around-docs-docs-jl-522/5347 "2017-08-12T15:12:19Z")

</div>

This warning is hanging around for months. Where is it coming from? One online example in the Luxor docs: https://juliagraphics.github.io/Luxor.jl/stable/moreexamples.html#Strange-1

---

## [Confused by travis "unknown commit..." warning messages](https://discourse.julialang.org/t/confused-by-travis-unknown-commit-warning-messages/5117)

<div class="topic-metadata">

**Author:** [@anon94023334](https://discourse.julialang.org/u/anon94023334)\
**Replies:** 0\
**Last updated:** [July 29, 2017, 12:56am UTC](https://discourse.julialang.org/t/confused-by-travis-unknown-commit-warning-messages/5117 "2017-07-29T00:56:36Z")

</div>

WARNING: unknown LightGraphs commit 3f58085a, metadata may be ahead of package cache What do these signify, and how do I resolve them?
