IntelliJ IDEA 14无法识别空格键模板

菲利普·约翰逊

我正在编写一个简单的流星应用程序,发现IntelliJ IDEA 14.1.4(已安装并启用了Meteor和Handlebars插件)无法识别空格键模板:

谷歌搜索后,我尝试了一下,File > Invalidate Caches/Restart但这没有用。

我还发现,当我运行时Code > Reformat Code,所得的缩进是不正确的。我认为这两个问题都有关。

这是问题的更简单图示:

我该如何调试?

最大限度

Finally, I find the really tricky syntax error in my IntelliJ IDEA 14.
The main problem is the space between {{ and # or /.
{{#if currentUser}} is right in syntax but {{ #if currentUser }} is wrong.
Alike, user {{/if}} instead of {{ /if }}.
So the spacebars usage is really strict here. Actually, there should be no extra spaces.

<template name="home">
    {{#if currentUser}}
        <div class="template-home">
            <div class="well">
                <form class="form-inline syllabus-chooser">
                    <div class="form-group">
                        <select name="syllabusChooser" id="syllabusChooser" class="form-control">
                            <option value="0">(Select a syllabus to edit)</option>
                            {{#each syllabusSelectors}}
                                <option value="{{ value }}">{{ label }}</option>
                            {{/each}}
                        </select>
                    </div>
                    <button type="submit" id="syllabusChooserButton" class="btn btn-default">Edit</button>
                </form>
            </div>

            {{#if displayID}}
                <div class="well">
                    {{#autoForm collection="Syllabuses" doc=selectedSyllabusDoc id="insertSyllabusForm" type="update"}}
                        <fieldset>
                            <div class="row">
                                <div class="col-sm-2">{{> afQuickField name='alphaNumber' placeholder="ICS 101"}}</div>
                                <div class="col-sm-2">{{> afQuickField name='creditHours' placeholder="3"}}</div>
                                <div class="col-sm-2">{{> afQuickField name='prerequisites' placeholder="311 or consent"}}</div>
                                <div class="col-sm-6">{{> afQuickField name='title' placeholder="Course title"}}</div>
                            </div>
                            <div class="row">
                                <div class="col-sm-6">{{> afQuickField name='instructor' rows=2 placeholder="Name\noffice address, email"}}</div>
                                <div class="col-sm-6">{{> afQuickField name='textbooks' rows=2 placeholder= "Textbook title and author, or 'none'"}}</div>
                            </div>
                            <div class="row">
                                <div class="col-sm-6">{{> afQuickField name='objectives' rows=4 placeholder='* Students have ...\n* Students can ...\n* Students can ....'}}</div>
                                <div class="col-sm-6">{{> afQuickField name='policies' rows=4 placeholder="Can be 'none'."}}</div>
                            </div>
                            <div class="row">
                                <div class="col-sm-6">{{> afQuickField name='description' rows=4 placeholder='Insert course catalog description: http://www.catalog.hawaii.edu/courses/departments/ics.htm'}}</div>
                                <div class="col-sm-6">{{> afQuickField name='grading' rows=4 placeholder="5 homework assignments (10% each)\n1 midterm (15%)\n1 final exam (15%)\n1 final project (20%)"}}</div>
                            </div>
                            <div class="row">
                                <div class="col-sm-6">{{> afFormGroup name='learningOutcomes' type="select-checkbox"}}</div>
                                <div class="col-sm-6">
                                    {{> afQuickField name='courseLearningOutcomes' rows=12 placeholder="* Learning Outcome 1\n* Learning outcome 2"}}
                                    {{> afQuickField name='schedule' rows=12 placeholder="Week 1: ...\nWeek 2: ...\nWeek 3: ..."}}
                                </div>
                            </div>
                        </fieldset>
                        <button type="submit" class="btn btn-default btn-success btn-block">Save</button>
                    {{/autoForm}}
                </div>
            {{/if}}
        </div>

        <div class="well" style="padding: 0; max-height: 100px; overflow-y: auto">
            <ul>
                {{#each editStatusList}}
                    <li>Started editing {{ syllabusName }} {{ editTimestamp }}  {{#if editFinished}} ... finished. {{/if}} </li>
                {{/each}}
            </ul>
        </div>
    {{/if}}
</template>

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

无法在Intellij IDEA 13中配置Scala

来自分类Dev

Intellij IDEA无法从JAVA生成WSDL

来自分类Dev

如何使IntelliJ IDEA识别宏创建的代码?

来自分类Dev

IntelliJ IDEA 13无法识别Maven镜像

来自分类Dev

IntelliJ IDEA无法解析Spring导入的文件

来自分类Dev

Intellij Idea Tomcat和Spring MVC模板

来自分类Dev

IntelliJ IDEA 14:什么是捕获内存快照

来自分类Dev

Ubuntu的IntelliJ IDEA 14非常慢

来自分类Dev

Intellij Idea无法识别ivy.xsd

来自分类Dev

IntelliJ IDEA无法看到Lombok生成的代码

来自分类Dev

Intellij IDEA插件无法运行

来自分类Dev

Intellij Idea无法识别python 3中本地类的导入

来自分类Dev

IntelliJ IDEA 14中的Maven配置

来自分类Dev

Apache Ant-Intellij Idea社区无法识别for循环命令

来自分类Dev

无法保存设置:IntelliJ IDEA

来自分类Dev

在Intellij IDEA中支持Pug模板引擎

来自分类Dev

Intellij IDEA无法解决React Native导入

来自分类Dev

IntelliJ IDEA 2020.1.1无法启动

来自分类Dev

无法从IntelliJ IDEA启动Tomcat

来自分类Dev

在IntelliJ IDEA 14中启用sbt插件

来自分类Dev

Intellij Idea无法识别ivy.xsd

来自分类Dev

intellij Idea与Ideavim无法键入

来自分类Dev

Intellij IDEA插件无法运行

来自分类Dev

Apache Ant-Intellij Idea社区无法识别for循环命令

来自分类Dev

IntelliJ IDEA 15无法识别java.time

来自分类Dev

IntelliJ IDEA无法识别forEach调用中的方法递归

来自分类Dev

Intellij IDEA:无法识别的 VM 选项“UseConcMarkSweepGC”

来自分类Dev

在 IntelliJ Idea 中无法识别 JUnit 5 测试

来自分类Dev

IntelliJ IDEA 更新时无法识别的区域设置