ArcticTypescript icon indicating copy to clipboard operation
ArcticTypescript copied to clipboard

'NoneType' object is not subscriptable

Open tomitrescak opened this issue 9 years ago • 3 comments

Hi, the plugin keeps crashing with following message: "'NoneType' object is not subscriptable"

I've isolated the reason to files which reference other files e.g. "/// "

tomitrescak avatar May 20 '15 06:05 tomitrescak

I am attaching a sample project where it is failing.

To replicate:

  1. Open project and the arctic typescript error view
  2. Open file tasks_router.ts and notice, that after second modification you receive "'NoneType' object is not subscriptable" error and plugin is dead
  3. Modify "meteor-typescript-utils.d.ts" and remove the references from that file
  4. Modify and save tsconfig.json
  5. When you start modifying tasks_router.ts all works as normal.

tomitrescak avatar May 20 '15 07:05 tomitrescak

I hope i can take a look today.

Thanks for the example.

Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

Phaiax avatar May 20 '15 09:05 Phaiax

Hm. I can't really reproduce that NoneType exception. But I noticed that you spelled "typeScript" instead of "typescript" in tsconfig.json. Try the "filesGlob" prefrence (refer to README.md). I think there should be at least a Console Message if you try to open files which are not referenced in the tsconfig.json. I'll release an update soon which should do this.

Phaiax avatar May 21 '15 13:05 Phaiax