Skip to content
This repository was archived by the owner on Dec 25, 2023. It is now read-only.

Typescript extension crashing Nova #74

Closed
bdielman opened this issue Sep 19, 2020 · 9 comments
Closed

Typescript extension crashing Nova #74

bdielman opened this issue Sep 19, 2020 · 9 comments
Labels
bug Something isn't working nova-core Something is (probably) Nova's fault

Comments

@bdielman
Copy link

After installing the Typescript plugin Nova consistently crashes. Sometimes when I click on a file in the file browser after opening the app, other times just a few seconds after opening the app without doing anything. I have had other extensions installed along side Typescript and get the crash. I also get the crash when all other extensions except Typescript are disabled.

Expected behavior
Just to be able to use this plugin. 😄

Environment (please complete the following information):

  • Nova version: 1.0
  • Extension version: 1.6.2
  • TypeScript version: 3.9.5
  • macOS version: 10.15.6
  • NodeJS information:
    • node version: 12.8.0
    • npm version: 6.10.2
    • installation method: Nodenv

Extension console output

TypeScript[23:35:28.769000] activating...
TypeScript[23:35:29.977000] using tslib at: /Users/dielman/Library/Application Support/Nova/Extensions/apexskier.typescript/node_modules/typescript/lib
TypeScript[23:35:30.016000] activated
@bdielman bdielman added the bug Something isn't working label Sep 19, 2020
@apexskier
Copy link
Owner

apexskier commented Sep 20, 2020

Since the extension has activated successfully (according to the extension console) and this is a hard crash, it's most likely a Nova issue, and something I'm not going to be able to figure out without a local reproduction (which I don't have). The most helpful thing would be for you to clone this repo, open the extension locally, and just comment out code to binary search to try to identify what's causing the crash.

I don't expect it's Nodenv causing the issue, since that would most likely cause issues that would crash before "activated" shows up.

@apexskier

This comment has been minimized.

@bdielman
Copy link
Author

This makes sense! Hope they get a fix out soon.

Thanks for looking into this!

@apexskier
Copy link
Owner

I'm now experiencing this after installing node with asdf to debug #84 and working around the problem in #64 (comment), so I now think it's a separate issue.

@benvp
Copy link

benvp commented Sep 23, 2020

I'm having the same issue using asdf for node. @apexskier regarding the comment you linked I do not really understand how to get it working. The automatically generated env variables from the login shell within nova seem correct to me. Do you mind to provide some guidance? :)

@joshdick
Copy link

joshdick commented Sep 23, 2020

Having the same issue with Nova 1.1 and v1.7.0 of this extension. Opening any .ts file with the extension enabled reliably causes an instant crash. I'm using zsh as the shell and nodenv for my Node installation, which does correctly appear as part of $PATH in Nova's Preferences -> Tools.

@bdielman
Copy link
Author

Having the same issue with Nova 1.1 and v1.7.0 of this extension. Opening any .ts file with the extension enabled reliably causes an instant crash. I'm using zsh as the shell and nodenv for my Node installation, which does correctly appear as part of $PATH in Nova's Preferences -> Tools.

Same exact setup and issue.

@apexskier
Copy link
Owner

apexskier commented Sep 24, 2020

FYI, I'm hiding a few comments here related to #64 and shell env variables, which I now think is a distinct issue (since I started experiencing crashes myself). fyi @benvp

@bdielman
Copy link
Author

The latest update for Nova (1.2) seems to have fixed the issue! 🎉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working nova-core Something is (probably) Nova's fault
Projects
None yet
Development

No branches or pull requests

4 participants