-
Notifications
You must be signed in to change notification settings - Fork 7
Formatter breaks code #28
Comments
I am observing the same within VS Code too. Additionally it takes ages until the formatting has finished in a broken file. Sometimes, the formatting stops with an error message pop-up. |
I am aware of this bug, but I am currently occupied and have no time to fix it. Sorry for now! |
@singularitti I know that it was working. Do you maybe know the version to downgrade for the moment? |
0.2.2. I believe the bug was introduced in #24 |
I have a similar issue not sure whether it's caused by the same bug, but let me report it here: function solve_policies!(𝔸, cmat, lmat, smat, umat, V::AbstractArray{D,2}, param; V̇=nothing)
@unpack 𝔸, cmat, lmat, smat = cache
w, r = @unpack S
for iter in CartesianIndices(V)
nothing
end
end
function policyfunction(Vbb::D, Vbf, r, w, b, param)
if validF & (!validB | (Hcf >= Hcb))
c = cf
elseif validB & (!validF | (Hcb >= Hcf))# & (Hcb >= Hc0)
c = cb
else
c0, l0, s0, u0, Hc0 = solveclSS(r, w, b, param)
end
return c, l, s, u
end will be function solve_policies!(
𝔸,
cmat,
lmat,
smat,
umat,
V::AbstractArray{D,2},
param;
V̇ = nothing,
)
@unpack 𝔸, cmat, lmat, smat = cache
w, r = @unpack S
for iter in CartesianIndices(V)
nothing
end
end
function policyfunction(Vbb::D, Vbf, r, w, b, param)
if validF & (!validB | (Hcf >= Hcb))
c = cf
elseif validB & (!validF | (Hcb >= Hcf))# & (Hcb >= Hc0)
c = cb
else
end
function policyfunction(Vbb::D, Vbf, r, w, b, param)
if validF & (!validB | (Hcf >= Hcb))
c = cf
elseif validB & (!validF | (Hcb >= Hcf))# & (Hcb >= Hc0)
c = cb
else |
I cloned locally and tinkered. Seems like it's sufficient to replace the entire function format_stdin()
print(format_text(String(read(stdin)); ${options}))
end The current version does some funky reading of |
Just submitted a PR that I think fixes this. |
Thanks, for the code from my primary message it works good. |
It also works for my case now. Thanks!
…On Wed, Jun 2, 2021 at 2:01 AM rssdev10 ***@***.***> wrote:
Thanks, for the code from my primary message it works good.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#28 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACX5M43SQRS34HCMHOPQECLTQXJLVANCNFSM4UKVLOHA>
.
|
I was also having this problem and v0.5.1 seems to work fine. |
Following code fragment from the attached file:
is completely broken after applying the formatter from VS Code
formatter.txt
The text was updated successfully, but these errors were encountered: