jschlatow / taskopen

Tool for taking notes and open urls with taskwarrior
GNU General Public License v2.0
364 stars 31 forks source link

taskopen errors out: Command not found #75

Closed jostber closed 11 years ago

jostber commented 11 years ago

When running taskopen in the most recent version on my Suse 12.2 box, I get this output:

taskopen sh: line 1: Configuration: command not found sh: line 2: Configuration: command not found malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Configuration overri...") at /bin/taskopen line 791, line 21.

task diag:

task diag

task 2.2.0.beta1 Platform: Linux

Compiler Version: 4.7.1 20120723 [gcc-4_7-branch revision 189773] Caps: +stdc +stdc_hosted +c1 +i4 +l4 +vp4

Libraries Lua: n/a libuuid: libuuid + uuid_unparse_lower

Build Features Built: Mar 13 2013 17:24:02 Commit: bcd414a CMake: 2.8.8 Caps: -pthreads +srandom +random +uuid

Configuration File: /home/jostein/.taskrc (found), 15267 bytes, mode 100644 Data: /home/jostein/.task (found), dir, mode 40755 Server: Locking: Enabled rc.editor: vim

External Utilities scp: (found) rsync: version 3.0.9 curl: curl 7.25.0

Tests UUID gen: 1000 unique UUIDs generated. $TERM: screen-256color (247x110) Dups: Scanned 79 tasks for duplicate UUIDs: No duplicates found

jschlatow commented 11 years ago

Does "taskopen -V" work?

jostber commented 11 years ago

Here is the output of "taskopen -V" at my Suse box:

taskopen -V

Taskopen, release v1.0, revision 154 (57ead8d) Copyright 2010-2013, Johannes Schlatow.

Environment Platform: linux Perl: v5.16.0 Taskwarrior: 2.0.0 Configuration override rc.verbose:off Configuration override rc.json.array:on xdg-open: xdg-open 1.1.0 rc1 Configuration: /home/jostein/.taskopenrc

Current configuration Binaries and paths: BROWSER = firefox TASKBIN = /usr/bin/task rc.verbose=off rc.json.array=on EDITOR = vim XDG = xdg-open PATH = /home/jostein/.autojump/bin:/home/jostein/.autojump/bin:/home/jostein/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/lib/qt3/bin:/bin

Others: NOTES_FOLDER = ~/tasknotes/ NOTES_EXT = .txt NOTES_FILE = ~/tasknotes/UUID.txt NOTES_CMD = $EDITOR ${FOLEDER}UUID$EXT DEFAULT_FILTER= status.is:pending DEFAULT_SORT = current: DEFAULT-i = ls -la current: ls -la DEFAULT-x = /bin/bash -c DEBUG = 0 NOTES_REGEX = Notes BROWSER_REGEX = www|http FILE_REGEX = .|\/|~ CUSTOM1_REGEX = CUSTOM1_CMD = CUSTOM2_REGEX = CUSTOM2_CMD =

On 13.03.13,16:24, Johannes S. wrote:

Does "taskopen -V" work?


Reply to this email directly or view it on GitHub: https://github.com/ValiValpas/taskopen/issues/75#issuecomment-14875150

jschlatow commented 11 years ago

Well..taskopen apparently uses /usr/bin/task, which is still at 2.0.0. This version is a bit odd because it keeps outputting the "Configuration override" lines despite being set to non-verbose.

I see that you have a newer version in /bin/task. You specify the task binary path explicitly though. Just add "TASKBIN=/bin/task" to your ~/.taskopenrc.

jostber commented 11 years ago

Hi,

I entered /usr/local/bin/task in taskopenrc and that worked fine, thanks.

On 14.03.13,15:22, Johannes S. wrote:

Well..taskopen apparently uses /usr/bin/task, which is still at 2.0.0. This version is a bit odd because it keeps outputting the "Configuration override" lines despite being set to non-verbose.

I see that you have a newer version in /bin/task. You specify the task binary path explicitly though. Just add "TASKBIN=/bin/task" to your ~/.taskopenrc.


Reply to this email directly or view it on GitHub: https://github.com/ValiValpas/taskopen/issues/75#issuecomment-14933085