============================================ test/bad/call-literal.fnl
Compile error in test/bad/call-literal.fnl:1
cannot call literal value
(print (1 6))
^^^^^
* Try checking for typos.
* Try checking for a missing function name.
============================================ test/bad/expected-binding.fnl
Compile error in test/bad/expected-binding.fnl:1
expected binding table
(let 12) ; this one is never going to get more precise
^^^^^^^^
* Try placing a table here in square brackets containing identifiers to bind.
============================================ test/bad/expected-body.fnl
Compile error in test/bad/expected-body.fnl:1
expected body expression
(let [x 1])
^^^
* Try putting some code in the body of this form after the bindings.
============================================ test/bad/expected-even-bindings.fnl
Compile error in test/bad/expected-even-bindings.fnl:1
expected even number of name/value bindings
(let [x 1 y] x)
^^^^^^^
* Try finding where the identifier or value is missing.
============================================ test/bad/expected-function.fnl
Compile error in test/bad/expected-function.fnl:1
expected a function, macro, or special to call
(let [x ()]
^^
* Try removing the empty parentheses.
* Try using square brackets if you want an empty table.
============================================ test/bad/expected-local.fnl
Compile error in test/bad/expected-local.fnl:1
expected local a
(set [a b c] [1 2 3])
^
* Try looking for a typo.
* Try looking for a local which is used out of its scope.
============================================ test/bad/expected-parameters.fnl
Compile error in test/bad/expected-parameters.fnl:1
expected parameters
(fn myfun (a) a)
^^^
* Try adding function parameters as a list of identifiers in brackets.
============================================ test/bad/expected-rest.fnl
Compile error in test/bad/expected-rest.fnl:1
expected rest argument before last parameter
(fn [[a & b c]] c)
^^^^^^^^^
* Try moving & to right before the final identifier when destructuring.
============================================ test/bad/expected-symbol-parameter.fnl
Compile error in test/bad/expected-symbol-parameter.fnl:1
expected symbol for function parameter: 1
(fn [a 1 b] b)
^^^^^^^
* Try changing 1 to an identifier instead of a literal value.
============================================ test/bad/global-alias.fnl
Compile error in test/bad/global-alias.fnl:2
global x_y conflicts with local
(global x_y 2))
^^^
* Try renaming local x_y.
============================================ test/bad/global-conflict.fnl
Compile error in test/bad/global-conflict.fnl:2
global x conflicts with local
(global x 2)
^
* Try renaming local x.
============================================ test/bad/illegal-character.fnl
Parse error in test/bad/illegal-character.fnl:1
illegal character: @
(local xy@z 9)
---------^
* Try deleting or replacing @.
* Try avoiding reserved characters like ", \, ', ~, ;, @, `, and comma.
============================================ test/bad/macro-bind.fnl
Compile error in unknown:?
macro tried to bind y without gensym
* Try changing to y# when introducing identifiers inside macros.
============================================ test/bad/mismatched-closing.fnl
Parse error in test/bad/mismatched-closing.fnl:1
mismatched closing delimiter }, expected ]
(local tbl [}])
------------^
* Try replacing } with ].
* Try deleting }.
* Try adding matching opening delimiter earlier.
============================================ test/bad/multisym-digit.fnl
Parse error in test/bad/multisym-digit.fnl:1
can't start multisym segment with a digit: tbl.2keyed4you
(print tbl.2keyed4you)
-----------^
* Try removing the digit.
* Try adding a non-digit before the digit.
============================================ test/bad/multisym-last.fnl
Parse error in test/bad/multisym-last.fnl:3
method must be last component of multisym: abc:def.xyz
(print (abc:def.xyz))
-----------^
* Try using a period instead of a colon for field access.
* Try removing segments after the colon.
* Try making the method call, then looking up the field on the result.
============================================ test/bad/multisym-malformed.fnl
Parse error in test/bad/multisym-malformed.fnl:1
malformed multisym: abc::def
(print abc::def)
-----------^
* Try ensuring each period or colon is not followed by another period or colon.
============================================ test/bad/multisym-method.fnl
Compile error in test/bad/multisym-method.fnl:2
multisym method calls may only be in call position
(print xyz:abc))
^^^^^^^
* Try using a period instead of a colon to reference a table's fields.
* Try putting parens around this.
============================================ test/bad/no-whitespace-before-open.fnl
Parse error in test/bad/no-whitespace-before-open.fnl:1
expected whitespace before opening delimiter (
(fn [a](+ a 2))
-------^
* Try adding whitespace.
============================================ test/bad/numeric-token.fnl
Parse error in test/bad/numeric-token.fnl:1
could not read number "156-9"
(local x 156-9)
-------------^
* Try removing the non-digit character.
* Try beginning the identifier with a non-digit if it is not meant to be a number.
============================================ test/bad/odd-table.fnl
Parse error in test/bad/odd-table.fnl:1
expected even number of values in table literal
(local f {:a 1 :b 2 :c})
---------------------^
* Try removing a key.
* Try adding a value.
============================================ test/bad/only-compile-time.fnl
Compile error in test/bad/only-compile-time.fnl:2
lists may only be used at compile time
`(print ,x))
^^^^^^^^^^
* Try moving this to inside a macro if you need to manipulate symbols/lists.
* Try using square brackets instead of parens to construct a table.
============================================ test/bad/set-local.fnl
Compile error in test/bad/set-local.fnl:2
expected var x
(set x 3)
^
* Try declaring x using var instead of let/local.
* Try introducing a new local instead of changing the value of x.
============================================ test/bad/special-shadow.fnl
Compile error in test/bad/special-shadow.fnl:1
local + was overshadowed by a special form or macro
(local + 1)
^
* Try renaming local +.
============================================ test/bad/unable-to-bind.fnl
Compile error in test/bad/unable-to-bind.fnl:1
unable to bind number 1
(let [1 (+ -2 3)] 1)
^^^^^^^^^^^^
* Try replacing the number 1 with an identifier.
============================================ test/bad/unable-to-bind-for.fnl
Compile error in test/bad/unable-to-bind-for.fnl:1
unable to bind number 1
(for [1 2 3]
^^^^^^^
* Try replacing the number 1 with an identifier.
============================================ test/bad/unexpected-close-top.fnl
Parse error in test/bad/unexpected-close-top.fnl:1
unexpected closing delimiter ]
(local x 1) ]
------------^
* Try deleting ].
* Try adding matching opening delimiter earlier.
============================================ test/bad/unexpected-vararg.fnl
Compile error in unknown:?
unexpected vararg
* Try putting "..." at the end of the fn parameters if the vararg was intended.
============================================ test/bad/unknown-global.fnl
Compile error in test/bad/unknown-global.fnl:1
unknown global in strict mode: y
(let [x y]
^
* Try looking to see if there's a typo.
* Try using the _G table instead, eg. _G.y if you really want a global.
============================================ test/bad/unused.fnl
Compile error in test/bad/unused.fnl:1
unused local y
(let [x 1 y 2 z 3]
^^^^^^^^^^^^^^^^^^
* Try fixing a typo so y is used.
* Try renaming the local to _y.
============================================ test/bad/vararg-not-last.fnl
Compile error in test/bad/vararg-not-last.fnl:1
expected vararg as last parameter
(fn [... a] a)
^^^^^^^
* Try moving the "..." to the end of the parameter list.