Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cleves0315 opened this issue Aug 18, 2022 · 1 comment
Open

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

cleves0315 opened this issue Aug 18, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@cleves0315
Copy link

cleves0315 commented Aug 18, 2022

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

步骤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 cleves0315 added the bug Something isn't working label Aug 18, 2022
@huidt
Copy link

huidt commented Oct 14, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants