Everlaw / nbts

NetBeans TypeScript editor plugin
283 stars 46 forks source link

Netbeans 8.2 and errors in file #95

Closed Valantir007 closed 7 years ago

Valantir007 commented 7 years ago

Hi, I installed netbeans 8.2, typescript 2.1.5 and this plugin version 2.1.5.3. When I open file like this:

class Test {
    protected prefix: string; 
}

I got errors in line 2 and 3:

line 2) Expected ; but found prefix protected prefix: string; line 3) Expected eof but found }

Anyone can help me?

jeffrey-easyesi commented 7 years ago

Make sure the file has a .ts extension, not .js

Valantir007 commented 7 years ago

Yes, file has .ts extension

Screens of errors: http://i.imgur.com/M1bpa9e.png

Chris2011 commented 7 years ago

It seems that you switched the mimetype for ts files to js. Go to options -> misc -> Files and choose typescript in both lists

Valantir007 commented 7 years ago

Yes, it fixed my problem. Thx :)