Jade报错:Invalid indentation,you can use tabs or spaces but not both问题
来源:互联网 发布:nginx 外网代理 编辑:程序博客网 时间:2024/05/21 11:04
现象:通过html生成jade文件之后,更改jade文件时,语句没什么问题的情况下,jade文件编译不通过,报错:Invalid indentation,you can use tabs or spaces but not both。
原因:错误信息上已经写得很清楚了,是因为jade文件里出现了多余的空格导致文件编译不通过。
解决方法:在代码编辑器中设置tab替换空格,就ok了。本人用的webstorm,在webstorm中设置方法如下:preference->Code Style->jade->Tabs and Indents->勾选Use Tab charactor。就可以了。
然后,点 view->Active Editor->Show Whitespaces,这样就很方便地查看哪里的空格有问题了。或者直接在preference里面设置:preference->Editor->Appearance->勾选Show whitespaces
PS:
有时候报错信息不准确的,虽然报的是A.jade文件的错误,但是不是A文件有问题,而是B文件有问题。大家智取吧。
- Jade报错:Invalid indentation,you can use tabs or spaces but not both问题
- Jade报错:Invalid indentation,you can use tabs or spaces but not both
- python报错TabError: Inconsistent use of tabs and spaces in indentation
- python inconsistent use of tabs and spaces in indentation
- inconsistent use of tabs and spaces in indentation
- TabError: Inconsistent use of tabs and spaces in indentation
- SyntaxError: inconsistent use of tabs and spaces in indentation
- python TabError: Inconsistent use of tabs and spaces in indentation
- taberror inconsistent use of tabs and spaces in indentation pycharm
- python inconsistent use of tabs and spaces in indentation
- Python报错:ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can
- TabError: Inconsistent use of tabs and spaces in indentation
- You can see me or not,
- 微信接口开发报错invalid credential, access_token is invalid or not latest hint
- django模板报错Requested setting TEMPLATE_DEBUG, but settings are not configured. You must either define
- Python报错:ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that ca
- you have mixed tabs and spaces fix this
- 解决maven3.5.0项目报错“JavaServer Faces 2.2 can not be installed : One or more constraints”问题
- 杭电水题之1713
- 电脑硬件名词基础扫盲
- linux下c++的编译器g++的基本使用
- poj Cows 树状数组
- MATLAB批量读取文件夹中文件,处理后放在新的文件夹中
- Jade报错:Invalid indentation,you can use tabs or spaces but not both问题
- IOS CoreData 多表查询demo解析(二)--插入测试数据
- log4j使用DailyRollingFileAppender
- Linux-3.2.0.24中内核的Netlink测试使用
- Android 4.0新增Space及GridLayout初谈
- IOS CoreData 多表查询demo解析(三)--查询
- 网站优化的idea
- 【DFS】hdu 1426 Sudoku Killer
- Android上使用Box2d