Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'NoneType' object is not subscriptable #54

Open
tomitrescak opened this issue May 20, 2015 · 3 comments
Open

'NoneType' object is not subscriptable #54

tomitrescak opened this issue May 20, 2015 · 3 comments

Comments

@tomitrescak
Copy link

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
Copy link
Author

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.

@Phaiax
Copy link
Owner

Phaiax commented May 20, 2015

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
Copy link
Owner

Phaiax commented May 21, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants