zxj5470 / wxapp-intellij

WeChat App plugin is Compatible with IntelliJ IDEA Ultimate, PhpStorm, PyCharm Professional, Rider, RubyMine, WebStorm, AppCode, CLion, GoLand
GNU General Public License v3.0
89 stars 10 forks source link

部分html文件解析阻塞BUG #16

Closed scotox closed 4 years ago

scotox commented 4 years ago

Describe the bug 描述一下bug

运行环境:

描述:

  1. 打开微信小程序工程项目,本插件的功能正常;
  2. 打开其他工程项目时,部分html文件加载阻塞,一直显示Loading...状态;
  3. 禁用本插件后,该部分html文件就能正常加载显示。

To Reproduce 如何复现bug

启用本插件,就会出现此BUG,不能加载html,阻塞在Loading...状态;

禁用本插件,就能正常加载html文件,并显示。

经初始验证测试,加入以下代码时,就会出现该阻塞BUG:

此代码的目的:给 docsify.js 添加自定义样式

<!DOCTYPE html>
<html lang="en">
<head>
......
  <!-- 3. Custom Theme Properties -->
  <style>
    :root {
      /* Reduce the font size */ 
      /* --base-font-size: 14px; */
      --cover-heading-color: #000000
      /* Change the theme color hue (0-360) */
      /* --theme-hue: 325; */

      /* Add sidebar navigation bullets */
      /* --sidebar-nav-link-before-content-l1: '😀'; */
      /* --sidebar-nav-link-before-content-l2: '💩'; */

    }
  </style>
......
</head>

Screenshots 截图

阻塞BUG时的状态:

image

禁用本插件后:

image

Desktop (please complete the following information):

zxj5470 commented 4 years ago

CSS 问题已解决。0.2.7CSS问题更新后还没通过JB审核……请自行下载安装 https://ci.appveyor.com/project/zxj5470/wxapp-intellij/build/artifacts/