minapp-vscode icon indicating copy to clipboard operation
minapp-vscode copied to clipboard

[Bug]: wxml format error: Maximum call stack size exceeded

Open cleves0315 opened this issue 2 years ago • 1 comments

如何复现: 如下问题代码,导致代码自动格式化失败。并抛出如上错误

步骤1: image

步骤2: 这样写法就可以正常工作。 <view class="location-icon">{{a ? '1' : '0'}}</view>

...

期望的表现: image

实际的表现: image

image

插件运行环境

  • 插件版本: 2.4.8
  • VSCode版本: 1.70.1
  • 操作系统(非必须): MacOS Catalina 10.15.5

cleves0315 avatar Aug 18 '22 06:08 cleves0315

遇到了同样问题,然后试着把模板中的三元去掉就好了。还是不建议在模板中写判断了。

huidt avatar Oct 14 '22 06:10 huidt