ERROR: syntax: ssavalue with no def

I get an extremely confusing error (see title) for a short line of code: f((a -> a,); b=1). Not sure, what is wrong here? I tried adding another set of parentheses, but the same error: f(((a -> a),); b=1).

Please post an MWE and your Julia versioninfo() output so we can better assist you:

MWE is in the first post already. versioninfo:


Julia Version 1.1.0
Commit 80516ca202 (2019-01-21 21:24 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Xeon(R) CPU E5-1650 v4 @ 3.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, broadwell)
Environment:
  JULIA_VERSION = 1.1.0
  JULIA_NUM_THREADS = 12
julia> f((a -> a,); b=1)
ERROR: UndefVarError: f not defined
Stacktrace:
 [1] top-level scope at REPL[1]:1

EDIT: In other words, if I can’t copy and paste your “MWE” into a fresh REPL session and reproduce your bug, it’s not an MWE. ← This is still generally correct, but inaccurate in your case. I stand corrected :slightly_smiling_face:

Well, this just means it doesn’t reproduce for you. I get the error quoted in the topic title:

$ julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.1.0 (2019-01-21)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> f((a -> a,); b=1)
ERROR: syntax: ssavalue with no def

Same in IJulia, for example, and with startup-file=no as well.

Fair point in this case. Rebuild/redownload Julia and see if it still occurs.

Can reproduce on Julia 1.1.0, but not on Julia master.

Please open an issue on Github.

1 Like

Done