# General Usage

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

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

**Page:** 971

---

## [Strange behavior when using StaticArrays.jl and Parameters.jl that is crashing Julia](https://discourse.julialang.org/t/strange-behavior-when-using-staticarrays-jl-and-parameters-jl-that-is-crashing-julia/11654)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 4\
**Last updated:** [June 14, 2018, 3:38am UTC](https://discourse.julialang.org/t/strange-behavior-when-using-staticarrays-jl-and-parameters-jl-that-is-crashing-julia/11654 "2018-06-14T03:38:18Z")

</div>

Hi guys! I am seeing a strange behavior when using concurrently StaticArrays.jl and Parameters.jl that is leading to crash. I need help because I am not sure where I should open the issue. Look at this code: using Par…

---

## [Splatting causes BoundsError in 0.7-alpha](https://discourse.julialang.org/t/splatting-causes-boundserror-in-0-7-alpha/11653)

<div class="topic-metadata">

**Author:** [@ksmcreynolds](https://discourse.julialang.org/u/ksmcreynolds)\
**Replies:** 2\
**Last updated:** [June 13, 2018, 11:32pm UTC](https://discourse.julialang.org/t/splatting-causes-boundserror-in-0-7-alpha/11653 "2018-06-13T23:32:58Z")

</div>

I get a weird BoundsError when I use splatting in v0.7-alpha. Below is a MWE. function test(a,b) c = (b,(0,1)...) test(a, c...) end function test2(a,b) c = (b,0,1) test(a, c...) end test(a, b, c, d…

---

## [Slow abstractarray.jl, indices: line 64 when starting julia with \`--inline=no\`](https://discourse.julialang.org/t/slow-abstractarray-jl-indices-line-64-when-starting-julia-with-inline-no/11647)

<div class="topic-metadata">

**Author:** [@zsoerenm](https://discourse.julialang.org/u/zsoerenm)\
**Replies:** 6\
**Last updated:** [June 13, 2018, 7:09pm UTC](https://discourse.julialang.org/t/slow-abstractarray-jl-indices-line-64-when-starting-julia-with-inline-no/11647 "2018-06-13T19:09:55Z")

</div>

When I use ProfileView to profile my code it shows that most of the time is consumed in: abstractarray.jl, indices: line 64 Every arrow is pointing to time consumed in abstractarray.jl, indices: line 64 Unfortunate…

---

## [Additional packages in Pkg3](https://discourse.julialang.org/t/additional-packages-in-pkg3/11632)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 7\
**Last updated:** [June 13, 2018, 12:45pm UTC](https://discourse.julialang.org/t/additional-packages-in-pkg3/11632 "2018-06-13T12:45:19Z")

</div>

Is there a way to list “additional packages” in 0.7? In 0.6 one could do Pkg.status() and get a list of all installed packages, including those installed as requirements for added packages, whereas in 0.7 status only pr…

---

## [Same code in if and else blocks, get UndefVarError only on else condition](https://discourse.julialang.org/t/same-code-in-if-and-else-blocks-get-undefvarerror-only-on-else-condition/11611)

<div class="topic-metadata">

**Author:** [@mwolters](https://discourse.julialang.org/u/mwolters)\
**Replies:** 3\
**Last updated:** [June 13, 2018, 10:11am UTC](https://discourse.julialang.org/t/same-code-in-if-and-else-blocks-get-undefvarerror-only-on-else-condition/11611 "2018-06-13T10:11:42Z")

</div>

Suppose I have a function with 2 arguments, and I want to make a new function with one of the arguments fixed to a value, depending on some condition. For example: fun(x,a) = a\*x function foo(flag::Bool) if flag …

---

## [Error using Load with JLD](https://discourse.julialang.org/t/error-using-load-with-jld/11638)

<div class="topic-metadata">

**Author:** [@Tessereau\_Charline](https://discourse.julialang.org/u/Tessereau_Charline)\
**Replies:** 0\
**Last updated:** [June 13, 2018, 10:05am UTC](https://discourse.julialang.org/t/error-using-load-with-jld/11638 "2018-06-13T10:05:29Z")

</div>

I used JLD to save and load data to plot the results of some experiment. It has always worked fine until recently when I tryed to load a more heavy (usually it was around 5 to 20 MB and now from 400 to 500 MB, I dont kno…

---

## [Manage asynchronous tasks](https://discourse.julialang.org/t/manage-asynchronous-tasks/11620)

<div class="topic-metadata">

**Author:** [@han-so1omon](https://discourse.julialang.org/u/han-so1omon)\
**Replies:** 4\
**Last updated:** [June 13, 2018, 3:45am UTC](https://discourse.julialang.org/t/manage-asynchronous-tasks/11620 "2018-06-13T03:45:38Z")

</div>

Hi all: Question about multithreading with asynchronous tasks. There are three tasks running in parallel: main script, asynchronous1 (test server), asynchronous2 (test client). What is the best way to kill the asynchron…

---

## [Importing a non-dependency inside a registered package](https://discourse.julialang.org/t/importing-a-non-dependency-inside-a-registered-package/11633)

<div class="topic-metadata">

**Author:** [@fjarri](https://discourse.julialang.org/u/fjarri)\
**Replies:** 0\
**Last updated:** [June 13, 2018, 3:07am UTC](https://discourse.julialang.org/t/importing-a-non-dependency-inside-a-registered-package/11633 "2018-06-13T03:07:14Z")

</div>

Julia version: 0.7 alpha It seems that using a package in some file belonging to a registered package gives a LoadError if it is not explicitly listed as a dependency. Is there a way to work around that? I understand wh…

---

## [PEP8 for Julia?](https://discourse.julialang.org/t/pep8-for-julia/11619)

<div class="topic-metadata">

**Author:** [@nickeubank](https://discourse.julialang.org/u/nickeubank)\
**Replies:** 3\
**Last updated:** [June 12, 2018, 9:26pm UTC](https://discourse.julialang.org/t/pep8-for-julia/11619 "2018-06-12T21:26:45Z")

</div>

Working on some code for bigger packages, and finding it hard to anticipate norms around things like empty before after function definitions and whether there are spaces around equal signs in function arguments (e.g. fun…

---

## [Is there a way to automatically generate documentation for all functions in a module](https://discourse.julialang.org/t/is-there-a-way-to-automatically-generate-documentation-for-all-functions-in-a-module/11617)

<div class="topic-metadata">

**Author:** [@SZJX](https://discourse.julialang.org/u/SZJX)\
**Replies:** 1\
**Last updated:** [June 12, 2018, 6:29pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-automatically-generate-documentation-for-all-functions-in-a-module/11617 "2018-06-12T18:29:59Z")

</div>

It seems from the documentation for Documenter.jl that you need to explicitly list the functions that you want the documentation generated for in an index.md file. Is there a way to automatically generate documentation …

---

## [Type inference when types are passed as values](https://discourse.julialang.org/t/type-inference-when-types-are-passed-as-values/11539)

<div class="topic-metadata">

**Author:** [@alpharho](https://discourse.julialang.org/u/alpharho)\
**Replies:** 3\
**Last updated:** [June 12, 2018, 12:39pm UTC](https://discourse.julialang.org/t/type-inference-when-types-are-passed-as-values/11539 "2018-06-12T12:39:50Z")

</div>

I got a little confused about how type inference works, when trying to find out what happens when types are passed as values to a function like in rand(Int64). So far I thought that the compiler tries to infer the return…

---

## [Clickable link in the REPL](https://discourse.julialang.org/t/clickable-link-in-the-repl/11602)

<div class="topic-metadata">

**Author:** [@bernhard](https://discourse.julialang.org/u/bernhard)\
**Replies:** 0\
**Last updated:** [June 12, 2018, 9:22am UTC](https://discourse.julialang.org/t/clickable-link-in-the-repl/11602 "2018-06-12T09:22:55Z")

</div>

Is it possible to generate a clickable link in the REPL in windows? (could be cmd or Powershell). I am not talking about stack traces but rather a info(“see this file: …”) or println(“something”) statement.

---

## [Restrictive Type Aliases?](https://discourse.julialang.org/t/restrictive-type-aliases/10546)

<div class="topic-metadata">

**Author:** [@nhipsman](https://discourse.julialang.org/u/nhipsman)\
**Replies:** 11\
**Last updated:** [June 12, 2018, 4:54am UTC](https://discourse.julialang.org/t/restrictive-type-aliases/10546 "2018-06-12T04:54:25Z")

</div>

Hi, I’m trying to define a type alias in a way that is actually restrictive. For instance, distance travelled = rate \* time, where all 3 (distances, rates, and times) are inherently floats. I want to define 3 types: a…

---

## [Union Types and conversion thereof](https://discourse.julialang.org/t/union-types-and-conversion-thereof/11575)

<div class="topic-metadata">

**Author:** [@bernhard](https://discourse.julialang.org/u/bernhard)\
**Replies:** 5\
**Last updated:** [June 12, 2018, 4:52am UTC](https://discourse.julialang.org/t/union-types-and-conversion-thereof/11575 "2018-06-12T04:52:32Z")

</div>

In some cases, CSV.read returns a dataframe with vectors that are of type Vector{Union{Missing, String}}. Is there an easy way to ‘remove’ the missing, i.e. convert to a ‘pure’ datatype? Also, how can I check how many …

---

## [Github overwrite](https://discourse.julialang.org/t/github-overwrite/11598)

<div class="topic-metadata">

**Author:** [@microlifecc](https://discourse.julialang.org/u/microlifecc)\
**Replies:** 0\
**Last updated:** [June 12, 2018, 3:05am UTC](https://discourse.julialang.org/t/github-overwrite/11598 "2018-06-12T03:05:11Z")

</div>

Hi! I joined Juliabox today. I had created a repo on github and pulled it to Juliabox. Then I created a notebook and wrote a bunch of code. But when I was trying to sync back to github it asked me to add the repo again. …

---

## [Arrays vs Vectors vs matrix (permutations) problems,confusion and clarification](https://discourse.julialang.org/t/arrays-vs-vectors-vs-matrix-permutations-problems-confusion-and-clarification/11578)

<div class="topic-metadata">

**Author:** [@rapasite](https://discourse.julialang.org/u/rapasite)\
**Replies:** 10\
**Last updated:** [June 11, 2018, 8:27pm UTC](https://discourse.julialang.org/t/arrays-vs-vectors-vs-matrix-permutations-problems-confusion-and-clarification/11578 "2018-06-11T20:27:56Z")

</div>

Hi, here is what’s confuse me: a=\[1,3,5\] b=\[2,4,6\] \[a b\] 3×2 Array{Int64,2}: 1 2 3 4 5 6 reshape(\[1 2 3 4 5 6\],2,3) 2×3 Array{Int64,2}: 1 3 5 2 4 6 \[\[1 2\], \[3 4\], \[5 6\]\] Matrix{Int64}\[3\] 1×2 Array{Int64,…

---

## [Recommended style for conversion vs. constructors in v0.7](https://discourse.julialang.org/t/recommended-style-for-conversion-vs-constructors-in-v0-7/11561)

<div class="topic-metadata">

**Author:** [@rdeits](https://discourse.julialang.org/u/rdeits)\
**Replies:** 12\
**Last updated:** [June 11, 2018, 6:38pm UTC](https://discourse.julialang.org/t/recommended-style-for-conversion-vs-constructors-in-v0-7/11561 "2018-06-11T18:38:48Z")

</div>

I’ve been upgrading a few packages to v0.7, and one of the biggest sources of deprecations is the removal of the default constructor-\>convert fallback. For those unfamiliar, previously if you had: struct T ... end Ba…

---

## [Declare a matrix with break lines](https://discourse.julialang.org/t/declare-a-matrix-with-break-lines/11568)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 19\
**Last updated:** [June 11, 2018, 4:32pm UTC](https://discourse.julialang.org/t/declare-a-matrix-with-break-lines/11568 "2018-06-11T16:32:54Z")

</div>

Hi guys! There is a model in which I have to declare a very large matrix (150 columns). The problem is that I do not know how can I break a line when declaring a matrix without actually creating a new row. For example: …

---

## [Julia system image including packages (to be executed in GCP dataflow)](https://discourse.julialang.org/t/julia-system-image-including-packages-to-be-executed-in-gcp-dataflow/11583)

<div class="topic-metadata">

**Author:** [@guillempuig1](https://discourse.julialang.org/u/guillempuig1)\
**Replies:** 0\
**Last updated:** [June 11, 2018, 1:17pm UTC](https://discourse.julialang.org/t/julia-system-image-including-packages-to-be-executed-in-gcp-dataflow/11583 "2018-06-11T13:17:39Z")

</div>

Hello everyone! I’m trying to build a Julia system image with the aim of having all my needed packages included within this image beacuse I need to use this image in Google Cloud Platform (Dataflow). The objectif is …

---

## [Skipping LineNumberNodes in v0.7 macros](https://discourse.julialang.org/t/skipping-linenumbernodes-in-v0-7-macros/11547)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 11\
**Last updated:** [June 11, 2018, 1:08pm UTC](https://discourse.julialang.org/t/skipping-linenumbernodes-in-v0-7-macros/11547 "2018-06-11T13:08:51Z")

</div>

ex = :(begin p1, (X,Y,Z) --\> 0 hill(X,p2,100.,-4), 0 --\> Y hill(Y,p3,100.,-4), 0 --\> Z hill(Z,p4,100.,-4), 0 --\> X hill(X,p5,100.,6), 0 --\> R hill(Y,p6,100.,4)\*0.002, R --\> 0 p7, 0 --\> S R…

---

## [Overhead in passing data to worker processes](https://discourse.julialang.org/t/overhead-in-passing-data-to-worker-processes/11566)

<div class="topic-metadata">

**Author:** [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Replies:** 4\
**Last updated:** [June 11, 2018, 1:05pm UTC](https://discourse.julialang.org/t/overhead-in-passing-data-to-worker-processes/11566 "2018-06-11T13:05:22Z")

</div>

I have several large objects that need to be passed to worker processes. Currently, I am just using a simple @parallel for loop without any reducer. Since the objects are quite large, it takes 5 seconds before a worker…

---

## [Derivative of eigenvalues and eigenvectors of Hermitian Matrix by automatic differentiation](https://discourse.julialang.org/t/derivative-of-eigenvalues-and-eigenvectors-of-hermitian-matrix-by-automatic-differentiation/11563)

<div class="topic-metadata">

**Author:** [@Chong\_Wang](https://discourse.julialang.org/u/Chong_Wang)\
**Replies:** 19\
**Last updated:** [June 11, 2018, 11:31am UTC](https://discourse.julialang.org/t/derivative-of-eigenvalues-and-eigenvectors-of-hermitian-matrix-by-automatic-differentiation/11563 "2018-06-11T11:31:25Z")

</div>

I am recently looking into automatic differentiation, as implemented by ForwardDiff.jl. The manual says functions that call blas are not supported, therefore any functions containing eig are not supported. I think I part…

---

## [Plots.jl treatment of strings/labels](https://discourse.julialang.org/t/plots-jl-treatment-of-strings-labels/11580)

<div class="topic-metadata">

**Author:** [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Replies:** 1\
**Last updated:** [June 11, 2018, 11:01am UTC](https://discourse.julialang.org/t/plots-jl-treatment-of-strings-labels/11580 "2018-06-11T11:01:47Z")

</div>

Currently trying to remove PyPlot from some of my old code and trying to move to Plots.jl, and while I’m generally positively surprised about how quickly I’ve been able to convert some basic plots, some things still stum…

---

## [Stacktrace in Juno is confusing - did I miss something?](https://discourse.julialang.org/t/stacktrace-in-juno-is-confusing-did-i-miss-something/11508)

<div class="topic-metadata">

**Author:** [@Zhong\_Pan](https://discourse.julialang.org/u/Zhong_Pan)\
**Replies:** 2\
**Last updated:** [June 10, 2018, 4:11pm UTC](https://discourse.julialang.org/t/stacktrace-in-juno-is-confusing-did-i-miss-something/11508 "2018-06-10T16:11:27Z")

</div>

Transferring the question to the “Usage” tag to hopefully get an answer. Thanks!! I’m running JuliaPro 0.6.2 and the Juno that comes with it (Atom 1.23.3 ia32, julia-client 0.6.9). The Console Style setting is REPL-base…

---

## [Recommended way to migrate an existing package to Pkg3](https://discourse.julialang.org/t/recommended-way-to-migrate-an-existing-package-to-pkg3/11560)

<div class="topic-metadata">

**Author:** [@dfdx](https://discourse.julialang.org/u/dfdx)\
**Replies:** 5\
**Last updated:** [June 10, 2018, 1:21pm UTC](https://discourse.julialang.org/t/recommended-way-to-migrate-an-existing-package-to-pkg3/11560 "2018-06-10T13:21:54Z")

</div>

I know that Pkg3 is still in active development and detailed documentation is coming soon, but right now I have a couple of issues that block me from updating my packages and thus want to overcome them, either using offi…

---

## [Avoiding functions in types; performance comparison & invitation for code review](https://discourse.julialang.org/t/avoiding-functions-in-types-performance-comparison-invitation-for-code-review/11555)

<div class="topic-metadata">

**Author:** [@jcook](https://discourse.julialang.org/u/jcook)\
**Replies:** 8\
**Last updated:** [June 10, 2018, 8:14am UTC](https://discourse.julialang.org/t/avoiding-functions-in-types-performance-comparison-invitation-for-code-review/11555 "2018-06-10T08:14:02Z")

</div>

Dear All, I’m attempting to go full Julia and not store functions in a type. The meat of my problem requires doing a some quadrature using QuadGK.jl on the product of some bessel functions using SpecialFunctions.jl and …

---

## ["pkg\> add ..." overwrites Manifest.toml changes made for developed packages](https://discourse.julialang.org/t/pkg-add-overwrites-manifest-toml-changes-made-for-developed-packages/11541)

<div class="topic-metadata">

**Author:** [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Replies:** 9\
**Last updated:** [June 9, 2018, 8:09pm UTC](https://discourse.julialang.org/t/pkg-add-overwrites-manifest-toml-changes-made-for-developed-packages/11541 "2018-06-09T20:09:25Z")

</div>

I did pkg\> develop for a couple of packages to work on making them compatible with 0.7. This included adding new dependencies (like say Nullables). However, doing a new pkg\> add ... will wipe all the changes made to the …

---

## [ProgressMeter and @threads](https://discourse.julialang.org/t/progressmeter-and-threads/11537)

<div class="topic-metadata">

**Author:** [@cortner](https://discourse.julialang.org/u/cortner)\
**Replies:** 4\
**Last updated:** [June 9, 2018, 4:35am UTC](https://discourse.julialang.org/t/progressmeter-and-threads/11537 "2018-06-09T04:35:40Z")

</div>

Trying to use ProgressMeter.jl for simple multi-threaded loops, I came up with the following. I am surprised that this works, since I usually get error messages when I try to print anything from inside a @threads for. So…

---

## [Why do the removed packages surge back after Pkg.update()?](https://discourse.julialang.org/t/why-do-the-removed-packages-surge-back-after-pkg-update/11550)

<div class="topic-metadata">

**Author:** [@chobbes](https://discourse.julialang.org/u/chobbes)\
**Replies:** 3\
**Last updated:** [June 8, 2018, 10:19pm UTC](https://discourse.julialang.org/t/why-do-the-removed-packages-surge-back-after-pkg-update/11550 "2018-06-08T22:19:33Z")

</div>

Why every time when a package is removed by Pkg.rm does it come back again once I run Pkg.update()? It really drives me nuts.

---

## [Sockets module not found (v0.7)](https://discourse.julialang.org/t/sockets-module-not-found-v0-7/11476)

<div class="topic-metadata">

**Author:** [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Replies:** 11\
**Last updated:** [June 8, 2018, 7:40pm UTC](https://discourse.julialang.org/t/sockets-module-not-found-v0-7/11476 "2018-06-08T19:40:25Z")

</div>

I’m trying to get HttpServer to run on v0.7. It crashes because it attempts to use Base.TCPServer. Per the Julia docs, that has been moved under the Sockets module. However, attempting to add using Sockets to the HttpSe…

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

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