You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a for-of loop contains a using statement instead of let or const, deno fmt inserts a semicolon after the identifier in the middle of the statement, breaking it half and creating a syntax error.
I haven't had a chance to test different combinations of for-of/for-await-of loops nor await using. I also haven't had a chance to test it with semicolons disabled in fmt config, but I would assume that configuration would likely prevent this from happening.
Here's a quick recording of it occuring in VSCode as described:
Screen.Recording.2024-07-03.at.5.15.12.AM.mov
The text was updated successfully, but these errors were encountered:
Version: Deno 1.44.4+dadc606 (macOS 14.5, M1 Pro)
When a for-of loop contains a
using
statement instead oflet
orconst
, deno fmt inserts a semicolon after the identifier in the middle of the statement, breaking it half and creating a syntax error.I haven't had a chance to test different combinations of for-of/for-await-of loops nor
await using
. I also haven't had a chance to test it with semicolons disabled in fmt config, but I would assume that configuration would likely prevent this from happening.Here's a quick recording of it occuring in VSCode as described:
Screen.Recording.2024-07-03.at.5.15.12.AM.mov
The text was updated successfully, but these errors were encountered: