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

undefined in plugins array causes Hyper to refuse to open windows, with no visible errors whatsoever #1862

Closed
2 tasks done
ELLIOTTCABLE opened this issue May 23, 2017 · 6 comments
Labels
good first issue Issue is good for Hyper newcomers

Comments

@ELLIOTTCABLE
Copy link

Issue

Having accidentally commented out the first element of a comma-prefixed plugins array in .hyper.js,

   plugins: [
  //  'hypercwd'
    , 'hyperterm-alternatescroll'
    , 'hyperterm-focus-reporting'
      // ...
   ],

… I discovered that Hyper shows no errors, but refuses to open any windows.

Probably not a common mistake, or a huge problem, but I thought it'd be worth reporting. 😜

@ppot
Copy link
Contributor

ppot commented May 23, 2017

#1509

@albinekb albinekb added the good first issue Issue is good for Hyper newcomers label May 26, 2017
@nitsakh
Copy link
Contributor

nitsakh commented May 31, 2017

Hello, I would like to take up this issue. I haven't contributed to Hyper before. Would the #hyper channel on slack be a good place to get help?
For this issue, is the expected behaviour to ignore the comma and continue loading the other plugins?

@chabou
Copy link
Collaborator

chabou commented Jun 3, 2017

Do not hesitate to ask on #hyper channel.
Yep, we must ignore undefined plugins. Maybe remove undefinedentries in plugin array after config parsing.

@albinekb
Copy link
Contributor

albinekb commented Jun 4, 2017

😂 comma prefixed, nice 👌 My linter would catch that.

Yeah let's just do .filter(Boolean)

nitsakh added a commit to nitsakh/hyper that referenced this issue Jun 12, 2017
nitsakh added a commit to nitsakh/hyper that referenced this issue Jun 12, 2017
albinekb pushed a commit that referenced this issue Jun 13, 2017
…ns list (#1927)

* Addressing issue #1862 by filtering out Boolean values from the plugins list in the config.

* Updating the PR based on review comments.
@albinekb
Copy link
Contributor

Fixed in #1927

@ELLIOTTCABLE
Copy link
Author

<'3

Thanks, @nitsakh! And welcome to open-source!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Issue is good for Hyper newcomers
Projects
None yet
Development

No branches or pull requests

5 participants