Closed smarras79 closed 4 years ago
Problem is with the file not the formatter
ClimateMachine.cli ()
should have no space
ClimateMachine.cli()
Shouldn't the formatter identify these issues and fix them?
issues solved.
Shouldn't the formatter identify these issues and fix them?
The formatter only works on syntactically correct julia code. It cannot fix bugs
fair enough, but a space after before a parenthesis is not a bug in the real sense. It is a syntax error due to a wrong format of the text in the file. Anyway, that solved it.
A space before a parenthesis is a bug in julia. Since the code won't run.
julia> f() = nothing
f (generic function with 1 method)
julia> f ()
ERROR: syntax: space before "(" not allowed in "f (" at REPL[2]:1
Stacktrace:
[1] top-level scope at REPL[1]:0
Description
The commit listed below (Merge #1172) has possibly broken
climaformat.jl
as shown in the error trace posted below the commit:Steps to reproduce
Steps to reproduce the behavior:
git log -1
. In the case of bugs from code that has significantly diverged from master, a separate branch can be created and linked.This is PR #1163
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem, otherwise please remove this section. This can be particularly useful for physical simulations.
Environment and error messages
Backtrace of error message
Include output of
julia> versioninfo()
Additional context
Add any other context about the problem here.
For CLIMA developers