# Travis doesn't tell me where an error occurs?

**URL:** https://discourse.julialang.org/t/travis-doesnt-tell-me-where-an-error-occurs/18160
**Category:** General Usage
**Tags:** package
**Created:** [November 29, 2018, 7:53pm UTC](https://discourse.julialang.org/t/travis-doesnt-tell-me-where-an-error-occurs/18160 "2018-11-29T19:53:30Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![hsgg](https://avatars.discourse-cdn.com/v4/letter/h/838e76/32.png) [@hsgg](https://discourse.julialang.org/u/hsgg)
#### Post date: [November 29, 2018, 7:53pm UTC](https://discourse.julialang.org/t/travis-doesnt-tell-me-where-an-error-occurs/18160/1 "2018-11-29T19:53:30Z")

</div>

I am trying to update my package ([https://github.com/hsgg/TwoFAST.jl/tree/next](https://github.com/hsgg/TwoFAST.jl/tree/next)) to `Julia-1.0`. On my local machine, the tests pass. Hurray! However, on travis I get the following error:

```julia
ERROR: MethodError: no method matching getindex(::Nothing, ::String)
Stacktrace:
[1] #build_versions#47(::Bool, ::Function, ::Pkg.Types.Context, ::Array{Base.UUID,1}) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Operations.jl:1045
[2] build_versions at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Operations.jl:1034 [inlined]
[3] #instantiate#59(::Nothing, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Pkg.Types.Context) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:567
[4] instantiate at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:529 [inlined]
[5] #build#53(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:454
[6] build at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:433 [inlined]
[7] build() at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:428
[8] top-level scope at none:1
The command "julia --color=yes -e "if VERSION &lt; v\"0.7.0-DEV.5183\"; Pkg.clone(pwd()); Pkg.build(\"${JL_PKG}\"); else using Pkg; Pkg.build(); end"" failed and exited with 1 during .

Your build has been stopped.

```

The full log is at [Travis CI - Test and Deploy Your Code with Confidence](https://travis-ci.org/hsgg/TwoFAST.jl/jobs/461424412).

Where is this error occurring?

Nowhere in my package do I use `getindex` explicitly. Therefore, I don’t think it is my package.

I am also using the package `IncGammaBeta`, which I updated to julia-1.0 in a fork ([GitHub - hsgg/IncGammaBeta.jl: A Julia package that computes incomplete gamma and beta functions and their inverses.](https://github.com/hsgg/IncGammaBeta.jl.git)). In that package `getindex` doesn’t appear either. Also, I can add `IncGammaBeta` by URL on my local computer with no problem.

Anybody have an idea where else I should look? Do I need to add a toml file to IncGammaBeta?

---

<div class="post-metadata">

### Author: ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)
#### Post date: [November 29, 2018, 8:00pm UTC](https://discourse.julialang.org/t/travis-doesnt-tell-me-where-an-error-occurs/18160/2 "2018-11-29T20:00:45Z")

</div>

The error happens in the package manager. I’ll see if I can find out the problem.

---

<div class="post-metadata">

### Author: ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)
#### Post date: [November 29, 2018, 8:11pm UTC](https://discourse.julialang.org/t/travis-doesnt-tell-me-where-an-error-occurs/18160/3 "2018-11-29T20:11:35Z")

</div>

It seems like there is a “hanging” package in the Manifest.toml:

```julia
[[Dierckx]]
deps = ["BinaryProvider", "Libdl", "Random", "Test"]
git-tree-sha1 = "27a74763c20938a814da26f31a9e8408d16fec44"
uuid = "39dd38d3-220a-591b-8e3c-4c3a8c710a94"
version = "0.4.1"

```

The project doesn’t have that as a dependency and no other dependencies depend on it. Pkg should never have emitted such a Manifest and seems to get confused right now.

Perhaps try remove that entry.

---

<div class="post-metadata">

### Author: ![hsgg](https://avatars.discourse-cdn.com/v4/letter/h/838e76/32.png) [@hsgg](https://discourse.julialang.org/u/hsgg)
#### Post date: [November 29, 2018, 9:52pm UTC](https://discourse.julialang.org/t/travis-doesnt-tell-me-where-an-error-occurs/18160/4 "2018-11-29T21:52:30Z")

</div>

`Dierckx` is needed for the tests. Perhaps I am confused how to properly specify that dependency? It is in the `Project.toml` file of TwoFAST.jl:

```julia
[extras]
Dierckx = "39dd38d3-220a-591b-8e3c-4c3a8c710a94"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Dierckx", "Test"]

```

---

<div class="post-metadata">

### Author: ![hsgg](https://avatars.discourse-cdn.com/v4/letter/h/838e76/32.png) [@hsgg](https://discourse.julialang.org/u/hsgg)
#### Post date: [November 29, 2018, 10:15pm UTC](https://discourse.julialang.org/t/travis-doesnt-tell-me-where-an-error-occurs/18160/5 "2018-11-29T22:15:49Z")

</div>

Indeed, removing `Dierckx` from `Manifest.toml` does work!

I’m still wondering why `Dierckx` doesn’t need to be specified anywhere in some `Manifest.toml` file, but your solution does work. Thank you!

---

<div class="post-metadata">

### Author: ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)
#### Post date: [November 29, 2018, 10:21pm UTC](https://discourse.julialang.org/t/travis-doesnt-tell-me-where-an-error-occurs/18160/6 "2018-11-29T22:21:02Z")

</div>

> [@hsgg](#):
>
> I’m still wondering why `Dierckx` doesn’t need to be specified anywhere in some `Manifest.toml` file, but your solution does work. Thank you!

The testing is run in a new environment (i.e. new `Project.toml` + `Manifest.toml`) with test dependencies added.

---

<div class="post-metadata">

### Author: ![hsgg](https://avatars.discourse-cdn.com/v4/letter/h/838e76/32.png) [@hsgg](https://discourse.julialang.org/u/hsgg)
#### Post date: [November 30, 2018, 2:17am UTC](https://discourse.julialang.org/t/travis-doesnt-tell-me-where-an-error-occurs/18160/7 "2018-11-30T02:17:34Z")

</div>

Thanks all!
