spamwax / alfred-pinboard-rs

Alfred Workflow for Pinboard (Rust)
Other
280 stars 13 forks source link

Afred 5 no results show #143

Closed waynehoover closed 2 years ago

waynehoover commented 2 years ago

In Alfred 5, no results are returned for any query.

It looks like it might be related to this warning I'm getting in the debug console:

WARNING: Rusty Pin[Script Filter] XML Parse Error 'The operation couldn’t be completed. (NSXMLParserErrorDomain error 65.)'. Row 7, Col 24: 'attributes construct error' in XML:

spamwax commented 2 years ago

Are you using the latest release? If yes, then I need to see the full output of the debug window when you get this error

waynehoover commented 2 years ago

latest version 5.0.0 EA10 [2047]

[19:27:08.576] Logging Started...
[19:27:13.278] Rusty Pin[Script Filter] Queuing argument 's'
[19:27:13.550] Rusty Pin[Script Filter] Script with argv 's' finished
[19:27:13.553] STDERR: Rusty Pin[Script Filter] [2022-07-10T00:27:13Z DEBUG alfred_pinboard_rs] Parsing input arguments.
[2022-07-10T00:27:13Z DEBUG alfred_pinboard_rs] Checking if alfred_workflow_* env. variables
[2022-07-10T00:27:13Z DEBUG alfred_pinboard_rs] Deciding on which command branch
[2022-07-10T00:27:13Z DEBUG alfred_pinboard_rs] Starting in setup
[2022-07-10T00:27:13Z DEBUG alfred_pinboard_rs::workflow_config] Starting in setup
[2022-07-10T00:27:13Z DEBUG alfred_pinboard_rs::workflow_config] Starting in get_workflow_dirs
[2022-07-10T00:27:13Z DEBUG alfred_pinboard_rs::workflow_config] cache_dir: /Users/wayne/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs
[2022-07-10T00:27:13Z DEBUG alfred_pinboard_rs::workflow_config] data_dir: /Users/wayne/Library/Application Support/Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs
[2022-07-10T00:27:13Z DEBUG alfred_pinboard_rs::workflow_config] Starting in read
[2022-07-10T00:27:13Z DEBUG alfred_pinboard_rs::workflow_config] Starting in get_alfred_version
[2022-07-10T00:27:13Z DEBUG rusty_pin::pinboard] pinb::new: calling CachedData::new
[2022-07-10T00:27:13Z DEBUG rusty_pin::pinboard::cached_data] new: starting
[2022-07-10T00:27:13Z DEBUG rusty_pin::pinboard::cached_data]   cached_dir: "/Users/wayne/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs"
[2022-07-10T00:27:13Z DEBUG rusty_pin::pinboard::cached_data] create_cache_dir: starting
[2022-07-10T00:27:13Z DEBUG rusty_pin::pinboard::cached_data]   success create_cache_dir: "/Users/wayne/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs"
[2022-07-10T00:27:13Z DEBUG rusty_pin::pinboard::cached_data] load_cache_data_from_file: starting
[2022-07-10T00:27:13Z DEBUG rusty_pin::pinboard::cached_data] read_cached_pins: starting
[2022-07-10T00:27:13Z DEBUG rusty_pin::pinboard::cached_data] read_cached_tags: starting
[2022-07-10T00:27:13Z DEBUG rusty_pin::pinboard::cached_data] cache_ok: starting
[2022-07-10T00:27:13Z DEBUG rusty_pin::pinboard] pinb::new: cache not missing
[2022-07-10T00:27:13Z DEBUG rusty_pin::pinboard] enable_fuzzy_search: starting.
[2022-07-10T00:27:13Z DEBUG rusty_pin::pinboard] enable_tag_only_search: starting.
[2022-07-10T00:27:13Z DEBUG rusty_pin::pinboard] enable_private_new_pin: starting.
[2022-07-10T00:27:13Z DEBUG rusty_pin::pinboard] enable_toread_new_pin: starting.
[2022-07-10T00:27:13Z DEBUG alfred_rs::data] loading from: /Users/wayne/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs/user.workflow.0132EE48-4D8A-4135-9EC5-D81B7E4DEE98-Rusty_Pin-updater.json
[2022-07-10T00:27:13Z DEBUG alfred_rs::updater] entering init
[2022-07-10T00:27:13Z DEBUG alfred_rs::updater] last check: 2022-07-09 19:27:11.328305 UTC
[2022-07-10T00:27:13Z DEBUG alfred_rs::updater]   calling read_last_check_status
[2022-07-10T00:27:13Z DEBUG alfred_rs::data] loading from: /Users/wayne/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs/last_check_status_async.json
[2022-07-10T00:27:13Z DEBUG alfred_rs::updater]   read last_check_status: UpdateInfo { version: Version { major: 0, minor: 16, patch: 8, pre: [], build: [] }, fetched_at: Some(2022-07-09T19:27:11.328305Z), downloadable_url: "https://github.com/spamwax/alfred-pinboard-rs/releases/download/0.16.8/AlfredPinboardRust-0.16.8.alfredworkflow", _priv: () }
[2022-07-10T00:27:13Z DEBUG alfred_rs::updater]   status: Ok(None)
[2022-07-10T00:27:13Z DEBUG alfred_rs::updater] successfully set the state of release worker
[2022-07-10T00:27:13Z DEBUG alfred_pinboard_rs] Workflow Config: Config { alfred_version: Version { major: 5, minor: 0, patch: 0, pre: Prerelease("EA10") }, pins_to_show: 10, tags_to_show: 10, tag_only_search: false, fuzzy_search: true, private_new_pin: true, toread_new_pin: false, suggest_tags: false, page_is_bookmarked: true, show_url_vs_tags: true, auto_update_cache: true, update_time: 2022-05-07T22:34:12.522672Z, workflow_data_dir: "/Users/wayne/Library/Application Support/Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs", workflow_cache_dir: "/Users/wayne/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs" }
[2022-07-10T00:27:13Z DEBUG alfred_pinboard_rs::commands::list] Starting in list::process
[2022-07-10T00:27:13Z DEBUG rusty_pin::pinboard] search_list_of_tags: starting.
[2022-07-10T00:27:13Z DEBUG rusty_pin::pinboard::cached_data] cache_ok: starting
[2022-07-10T00:27:13Z DEBUG alfred_pinboard_rs::commands::list] Found 104 tags.
[2022-07-10T00:27:13Z DEBUG alfred_pinboard_rs::commands::list] alfred_items hast 10 entities
[2022-07-10T00:27:13Z DEBUG alfred_pinboard_rs::commands::list] exec_counter: 1
[2022-07-10T00:27:13Z DEBUG alfred_pinboard_rs::commands::browser_info] Starting in browser_info::get
[2022-07-10T00:27:13Z DEBUG alfred_pinboard_rs::commands::browser_info]   osascript_result: {" fd850fc2e63511e79f720023dfdf24ec "}

[2022-07-10T00:27:13Z DEBUG alfred_pinboard_rs::commands::browser_info]   tab_info: Err(ErrorMessage { msg: "Cannot get browser's URL" })
[2022-07-10T00:27:13Z DEBUG alfred_rs::data] saving to: /Users/wayne/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs/bookmark_exists.json
[2022-07-10T00:27:13Z DEBUG alfred_pinboard_rs::commands::list] bookmark found from browser info: false
[2022-07-10T00:27:13Z DEBUG alfred_pinboard_rs::commands] Starting in write_output_items
[2022-07-10T00:27:13Z DEBUG alfred_pinboard_rs::commands] Starting in get_upgrade_item
[2022-07-10T00:27:13Z DEBUG alfred_rs::data] saving to: /Users/wayne/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs/user.workflow.0132EE48-4D8A-4135-9EC5-D81B7E4DEE98-Rusty_Pin-updater.json
[2022-07-10T00:27:13Z INFO  alfred_pinboard_rs::commands] Update UNAVAILABLE: You have the latest version of workflow!
[2022-07-10T00:27:13Z DEBUG alfred_pinboard_rs::workflow_config] Starting in can_use_json
[2022-07-10T00:27:13Z DEBUG alfred_pinboard_rs] variables: {"apr_execution_counter": "1", "username": "blissofbeing"}
[19:27:13.557] Rusty Pin[Script Filter] <?xml version="1.0" encoding="UTF-8"?>
<items>
    <item arg="s" autocomplete="s">
        <title>s</title>
        <subtitle>NEW TAG</subtitle>
        <icon>tag.png</icon>
        <mod key="alt"<mod subtitle="Post the bookmark as PUBLIC."/>
        <mod key="ctrl"<mod subtitle="Mark the bookmark as TOREAD."/>
    </item>
    <item arg="blockstack" autocomplete="blockstack">
        <title>blockstack</title>
        <subtitle>5</subtitle>
        <icon>tag.png</icon>
        <mod key="alt"<mod subtitle="Post the bookmark as PUBLIC."/>
        <mod key="ctrl"<mod subtitle="Mark the bookmark as TOREAD."/>
    </item>
    <item arg="jamstack" autocomplete="jamstack">
        <title>jamstack</title>
        <subtitle>5</subtitle>
        <icon>tag.png</icon>
        <mod key="ctrl"<mod subtitle="Mark the bookmark as TOREAD."/>
        <mod key="alt"<mod subtitle="Post the bookmark as PUBLIC."/>
    </item>
    <item arg="JavaScript" autocomplete="JavaScript">
        <title>JavaScript</title>
        <subtitle>4</subtitle>
        <icon>tag.png</icon>
        <mod key="alt"<mod subtitle="Post the bookmark as PUBLIC."/>
        <mod key="ctrl"<mod subtitle="Mark the bookmark as TOREAD."/>
    </item>
    <item arg="js" autocomplete="js">
        <title>js</title>
        <subtitle>4</subtitle>
        <icon>tag.png</icon>
        <mod key="alt"<mod subtitle="Post the bookmark as PUBLIC."/>
        <mod key="ctrl"<mod subtitle="Mark the bookmark as TOREAD."/>
    </item>
    <item arg="keebs" autocomplete="keebs">
        <title>keebs</title>
        <subtitle>4</subtitle>
        <icon>tag.png</icon>
        <mod key="alt"<mod subtitle="Post the bookmark as PUBLIC."/>
        <mod key="ctrl"<mod subtitle="Mark the bookmark as TOREAD."/>
    </item>
    <item arg="membership" autocomplete="membership">
        <title>membership</title>
        <subtitle>4</subtitle>
        <icon>tag.png</icon>
        <mod key="alt"<mod subtitle="Post the bookmark as PUBLIC."/>
        <mod key="ctrl"<mod subtitle="Mark the bookmark as TOREAD."/>
    </item>
    <item arg="rails" autocomplete="rails">
        <title>rails</title>
        <subtitle>4</subtitle>
        <icon>tag.png</icon>
        <mod key="ctrl"<mod subtitle="Mark the bookmark as TOREAD."/>
        <mod key="alt"<mod subtitle="Post the bookmark as PUBLIC."/>
    </item>
    <item arg="SaaS" autocomplete="SaaS">
        <title>SaaS</title>
        <subtitle>3</subtitle>
        <icon>tag.png</icon>
        <mod key="ctrl"<mod subtitle="Mark the bookmark as TOREAD."/>
        <mod key="alt"<mod subtitle="Post the bookmark as PUBLIC."/>
    </item>
    <item arg="analytics" autocomplete="analytics">
        <title>analytics</title>
        <subtitle>3</subtitle>
        <icon>tag.png</icon>
        <mod key="alt"<mod subtitle="Post the bookmark as PUBLIC."/>
        <mod key="ctrl"<mod subtitle="Mark the bookmark as TOREAD."/>
    </item>
</items>
[19:27:13.560] WARNING: Rusty Pin[Script Filter] XML Parse Error 'The operation couldn’t be completed. (NSXMLParserErrorDomain error 65.)'. Row 7, Col 23: 'attributes construct error' in XML:
<?xml version="1.0" encoding="UTF-8"?>
<items>
    <item arg="s" autocomplete="s">
        <title>s</title>
        <subtitle>NEW TAG</subtitle>
        <icon>tag.png</icon>
        <mod key="alt"<mod subtitle="Post the bookmark as PUBLIC."/>
        <mod key="ctrl"<mod subtitle="Mark the bookmark as TOREAD."/>
    </item>
    <item arg="blockstack" autocomplete="blockstack">
        <title>blockstack</title>
        <subtitle>5</subtitle>
        <icon>tag.png</icon>
        <mod key="alt"<mod subtitle="Post the bookmark as PUBLIC."/>
        <mod key="ctrl"<mod subtitle="Mark the bookmark as TOREAD."/>
    </item>
    <item arg="jamstack" autocomplete="jamstack">
        <title>jamstack</title>
        <subtitle>5</subtitle>
        <icon>tag.png</icon>
        <mod key="ctrl"<mod subtitle="Mark the bookmark as TOREAD."/>
        <mod key="alt"<mod subtitle="Post the bookmark as PUBLIC."/>
    </item>
    <item arg="JavaScript" autocomplete="JavaScript">
        <title>JavaScript</title>
        <subtitle>4</subtitle>
        <icon>tag.png</icon>
        <mod key="alt"<mod subtitle="Post the bookmark as PUBLIC."/>
        <mod key="ctrl"<mod subtitle="Mark the bookmark as TOREAD."/>
    </item>
    <item arg="js" autocomplete="js">
        <title>js</title>
        <subtitle>4</subtitle>
        <icon>tag.png</icon>
        <mod key="alt"<mod subtitle="Post the bookmark as PUBLIC."/>
        <mod key="ctrl"<mod subtitle="Mark the bookmark as TOREAD."/>
    </item>
    <item arg="keebs" autocomplete="keebs">
        <title>keebs</title>
        <subtitle>4</subtitle>
        <icon>tag.png</icon>
        <mod key="alt"<mod subtitle="Post the bookmark as PUBLIC."/>
        <mod key="ctrl"<mod subtitle="Mark the bookmark as TOREAD."/>
    </item>
    <item arg="membership" autocomplete="membership">
        <title>membership</title>
        <subtitle>4</subtitle>
        <icon>tag.png</icon>
        <mod key="alt"<mod subtitle="Post the bookmark as PUBLIC."/>
        <mod key="ctrl"<mod subtitle="Mark the bookmark as TOREAD."/>
    </item>
    <item arg="rails" autocomplete="rails">
        <title>rails</title>
        <subtitle>4</subtitle>
        <icon>tag.png</icon>
        <mod key="ctrl"<mod subtitle="Mark the bookmark as TOREAD."/>
        <mod key="alt"<mod subtitle="Post the bookmark as PUBLIC."/>
    </item>
    <item arg="SaaS" autocomplete="SaaS">
        <title>SaaS</title>
        <subtitle>3</subtitle>
        <icon>tag.png</icon>
        <mod key="ctrl"<mod subtitle="Mark the bookmark as TOREAD."/>
        <mod key="alt"<mod subtitle="Post the bookmark as PUBLIC."/>
    </item>
    <item arg="analytics" autocomplete="analytics">
        <title>analytics</title>
        <subtitle>3</subtitle>
        <icon>tag.png</icon>
        <mod key="alt"<mod subtitle="Post the bookmark as PUBLIC."/>
        <mod key="ctrl"<mod subtitle="Mark the bookmark as TOREAD."/>
    </item>
</items>
spamwax commented 2 years ago

I just added a new version, please download and use it and see if it fixes the issue.

waynehoover commented 2 years ago

yes, this fixes it! thank you.