Skip to content

Want better error location for missing ) in argument lists #14915

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
eschnett opened this issue Feb 2, 2016 · 1 comment
Closed

Want better error location for missing ) in argument lists #14915

eschnett opened this issue Feb 2, 2016 · 1 comment
Labels
error handling Handling of exceptions by Julia or the user

Comments

@eschnett
Copy link
Contributor

eschnett commented Feb 2, 2016

I have some code that apparently has a missing parenthesis somewhere. This is the error message I receive (Julia 0.5 master):

julia> workspace(); using SIMD
ERROR: LoadError: syntax: missing comma or ) in argument list
 in include(Core.#include, ASCIIString) at /Users/eschnett/julia05/lib/julia/sys.dylib:-1
 in include_from_node1(Base.#include_from_node1, ASCIIString) at /Users/eschnett/julia05/lib/julia/sys.dylib:-1
 in eval(Core.#eval, Module, Any) at /Users/eschnett/julia05/lib/julia/sys.dylib:-1
 in require(Base.#require, Symbol) at /Users/eschnett/julia05/lib/julia/sys.dylib:-1
 in eval(Core.#eval, Module, Any) at /Users/eschnett/julia05/lib/julia/sys.dylib:-1
while loading /Users/eschnett/.julia/v0.5/SIMD/src/SIMD.jl, in expression starting on line 1

Note that the error location is the whole module, i.e. "in expression starting on line 1". This is not very useful. Could you output the location of the ( token hat started the argument list?

@tkelman tkelman added the error handling Handling of exceptions by Julia or the user label Feb 2, 2016
@KristofferC
Copy link
Member

Closing as dup of #16163. This is newer but the other one has more examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
error handling Handling of exceptions by Julia or the user
Projects
None yet
Development

No branches or pull requests

3 participants