Git Product home page Git Product logo

Comments (14)

cmsj avatar cmsj commented on May 18, 2024

I did start with your notification module, but agreed with Habbie to drop back to the notify module because the newer one seems to require 10.10 (thus sparking the Issue about module OS versioning ;)

from hammerspoon.

asmagill avatar asmagill commented on May 18, 2024

I'll look closer... I thought about using some of the 10.10 only features, but I thought I finally decided against it... maybe I'm remembering wrong...

On Oct 17, 2014, at 5:54 AM, Chris Jones [email protected] wrote:

I did start with your notification module, but agreed with Habbie to drop back to the notify module because the newer one seems to require 10.10 (thus sparking the Issue about module OS versioning ;)


Reply to this email directly or view it on GitHub #44 (comment).

from hammerspoon.

asmagill avatar asmagill commented on May 18, 2024

I'm adding a 10.8 virtual machine so I can test stuff against it as well as 10.10... looking at the notification code, I think the only 10.9 and 10.10 stuff currently not commented out is a couple of activation types that we can't even request with the module... I'll remove those as well. If I can confirm it works in 10.8 (the first that I believe supported ANY notification center), I'll put this in as a replacement and generate a new pull request. I've been thinking that if I do decide to add the 10.10 stuff, it would be in a separate module that "adds to" this one, so it will be clearly marked and optional.

from hammerspoon.

Habbie avatar Habbie commented on May 18, 2024

❤️

from hammerspoon.

asmagill avatar asmagill commented on May 18, 2024

Hmm... the precompiled version of HS doesn't run under 10.8 (require 10.9+). FWIW, Mjolnir does.

So... how far back do we want to go? I personally don't think we should go back further than 10.8, but I can argue 10.8 both ways... definitely 10.9+

from hammerspoon.

cmsj avatar cmsj commented on May 18, 2024

The decision to set the minimum at 10.9 was pretty arbitrary. I'm not opposed to setting it to 10.8 if it doesn't break anything.

from hammerspoon.

asmagill avatar asmagill commented on May 18, 2024

I don't know what the time frame is on getting 1.0 out, but I'm having problems with notification... Under some conditions, it crashes when sending a new notification after a restart. I think I know what the problem is, but the fix is non-trivial, and I want to rewrite portions of the code anyways to make it cleaner and easier to extend later... I have confirmed that notify does not have this problem, so if this ends up being a hold out to release, then go with notify for now. I'll update this when I'm ready to submit notification for testing.

I also plan on keeping notification able to functionally drop in and replace notify, so it will provide new functionality without breaking backwards compatibility if notify does get released first.

from hammerspoon.

cmsj avatar cmsj commented on May 18, 2024

FWIW, there is no timeframe for 1.0. It'll happen when we're ready for it. There's still a fair amount of documentation/tutorial stuff to write. I don't think the full notification extension is a blocker for 1.0, but it would certainly be nice to have.

from hammerspoon.

cmsj avatar cmsj commented on May 18, 2024

@asmagil how close to landable would you say this module is? We've got at least one crashed bug in hs.notify, and looking at the code I'm not at all happy with the module, so I'm wondering if we can replace it with less effort than fixing it!

from hammerspoon.

asmagill avatar asmagill commented on May 18, 2024

I'll take a look at it this weekend and let you know... iirc the problem was with inconsistent garbage collection, which I understand better now, so hopefully it won't be too difficult to finish.

On Jan 10, 2015, at 5:49 PM, Chris Jones [email protected] wrote:

@asmagil how close to landable would you say this module is? We've got at least one crashed bug in hs.notify, and looking at the code I'm not at all happy with the module, so I'm wondering if we can replace it with less effort than fixing it!


Reply to this email directly or view it on GitHub #44 (comment).

from hammerspoon.

asmagill avatar asmagill commented on May 18, 2024

Ok, I almost have a version of it ready for deploying for testing -- hope to have it ready tonight. I haven't looked at the github site yet, but is there a specific issue entered which details the hs.notify crash you speak of below? I'd like to see if this suffers from a similar issue before putting it out there.

Also not that this does not yet support scheduled notifications (i.e. those that you want sent at a specific time) or allow you to override the banner/alert style set in the Notification System Preferences panel; I plan to add those as a separate and probably third-party module or 2, as they are either 10.10 specific or use undocumented API's or both.

On Jan 10, 2015, at 5:49 PM, Chris Jones [email protected] wrote:

@asmagil how close to landable would you say this module is? We've got at least one crashed bug in hs.notify, and looking at the code I'm not at all happy with the module, so I'm wondering if we can replace it with less effort than fixing it!


Reply to this email directly or view it on GitHub #44 (comment).

from hammerspoon.

asmagill avatar asmagill commented on May 18, 2024

Ok, I think it's ready for public testing/perusal/nit-picking... still need to convert to the more expansive doc style, but that can wait for now...

It's at https://github.com/asmagill/hammerspoon_asm/tree/experiemental https://github.com/asmagill/hammerspoon_asm/tree/experiemental, if you want to take a look at it.

I'm more than happy to merge a hammerspoon only version into the core and issue a pull request, but what name should I give it? I'm leaning towards installing it as hs.notification, leaving hs.notify alone for now... after it's been reviewed and tested a bit by others, we can either drop hs.notify, or replace hs.notify with the portions of hs.notification that apply and have hs.notify require hs.notification. But I'll take your lead and issue the pull then.

On Jan 10, 2015, at 5:49 PM, Chris Jones [email protected] wrote:

@asmagil how close to landable would you say this module is? We've got at least one crashed bug in hs.notify, and looking at the code I'm not at all happy with the module, so I'm wondering if we can replace it with less effort than fixing it!


Reply to this email directly or view it on GitHub #44 (comment).

from hammerspoon.

cmsj avatar cmsj commented on May 18, 2024

Given that the extension provides backwards compatibility, I think we should kick the tyres a bit and then land it as a replacement for hs.notify. If we land it as hs.notification and then migrate it to hs.notify later, we'll confuse people and probably end up carrying a compatibility shim, which will be confusing for new users.

from hammerspoon.

cmsj avatar cmsj commented on May 18, 2024

This is now merged into 0.9.17. Thanks!

from hammerspoon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.