简体   繁体   English

Typescript验证程序在我的角度IDE Eclipse插件中不起作用

[英]Typescript validator not working in my angular IDE Eclipse Plugin

If i enter wrong code in typescript editor it doesn't show me any compile time error. 如果我在打字稿编辑器中输入错误的代码,则不会显示任何编译时错误。 I don't know why typescript validator doesn't work. 我不知道为什么打字稿验证器不起作用。 I am using eclipse Neon.3 Release (4.6.3) with angular IDE plugin. 我正在使用带有角度IDE插件的Eclipse Neon.3 Release(4.6.3)。 Do i have to add anything further to support typescript validator please let me know. 我是否还需要添加其他内容以支持打字稿验证器,请告诉我。

在此处输入图片说明

I'm not sure which errors are not being flagged for you but there is a setting in the project properties (TypeScript preference page) for enabling TSlint validation if tslint.json is present in the project. 我不确定没有为您标记哪些错误,但是如果项目中存在tslint.json,则在项目属性(TypeScript首选项页面)中会有一个设置用于启用TSlint验证。 This is a per-project setting, not available for the workspace as a whole. 这是每个项目的设置,不适用于整个工作空间。

If this doesn't help, perhaps you could give an example of the type of error that is not being flagged? 如果这样做没有帮助,也许您可​​以举一个没有被标记的错误类型的例子? Or is it that the errors aren't being flagged but do appear in the Markers or Problems view? 还是不是没有标记错误,而是在“标记”或“问题”视图中显示了错误? Try a fresh workspace and a new Angular project (or other project with Typescript files) just to check if this may be some corruption in your existing workspace settings. 尝试一个新的工作区和一个新的Angular项目(或其他带有Typescript文件的项目)只是为了检查这是否可能对您现有的工作区设置造成损坏。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM