shawnrice / packal-updater

Draft Code for the Alfred package manager
GNU General Public License v3.0
106 stars 14 forks source link

Packal Updater returns zero results #6

Open Jyqft opened 8 years ago

Jyqft commented 8 years ago

For the last month or so, Packal Updater hasn't been returning any results on my end. When I type the keyword "packal", I briefly see the placeholder menu item (Update your packages — Talking to server and processing data), and then it disappears totally, with no results to show.

Here's the log for the workflow upon being run:

[ERROR: input.scriptfilter] XML Parse Error 'The operation couldn’t be completed.    (NSXMLParserErrorDomain error 4.)'. Row (null), Col (null): 'Document is empty' in XML:
Warning: simplexml_load_file(): ../user.workflow.888A7996-63E8-4875-8961-DD04ACC8A6C3/packal/package.xml:3: parser error : xmlParseEntityRef: no name in ~/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.8B7B0794-B543-4F6E-A4BE-10A486094D49/script.php on line 156

Warning: simplexml_load_file():   <name>Files & Folders</name> in ~/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.8B7B0794-B543-4F6E-A4BE-10A486094D49/script.php on line 156

Warning: simplexml_load_file():                ^ in ~/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.8B7B0794-B543-4F6E-A4BE-10A486094D49/script.php on line 156
Jyqft commented 8 years ago

@shawnrice: Any updates on this? I just started using Alfred 3 and the log is also from Alfred 3.

benjamintconnelly commented 8 years ago

+1

SeeHavens commented 8 years ago

I also have no Packal Updater functionality right now. I am running El Capitan and Alfred 3.

shawnrice commented 8 years ago

If it's still the problem above, then try clearing the cache and running again. There was a bad character in there that the current updater didn't account for. I took care of it in the repo side.

I did log several hours on the new version this weekend, so rest assured that progress is happening.

Jyqft commented 8 years ago

What are the steps for clearing the cache?

I tried going to Alfred Preferences > Advanced > Files/Apps > Clear Application Cache, but that didn't work.

Here's the new error log:

Starting debug for 'Packal Updater'

[2016-06-28 12:20:03][ERROR: input.scriptfilter] JSON error: JSON text did not start with array or object and option to allow fragments not set. in JSON:
Warning: simplexml_load_file(): ../user.workflow.888A7996-63E8-4875-8961-DD04ACC8A6C3/packal/package.xml:3: parser error : xmlParseEntityRef: no name in /Users/username/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.81E04915-2CD5-454F-A958-1F9EB45CFD11/script.php on line 156

Warning: simplexml_load_file():   <name>Files & Folders</name> in /Users/username/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.81E04915-2CD5-454F-A958-1F9EB45CFD11/script.php on line 156

Warning: simplexml_load_file():                ^ in /Users/username/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.81E04915-2CD5-454F-A958-1F9EB45CFD11/script.php on line 156
<?xml version="1.0"?>
<items><item uid="updates" arg="updates" valid="no" autocomplete="update"><arg>updates</arg><title>Updates available</title><subtitle>There are 12 updates pending.</subtitle><icon></icon></item><item arg="manifest-update" valid="yes"><arg>manifest-update</arg><title>The manifest is up to date.</title><subtitle>Last updated over a week ago.</subtitle><icon>assets/icons/task-complete.png</icon></item><item uid="open-gui" arg="open-gui" valid="yes"><arg>open-gui</arg><title>Open Graphical 'Application'</title><subtitle>Configure this workflow, Update workflows, and learn about this workflow. (RECOMMENDED)</subtitle><icon>assets/icons/applications-education-miscellaneous.png</icon></item><item uid="blacklist" arg="blacklist" valid="no" autocomplete="blacklist"><arg>blacklist</arg><title>Manage Blacklist</title><subtitle>Configure which workflows Packal updates</subtitle><icon>assets/icons/flag-black.png</icon></item><item arg="" valid="no"><arg></arg><title>Informational</title><subtitle>There are 575 workflows in the manifest, of which, you have 77 installed, and you wrote 0 of those.</subtitle><icon>assets/icons/help-about.png</icon></item><item arg="setup" valid="no" autocomplete="setup"><arg>setup</arg><title>Configure</title><subtitle>Make this workflow work best for you.</subtitle><icon>assets/icons/applications-system.png</icon></item><item arg="install-cron-script" valid="yes"><arg>install-cron-script</arg><title>Install Alfred Cron Script</title><subtitle>Make Alfred Cron check for updates for you.</subtitle><icon>..//icons/timer.png</icon></item></items>
derimagia commented 8 years ago

It doesn't look like this supports Alfred 3 - the plugin is riddled with direct paths to "Alfred 2" directories... I'm unsure shawnrice didn't realize that's what this post is about, I may be missing something.