# I only wrote "using" and already fell into trouble

**URL:** <https://discourse.julialang.org/t/i-only-wrote-using-and-already-fell-into-trouble/4084>\
**Category:** New to Julia\
**Created:** [June 4, 2017, 6:01pm UTC](https://discourse.julialang.org/t/i-only-wrote-using-and-already-fell-into-trouble/4084 "2017-06-04T18:01:51Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![carbon](https://avatars.discourse-cdn.com/v4/letter/c/c2a13f/32.png) [@carbon](https://discourse.julialang.org/u/carbon)\
**Post date:** [June 4, 2017, 6:01pm UTC](https://discourse.julialang.org/t/i-only-wrote-using-and-already-fell-into-trouble/4084/1 "2017-06-04T18:01:51Z")

</div>

I am using Julia 5.2 in the Atom environment. Coming from the C++ background. What makes me upset are: (1) frequent cryptic warnings and (2) inconsistent behaviour between consecutive runs of a program. Here is a minimal scenario for (1):

```julia
using DataArrays
using DataFrames
using MultivariateStats

```

I then use “Run File” and get:

```julia
WARNING: Method definition 
describe(AbstractArray) in module StatsBase at C:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\Users\carbon\AppData\Local\JuliaPro-0.5.2.1\pkgs-0.5.2.1\v0.5\StatsBase\src\scalarstats.jl:573 overwritten in module DataFrames at C:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\Users\carbon\AppData\Local\JuliaPro-0.5.2.1\pkgs-0.5.2.1\v0.5\DataFrames\src\abstractdataframe\abstractdataframe.jl:407.

```

Am I doing something wrong or is it just a bug in Julia itself?

(2) Another problem that I am having is inconsistent behaviour between consecutive program runs. Is it normal that I have some program working, but after some manipulation in the environment, that program stops to work? Right now I am just having “transform” function stopped to work:

```julia
LoadError: UndefVarError: transform not defined

```

I think I only tried to install and update some package since it was working before, but the program stayed the same.

---

<div class="post-metadata">

**Author:** ![yuyichao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yuyichao/32/20_2.png) [@yuyichao](https://discourse.julialang.org/u/yuyichao)\
**Post date:** [June 4, 2017, 6:37pm UTC](https://discourse.julialang.org/t/i-only-wrote-using-and-already-fell-into-trouble/4084/2 "2017-06-04T18:37:11Z")

</div>

The first one is a issue in the two packages. I agree it’s annoy but I can’t see why it’s cryptic. The error message is pretty clearly saying that a method got overwritten and also the location of the original and new definition.

Upgrading packages can certainly change API so if you call that manipulation in the environment then yes it can make code not working anymore. Usually you need to check the package doc for what to do. (assuming no warning is printed about anything related).

---

<div class="post-metadata">

**Author:** ![antoine-levitt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/antoine-levitt/32/4008_2.png) [@antoine-levitt](https://discourse.julialang.org/u/antoine-levitt)\
**Post date:** [June 4, 2017, 6:42pm UTC](https://discourse.julialang.org/t/i-only-wrote-using-and-already-fell-into-trouble/4084/3 "2017-06-04T18:42:44Z")

</div>

The alarming number of backslashes is probably a bug, though. Does that happen outside the Atom environment, and also with the release candidate version from [Download Julia](https://julialang.org/downloads/) ?

---

<div class="post-metadata">

**Author:** ![yuyichao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yuyichao/32/20_2.png) [@yuyichao](https://discourse.julialang.org/u/yuyichao)\
**Post date:** [June 4, 2017, 6:56pm UTC](https://discourse.julialang.org/t/i-only-wrote-using-and-already-fell-into-trouble/4084/4 "2017-06-04T18:56:59Z")

</div>

It seems to be Julia-Pro. I imagine it might be some julia-pro installation path/setting thing but I’m not 100% sure.

---

<div class="post-metadata">

**Author:** ![carbon](https://avatars.discourse-cdn.com/v4/letter/c/c2a13f/32.png) [@carbon](https://discourse.julialang.org/u/carbon)\
**Post date:** [June 4, 2017, 8:22pm UTC](https://discourse.julialang.org/t/i-only-wrote-using-and-already-fell-into-trouble/4084/5 "2017-06-04T20:22:28Z")

</div>

> [@yuyichao](#):
>
> It seems to be Julia-Pro.

Yes, it is Julia-Pro. I just went to [julialang.org](http://julialang.org) and found that this was just the recommended IDE for Julia.

> [@yuyichao](#):
>
> I agree it’s annoy but I can’t see why it’s cryptic.

Yes, this one is quite precise. However, usually it appeared on my console like this:

```julia
WARNING: Method definition 
nothing
describe(AbstractArray
accuracy TR, TE: 
) in module StatsBase at C:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\Users\carbon\AppData\Local\JuliaPro-0.5.2.1\pkgs-0.5.2.1\v0.5\StatsBase\src\scalarstats.jl:573 overwritten in module DataFrames

```

I have just found out that some of the lines are products of my own code and they get interleaved with messages coming from Julia. This is the thing that made me say it had been cryptic. Now I would just say there is some bug in the environment that makes warnings interleaved with lines of another output process.

---

<div class="post-metadata">

**Author:** ![carbon](https://avatars.discourse-cdn.com/v4/letter/c/c2a13f/32.png) [@carbon](https://discourse.julialang.org/u/carbon)\
**Post date:** [June 4, 2017, 8:31pm UTC](https://discourse.julialang.org/t/i-only-wrote-using-and-already-fell-into-trouble/4084/6 "2017-06-04T20:31:17Z")

</div>

> [@antoine-levitt](#):
>
> The alarming number of backslashes is probably a bug, though. Does that happen outside the Atom environment

Yes, I tried it also in the Windows’ console. It looks like this:

```julia
C:\Users\carbon\AppData\Local\JuliaPro-0.5.2.1\Julia-0.5.2\bin>julia usingonly.jl
WARNING: Method definition describe(AbstractArray) in module StatsBase at C:\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\Users\carbon\AppData\Local\Jul
iaPro-0.5.2.1\pkgs-0.5.2.1\v0.5\StatsBase\src\scalarstats.jl:573 overwritten in
module DataFrames at C:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\Use
rs\carbon\AppData\Local\JuliaPro-0.5.2.1\pkgs-0.5.2.1\v0.5\DataFrames\src\abstra
ctdataframe\abstractdataframe.jl:407.

```

---

<div class="post-metadata">

**Author:** ![yuyichao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yuyichao/32/20_2.png) [@yuyichao](https://discourse.julialang.org/u/yuyichao)\
**Post date:** [June 4, 2017, 8:50pm UTC](https://discourse.julialang.org/t/i-only-wrote-using-and-already-fell-into-trouble/4084/7 "2017-06-04T20:50:01Z")

</div>

> [@carbon](#):
>
> Now I would just say there is some bug in the environment that makes warnings interleaved with lines of another output process.

Yes, this is a known problem on windows. Also seen on AppVeyor.

---

<div class="post-metadata">

**Author:** ![carbon](https://avatars.discourse-cdn.com/v4/letter/c/c2a13f/32.png) [@carbon](https://discourse.julialang.org/u/carbon)\
**Post date:** [June 4, 2017, 9:13pm UTC](https://discourse.julialang.org/t/i-only-wrote-using-and-already-fell-into-trouble/4084/8 "2017-06-04T21:13:11Z")

</div>

> [@antoine-levitt](#):
>
> The alarming number of backslashes is probably a bug, though. Does that happen […] also with the release candidate version from [Download Julia](https://julialang.org/downloads/) ?

I have just uninstalled Julia-Pro and installed Julia-command line 0.6RC2. Now there is no warning message at all, so I cannot directly say if there are superfluous backslashes or not in that case. In other cases, however, I am getting quite a lot of new warnings from standard Julia libraries about deprecated syntax and there are only single backslashes.

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [June 4, 2017, 9:40pm UTC](https://discourse.julialang.org/t/i-only-wrote-using-and-already-fell-into-trouble/4084/9 "2017-06-04T21:40:30Z")

</div>

> [@carbon](#):
>
> however, I am getting quite a lot of new warnings from standard Julia libraries about deprecated syntax and there are only single backslashes.

That’s because you’re using a version of Julia which hasn’t been released yet. Not all packages have updated.

---

<div class="post-metadata">

**Author:** ![carbon](https://avatars.discourse-cdn.com/v4/letter/c/c2a13f/32.png) [@carbon](https://discourse.julialang.org/u/carbon)\
**Post date:** [June 5, 2017, 5:21am UTC](https://discourse.julialang.org/t/i-only-wrote-using-and-already-fell-into-trouble/4084/10 "2017-06-05T05:21:03Z")

</div>

To summarize:

- The problem with multiple backslashes looks like a bug in 0.5.2, solved in 0.6RC2.
- I need to live with the fact that error messages span into multiple lines that can get interleaved with the output of my program.
- I need to live with the fact that version 0.6RC2 has some packages not up to date and warning messages will appear, coming from the libraries source code.
- Inconsistent program execution between different runs remains a problem for me, but you are right that saying “that I only tried update some packages” doesn’t look like a legitimate excuse. I will come back when I have a better example.

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [June 5, 2017, 6:03am UTC](https://discourse.julialang.org/t/i-only-wrote-using-and-already-fell-into-trouble/4084/11 "2017-06-05T06:03:18Z")

</div>

> [@carbon](#):
>
> The problem with multiple backslashes looks like a bug in 0.5.2, solved in 0.6RC2.

Looks like a bug in JuliaPro. You never tried the standard v0.5.2 installation, which is the current Julia release.

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [June 5, 2017, 8:52am UTC](https://discourse.julialang.org/t/i-only-wrote-using-and-already-fell-into-trouble/4084/12 "2017-06-05T08:52:38Z")

</div>

From what I know the huge number of backslashes is a feature (aka hack) to make it possible to ship precompiled packages. If you were to install a new package any errors from there should have the proper amount of backslashes (maybe the same is true for `Pkg.update()`ing and then trying again).
