# Traceback details when using include()

**URL:** <https://discourse.julialang.org/t/traceback-details-when-using-include/42165>\
**Category:** New to Julia\
**Created:** [June 27, 2020, 7:11pm UTC](https://discourse.julialang.org/t/traceback-details-when-using-include/42165 "2020-06-27T19:11:26Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![billtubbs](https://avatars.discourse-cdn.com/v4/letter/b/67e7ee/32.png) [@billtubbs](https://discourse.julialang.org/u/billtubbs)\
**Post date:** [June 27, 2020, 7:11pm UTC](https://discourse.julialang.org/t/traceback-details-when-using-include/42165/1 "2020-06-27T19:11:26Z")

</div>

I’m a beginner here so might be missing something, but I’ve noticed that when I try to include a file that has a bug in it (into a Jupyter notebook), the traceback details are not that helpful because they don’t show the line number on the included file where the error occurred.

**Example** (file “CartPoleBTEnv.jl” has a syntax error on line 165):

Code in Jupyter cell:

```julia
include("CartPoleBTEnv.jl")

```

Cell output:

```julia
syntax: extra token "not" after end of expression

Stacktrace:
 [1] include at ./boot.jl:326 [inlined]
 [2] include_relative(::Module, ::String) at ./loading.jl:1038
 [3] include(::Module, ::String) at ./sysimg.jl:29
 [4] include(::String) at ./client.jl:403
 [5] top-level scope at In[1]:1

```

Here is the traceback detail if I run the offending file from the command line:

```julia
ERROR: LoadError: syntax: extra token "not" after end of expression
Stacktrace:
[1] include at ./boot.jl:326 [inlined]
[2] include_relative(::Module, ::String) at ./loading.jl:1038
[3] include(::Module, ::String) at ./sysimg.jl:29
[4] exec_options(::Base.JLOptions) at ./client.jl:267
[5] _start() at ./client.jl:436
in expression starting at /Users/billtubbs/cartpole/CartPoleBTEnv.jl:165

```

---

_[View the full topic](https://discourse.julialang.org/t/traceback-details-when-using-include/42165)._
