# End of line ParseError

**URL:** <https://discourse.julialang.org/t/end-of-line-parseerror/133273>\
**Category:** General Usage\
**Tags:** question\
**Created:** [October 19, 2025, 1:54am UTC](https://discourse.julialang.org/t/end-of-line-parseerror/133273 "2025-10-19T01:54:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![WalterMadelim](https://avatars.discourse-cdn.com/v4/letter/w/3e96dc/32.png) [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Post date:** [October 19, 2025, 1:54am UTC](https://discourse.julialang.org/t/end-of-line-parseerror/133273/1 "2025-10-19T01:54:18Z")

</div>

I find this ParseError on a windows machine, can you reproduce?

```julia
function add_circuit_breaker_pair_module!(model, P_BUS_1, P_BUS_2, 
    p_ES, G, pLent, pEV_1, pU_1, pAC_1, D_1, 
    pEV_2, pU_2, pAC_2, D_2)
    pBus_1 = v(model, [1:T], lower_bound = -P_BUS_1, upper_bound = P_BUS_1)
end;

```

copy this code, paste to REPL

```julia
julia> function add_circuit_breaker_pair_module!(model, P_BUS_1, P_BUS_2,
ERROR: ParseError:
# Error @ REPL[1]:1:67
function add_circuit_breaker_pair_module!(model, P_BUS_1, P_BUS_2, 
# └ ── Expected `)` or `,`
Stacktrace:
 [1] top-level scope
   @ REPL:1

```

Seems it’s a new error in 1.12.1, I haven’t seen this before.

---

<div class="post-metadata">

**Author:** ![WalterMadelim](https://avatars.discourse-cdn.com/v4/letter/w/3e96dc/32.png) [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Post date:** [October 19, 2025, 2:03am UTC](https://discourse.julialang.org/t/end-of-line-parseerror/133273/2 "2025-10-19T02:03:24Z")

</div>

By the way, why do this still persist in 1.12? (I proposed this a few months ago)

```julia
julia> let x = 1 #
ERROR: ParseError:
# Error @ REPL[1]:1:10
let x = 1 #
# └ ── premature end of input
Stacktrace:
 [1] top-level scope
   @ REPL:1

```

Occurs both in Linux and Windows

---

<div class="post-metadata">

**Author:** ![Benny](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@Benny](https://discourse.julialang.org/u/Benny)\
**Post date:** [October 19, 2025, 2:35am UTC](https://discourse.julialang.org/t/end-of-line-parseerror/133273/3 "2025-10-19T02:35:37Z")

</div>

> [@WalterMadelim](#):
>
> can you reproduce?

Yes on Windows. Pasting the whole method definition directly or into a quote is fine on 1.11.7, but throws `ParseError` on 1.12.1; pasting into a multi-line string or pasting individual lines between manual newlines is fine either way.

> [@WalterMadelim](#):
>
> why do this still persist in 1.12? (I proposed this a few months ago)

Did you open an issue? If so, you can see what progress has been made on it, if any.

---

<div class="post-metadata">

**Author:** ![WalterMadelim](https://avatars.discourse-cdn.com/v4/letter/w/3e96dc/32.png) [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Post date:** [October 19, 2025, 3:51am UTC](https://discourse.julialang.org/t/end-of-line-parseerror/133273/4 "2025-10-19T03:51:10Z")

</div>

opened here

> <https://github.com/JuliaLang/JuliaSyntax.jl/issues/602>
>
> copy the following code
> \`\`\`julia
> function add\_circuit\_breaker\_pair\_module!(model…, P\_BUS\_1, P\_BUS\_2, 
> p\_ES, G, pLent, pEV\_1, pU\_1, pAC\_1, D\_1, 
> pEV\_2, pU\_2, pAC\_2, D\_2)
> pBus\_1 = v(model, \[1:T\], lower\_bound = -P\_BUS\_1, upper\_bound = P\_BUS\_1)
> end;
> \`\`\`
> paste to a REPL:
> \`\`\`julia
> julia\> function add\_circuit\_breaker\_pair\_module!(model, P\_BUS\_1, P\_BUS\_2,
> ERROR: ParseError:
> \`\`\`
> windows, julia 1.12.1
> from https://discourse.julialang.org/t/end-of-line-parseerror/133273?u=waltermadelim

> [@Benny](#):
>
> Did you open an issue?

[fix: skip zero-width error tokens in last\_non\_whitespace\_byte by pfitzseb · Pull Request #566 · JuliaLang/JuliaSyntax.jl](https://github.com/JuliaLang/JuliaSyntax.jl/pull/566)

---

<div class="post-metadata">

**Author:** ![Benny](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@Benny](https://discourse.julialang.org/u/Benny)\
**Post date:** [October 19, 2025, 4:00am UTC](https://discourse.julialang.org/t/end-of-line-parseerror/133273/5 "2025-10-19T04:00:18Z")

</div>

Any idea what versions that fix was released on, if any? I don’t know how to tell exactly, looks like it only made its way to the main Julia repo 2 days ago?
