bdkjones / CodeKitNova

An Extension to make Nova and CodeKit work seamlessly together.
MIT License
5 stars 2 forks source link

CodeKit launches constantly even with no projects defined #4

Open dcsjapan opened 1 year ago

dcsjapan commented 1 year ago

I have the extension set to:

I have no projects in CodeKit, hence no Nova projects containing any CodeKit config info. Logically there should be no reason for the extension to launch CodeKit no matter how many times I switch between projects. Yet it does, constantly.

It seems to be happening when I open projects in Nova. It's as if the extension is launching CodeKit before it decides whether it needs to take action.

Update: I uninstalled the extension and CodeKit stopped launching when I opened / switched between Nova projects.

bdkjones commented 1 year ago

This is a limitation of the API, currently. Nothing gets added to CodeKit if there's no config file in the Nova project you open, but the app itself starts running if it's not already active. I'd like to eliminate that as well.

dcsjapan commented 1 year ago

Thanks for responding. I suppose this doesn't matter much to programmers who've got CodeKit running all the time, but I got CodeKit mainly to compile SASS on a few projects and don't need it for all my projects.

Here's hoping the good folks at Panic can make those changes to the API. More (and better) extensions can only be a good thing for Nova's future.

bdkjones commented 1 year ago

Yep. If I recall correctly, Nova fires up CodeKit anytime I check to see what you have the plugin configured to do. This line:

var autoAddProject = nova.config.get('com.CodeKitApp.Nova.autoAddProjects’);

appears to fire up the app, even though all I’m doing is loading the configuration to see if you have the plugin set to auto-add projects that have a config file, ALL projects, or no projects. It’s as if Nova is attempting to verify that CodeKit is available on the system by launching it.

On 8 Feb 2023, at 16:12, Dominion @.***> wrote:

Thanks for responding. I suppose this doesn't matter much to programmers who've got CodeKit running all the time, but I got CodeKit mainly to compile SASS on a few projects and don't need it for all my projects.

Here's hoping the good folks at Panic can make those changes to the API. More (and better) extensions can only be a good thing for Nova's future.

— Reply to this email directly, view it on GitHub https://github.com/bdkjones/CodeKitNova/issues/4#issuecomment-1423405188, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHCGZVSBBJVCAMXHPTFKGDWWQY6TANCNFSM6AAAAAAUVDMGJI. You are receiving this because you commented.

dcsjapan commented 1 year ago

That would certainly account for the behavior I noticed. It doesn't really make sense, does it? The extension should be able to check its own settings regardless of whether a third party app is even installed, much less whether it has been launched.