get-windows icon indicating copy to clipboard operation
get-windows copied to clipboard

getOpenWindows() -> parseMac() -> JSON.parse issues

Open tom2strobl opened this issue 1 year ago • 0 comments

My users ran 5 times into this issue:

Error: Error parsing window data
SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at parseMac (<redacted>/node_modules/active-win/lib/macos.js:11:15)
    at AsyncFunction.module.exports.getOpenWindows

It corresponds to this JSON.parse() call: https://github.com/sindresorhus/active-win/blob/27221e5da0a64025bdec8759605694ea84ff9f68/lib/macos.js#L9C1-L16C3

might be related to #170

tom2strobl avatar Aug 28 '23 11:08 tom2strobl