julienXX / terminal-notifier

Send User Notifications on macOS from the command-line.
Other
6.36k stars 331 forks source link

Error when using Gulp-notify #266

Closed JayBox325 closed 5 years ago

JayBox325 commented 5 years ago

Error in Gulp on new MacBook setup:

[18:10:45] gulp-notify: [Error in notifier] Error in plugin "gulp-notify"
[1] Message:
[1]     2019-02-20 18:10:35.319 terminal-notifier[1271:20496] isPrefsCreateCacheFromEnabledAndDefaultInputSources - can't find anything from GetInputSourceEnabledPrefs, use defaultASCIIKeyLayoutDict = <CFBasicHash 0x7fd3c674ba40 [0x7fff893dd8f0]>{type = mutable dict, count = 3,
[1] entries =>
[1]     0 : <CFString 0x7fff8944beb8 [0x7fff893dd8f0]>{contents = "InputSourceKind"} = <CFString 0x7fff894913f8 [0x7fff893dd8f0]>{contents = "Keyboard Layout"}
[1]     1 : <CFString 0x7fff8947d538 [0x7fff893dd8f0]>{contents = "KeyboardLayout ID"} = <CFNumber 0x237 [0x7fff893dd8f0]>{value = +2, type = kCFNumberSInt64Type}
[1]     9 : <CFString 0x7fff89446bb8 [0x7fff893dd8f0]>{contents = "KeyboardLayout Name"} = British
[1] }

Please check everything that applies to your issue:

To help us debug your issue please include:

I have never specifically installed it, but I'm using yarn/npm to install gulp packages in a project including gulp-notify.

I am not getting the issue, but a colleague on a brand new Macbook is.

Thanks!

Gemeinagent commented 5 years ago

This is an error by Apple, not Terminal Notifier.

I have found a comment on SO which had the same problem with osascript. https://stackoverflow.com/questions/53603246/strange-error-running-osascript-e-command-on-macos-mojave

Solution was to install another keyboard in preferences (doesn't matter which one) and the error message is gone. You can deinstall it afterwards.

julienXX commented 5 years ago

Thanks @Gemeinagent !

organicweb commented 5 years ago

+1 Works for me too thanks @Gemeinagent !