Skip to content

IJulia stacktrace not giving line number #883

@wsmoses

Description

@wsmoses

I have code in IJulia (julia version 1.1.1) that looks like this

include("jlib.jl");

In IJulia I get the following stack trace

syntax: invalid "::" syntax

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

This isn't helpful as it doesn't tell me where my error is. Running julia proper on jlib.jl I get the following

$ ./julia/julia jlib.jl 
ERROR: LoadError: syntax: invalid "::" syntax
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 /mnt/Data/git/LBL19/jlib.jl:61

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions