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

Broken on MacOS Ventura #322

Closed
chaosarium opened this issue Dec 25, 2022 · 6 comments
Closed

Broken on MacOS Ventura #322

chaosarium opened this issue Dec 25, 2022 · 6 comments
Labels
bug Existing bug

Comments

@chaosarium
Copy link

Bug description

❯ thumbsup --input ./input --output ./out --log debug

/usr/local/lib/node_modules/thumbsup/node_modules/macos-release/index.js:27
        const [name, version] = nameMap.get(release);
                                ^

TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
    at macosRelease (/usr/local/lib/node_modules/thumbsup/node_modules/macos-release/index.js:27:26)
    at osName (/usr/local/lib/node_modules/thumbsup/node_modules/os-name/index.js:21:18)
    at new Insight (/usr/local/lib/node_modules/thumbsup/node_modules/insight/lib/index.js:37:13)
    at new Analytics (/usr/local/lib/node_modules/thumbsup/bin/analytics.js:11:20)
    at Object.<anonymous> (/usr/local/lib/node_modules/thumbsup/bin/thumbsup.js:28:19)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)

Steps to reproduce

  1. Update to MacOS Ventura (13)
  2. Attempt to run thumbsup --input ./input --output ./out

Potential fix

In node_modules/thumbsup/node_modules/macos-release/index.js:27, adding the line [22, ['Ventura', '13']], to before [21, ['Monterey', '12']], temporarily fixes the issue

@chaosarium chaosarium added the bug Existing bug label Dec 25, 2022
@aellwein
Copy link

Had a same issue today.
@rprieto why is this macos-release package needed anyway? It always breaks things up with every major MacOS release cause thumbsup always needs to keep it current.

@rprieto
Copy link
Member

rprieto commented Jan 4, 2023

Hi, thanks for raising this. Unfortunately macos-release is not a direct dependency, it’s quite deep in the chain.

I see the package itself now supports Ventura, I will try updating all dependencies to see if the latest version is pulled down.

@rprieto
Copy link
Member

rprieto commented Jan 4, 2023

This dependency is coming from the insight package, which uses an old version of macos-release. insights is used to report optional & anonymous usage metrics (OS version, Gallery size...). I will raise an issue. If this doesn't work I'll have to consider dropping the metrics, although it's been useful to understand what use-cases to focus on.

@aellwein
Copy link

aellwein commented Jan 5, 2023

@rprieto thank you!

@mischah
Copy link

mischah commented Jan 10, 2023

Here is the upstream issue in case someone wants to fix this:
yeoman/insight#83

@rprieto
Copy link
Member

rprieto commented Apr 13, 2023

For now I have removed usage stats from thumbsup.
We can re-introduce them again if needed in the future.

ebardsley pushed a commit to ebardsley/thumbsup that referenced this issue May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Existing bug
Projects
None yet
Development

No branches or pull requests

4 participants