spamwax / alfred-pinboard-rs

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

Chrome fail on writing new bookmarks #18

Closed kahl-dev closed 5 years ago

kahl-dev commented 6 years ago

If i try to save a new bookmark in Google Chrome i get the following error:

osascript error: code exit: 1

spamwax commented 6 years ago

I need more information. Your OS, chrome version, workflow version. and the output of Alfred's debug window with "show everything" enabled.

kahl-dev commented 6 years ago

Thanks for your respond.

OS: OS X 10.14 Chrome: 69.0.3497.100 Workflow: 0.14.2

[2018-10-23 10:27:43][input.scriptfilter] Queuing argument 'github'
[2018-10-23 10:27:44][input.scriptfilter] Script with argument 'github' finished
[2018-10-23 10:27:44][STDERR: input.scriptfilter] DEBUG 2018-10-23T08:27:43Z: alfred_pinboard_rs: Parsing input arguments.
DEBUG 2018-10-23T08:27:43Z: alfred_pinboard_rs: Deciding on which command branch
DEBUG 2018-10-23T08:27:43Z: alfred_pinboard_rs: Starting in setup
DEBUG 2018-10-23T08:27:43Z: alfred_pinboard_rs::workflow_config: Starting in setup
DEBUG 2018-10-23T08:27:43Z: alfred_pinboard_rs::workflow_config: Starting in get_workflow_dirs
DEBUG 2018-10-23T08:27:43Z: alfred_pinboard_rs::workflow_config: Starting in read
DEBUG 2018-10-23T08:27:43Z: alfred_pinboard_rs::workflow_config: Starting in get_alfred_version
DEBUG 2018-10-23T08:27:43Z: rusty_pin::pinboard: pinb::new: calling CachedData::new
DEBUG 2018-10-23T08:27:43Z: rusty_pin::pinboard::cached_data: new: starting
DEBUG 2018-10-23T08:27:43Z: rusty_pin::pinboard::cached_data:   cached_dir: "/Users/pk/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/cc.hamid.alfred-pinboard-rs"
DEBUG 2018-10-23T08:27:43Z: rusty_pin::pinboard::cached_data: create_cache_dir: starting
DEBUG 2018-10-23T08:27:43Z: rusty_pin::pinboard::cached_data:   success create_cache_dir: "/Users/pk/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/cc.hamid.alfred-pinboard-rs"
DEBUG 2018-10-23T08:27:43Z: rusty_pin::pinboard::cached_data: load_cache_data_from_file: starting
DEBUG 2018-10-23T08:27:43Z: rusty_pin::pinboard::cached_data: read_cached_pins: starting
DEBUG 2018-10-23T08:27:43Z: rusty_pin::pinboard::cached_data: read_cached_tags: starting
DEBUG 2018-10-23T08:27:43Z: rusty_pin::pinboard::cached_data: cache_ok: starting
DEBUG 2018-10-23T08:27:43Z: rusty_pin::pinboard: pinb::new: cache not missing
DEBUG 2018-10-23T08:27:43Z: rusty_pin::pinboard: enable_fuzzy_search: starting.
DEBUG 2018-10-23T08:27:43Z: rusty_pin::pinboard: enable_tag_only_search: starting.
DEBUG 2018-10-23T08:27:43Z: rusty_pin::pinboard: enable_private_new_pin: starting.
DEBUG 2018-10-23T08:27:43Z: rusty_pin::pinboard: enable_toread_new_pin: starting.
DEBUG 2018-10-23T08:27:43Z: alfred_rs::data: loading from: /Users/pk/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/cc.hamid.alfred-pinboard-rs/user.workflow.484FC0DA-CA71-43C5-AA81-FBE85FDE3C02-Rusty_Pin-updater.json
DEBUG 2018-10-23T08:27:43Z: alfred_rs::updater: last check: 2018-10-23 08:27:07.319050 UTC
DEBUG 2018-10-23T08:27:43Z: alfred_rs::data: loading from: /Users/pk/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/cc.hamid.alfred-pinboard-rs/last_check_status_async.json
DEBUG 2018-10-23T08:27:43Z: alfred_rs::updater:   read last_check_status: UpdateInfo { version: Version { major: 0, minor: 14, patch: 2, pre: [], build: [] }, fetched_at: Some(2018-10-23T08:27:07.319050Z), downloadable_url: "https://github.com/spamwax/alfred-pinboard-rs/releases/download/0.14.2/alfred-pinboard-rust-0.14.2.alfredworkflow", _priv: () }
DEBUG 2018-10-23T08:27:43Z: alfred_pinboard_rs::commands::list: Starting in list::process
 WARN 2018-10-23T08:27:43Z: alfred_pinboard_rs::commands::list: inside spawn thread, about to call get_suggested_tags
DEBUG 2018-10-23T08:27:43Z: alfred_pinboard_rs::commands::list: Starting in get_suggested_tags
DEBUG 2018-10-23T08:27:43Z: alfred_pinboard_rs::workflow_config: Starting in setup
DEBUG 2018-10-23T08:27:43Z: alfred_pinboard_rs::workflow_config: Starting in get_workflow_dirs
DEBUG 2018-10-23T08:27:43Z: alfred_pinboard_rs::workflow_config: Starting in read
DEBUG 2018-10-23T08:27:43Z: alfred_pinboard_rs::workflow_config: Starting in get_alfred_version
DEBUG 2018-10-23T08:27:43Z: rusty_pin::pinboard: pinb::new: calling CachedData::new
DEBUG 2018-10-23T08:27:43Z: rusty_pin::pinboard::cached_data: new: starting
DEBUG 2018-10-23T08:27:43Z: rusty_pin::pinboard::cached_data:   cached_dir: "/Users/pk/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/cc.hamid.alfred-pinboard-rs"
DEBUG 2018-10-23T08:27:43Z: rusty_pin::pinboard::cached_data: create_cache_dir: starting
DEBUG 2018-10-23T08:27:43Z: rusty_pin::pinboard::cached_data:   success create_cache_dir: "/Users/pk/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/cc.hamid.alfred-pinboard-rs"
DEBUG 2018-10-23T08:27:43Z: rusty_pin::pinboard::cached_data: load_cache_data_from_file: starting
DEBUG 2018-10-23T08:27:43Z: rusty_pin::pinboard::cached_data: read_cached_pins: starting
DEBUG 2018-10-23T08:27:43Z: rusty_pin::pinboard::cached_data: read_cached_tags: starting
DEBUG 2018-10-23T08:27:43Z: rusty_pin::pinboard::cached_data: cache_ok: starting
DEBUG 2018-10-23T08:27:43Z: rusty_pin::pinboard: pinb::new: cache not missing
DEBUG 2018-10-23T08:27:43Z: alfred_pinboard_rs::commands::browser_info: Starting in browser_info::get
 WARN 2018-10-23T08:27:43Z: alfred_pinboard_rs::commands::list: get_suggested_tags: Err(ErrorMessage { msg: "osascript error: code exit code: 1" })
 WARN 2018-10-23T08:27:44Z: alfred_pinboard_rs::commands::list: child didn't produce usable result.
DEBUG 2018-10-23T08:27:44Z: rusty_pin::pinboard: search_list_of_tags: starting.
DEBUG 2018-10-23T08:27:44Z: rusty_pin::pinboard::cached_data: cache_ok: starting
DEBUG 2018-10-23T08:27:44Z: alfred_pinboard_rs::commands::list: Found 1 tags.
DEBUG 2018-10-23T08:27:44Z: alfred_pinboard_rs::commands: Starting in write_output_items
DEBUG 2018-10-23T08:27:44Z: alfred_pinboard_rs::commands: Starting in get_upgrade_item
DEBUG 2018-10-23T08:27:44Z: alfred_rs::data: saving to: /Users/pk/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/cc.hamid.alfred-pinboard-rs/user.workflow.484FC0DA-CA71-43C5-AA81-FBE85FDE3C02-Rusty_Pin-updater.json
 INFO 2018-10-23T08:27:44Z: alfred_pinboard_rs::commands: Update *UNAVAILABLE*
Ok(
    false
)
DEBUG 2018-10-23T08:27:44Z: alfred_pinboard_rs::workflow_config: Starting in is_alfred_v3
[2018-10-23 10:27:44][input.scriptfilter] {"items":[{"arg":"github","autocomplete":"github","icon":{"path":"tag.png"},"subtitle":"1","title":"github","variables":{"tags":"github"}}],"variables":{"apr_execution_counter":"1"}}
spamwax commented 6 years ago

can you enter pset suggest_tags in Alfred and then disable auto suggest. Then try again by making sure Chrome is the active browser before using p keyword in Alfred to save a bookmark?

kahl-dev commented 6 years ago

I tried, but have the same issue

spamwax commented 6 years ago

I cannot reproduce this on my end. the only reason I can think of is that Chrome is not the active application when invoke Alfred! I need to think of new way of testing this :(

kahl-dev commented 6 years ago

Thank you for your efforts. The only thing I can tell you is that when I try to read the URL from Chrome with this script:

tell application "Google Chrome" to return URL of active tab of front window

everything works.

kahl-dev commented 5 years ago

I don't know what has changed, but its working now. Maybe a chrome update.