Coder Social home page Coder Social logo

Comments (15)

bachya avatar bachya commented on July 22, 2024

Sorry you're having issues! Would you mind trying this beta and seeing if it fixes your issue?

https://dl.dropboxusercontent.com/u/111722/LP%20Vault%20Manager%20beta2.1.alfredworkflow

After you install it, make sure to run lpdd in Alfred to force a refresh of your LastPass data. Let me know how it goes!

from lp-vault-manager.

briancgeorge avatar briancgeorge commented on July 22, 2024

Hey Aaron, sorry for the bad news (especially since you are doing this open source!), but it still doesn’t work.

Same error after I start typing query text:

[ERROR: alfred.workflow.input.scriptfilter] Code 1: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/csv.rb:1851:in block (2 levels) in shift': Illegal quoting in line 1. (CSV::MalformedCSVError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/csv.rb:1813:ineach'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/csv.rb:1813:in block in shift' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/csv.rb:1773:inloop'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/csv.rb:1773:in shift' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/csv.rb:1715:ineach'
from lpvm.rb:134:in to_a' from lpvm.rb:134:instructify'
from lpvm.rb:63:in get_data' from lpvm.rb:97:insearch_vault'
from lpvm.rb:207:in `

I wish I could give you some more info but I’m very unfamiliar with Apple Script and Ruby and don’t have an environment in which I can trace this out…hopefully the stack trace is enough…

Just to confirm, this works on your machine? You can see that I’m using ruby 2.0.0 and Alfred 2.5.1 on OS X Yosemite 10.10.1.

-b

On Dec 20, 2014, at 5:32 PM, Aaron Bach [email protected] wrote:

Sorry you're having issues! Would you mind trying this beta and seeing if it fixes your issue?

https://dl.dropboxusercontent.com/u/111722/LP%20Vault%20Manager%20beta2.1.alfredworkflow https://dl.dropboxusercontent.com/u/111722/LP%20Vault%20Manager%20beta2.1.alfredworkflow

Reply to this email directly or view it on GitHub #1 (comment).

from lp-vault-manager.

bachya avatar bachya commented on July 22, 2024

No problem! Try deleting /tmp/lp_data.csv via the Terminal and running lpdd again. We'll get this figured out!

from lp-vault-manager.

briancgeorge avatar briancgeorge commented on July 22, 2024

Interesting…that file doesn’t exist despite 777 permissions on the /tmp directory.

looks like from the comments somebody else is having the same problem…I take it it works on your machine?

b

On Dec 22, 2014, at 2:31 PM, Aaron Bach [email protected] wrote:

No problem! Try deleting /tmp/lp_data.csv via the Terminal and running lpdd again. We'll get this figured out!


Reply to this email directly or view it on GitHub #1 (comment).

from lp-vault-manager.

bachya avatar bachya commented on July 22, 2024

It does. Are you able to create any file in your /tmp directory?

from lp-vault-manager.

briancgeorge avatar briancgeorge commented on July 22, 2024

My fault…lp_data.csv is there and does get re-created when I remove it and then run lpdd. But still doesn’t work. No errors now but also just assumes it is a web search.

-b

On Dec 22, 2014, at 2:52 PM, Aaron Bach [email protected] wrote:

It does. Are you able to create any file in your /tmp directory?


Reply to this email directly or view it on GitHub #1 (comment).

from lp-vault-manager.

bachya avatar bachya commented on July 22, 2024

Got it. Wondering if it's something to do with CSV parsing in Ruby 2.0.0 (I'm using 2.1.0). Let me test a bit and I'll get back to you!

from lp-vault-manager.

bachya avatar bachya commented on July 22, 2024

One last clarification: when you open lp_data.csv.csv in TextEdit, do you see data that looks like it comes from your LastPass vault?

from lp-vault-manager.

briancgeorge avatar briancgeorge commented on July 22, 2024

Nope, it has:

Usage:
/usr/local/bin/lpass {--help|--version}
/usr/local/bin/lpass login [--trust] [--plaintext-key [--force, -f]] USERNAME
/usr/local/bin/lpass logout [--force, -f]
/usr/local/bin/lpass show [--sync=auto|now|no] [--clip, -c] [--all|--username|--password|--url|--notes|--field=FIELD|--id|--name] {UNIQUENAME|UNIQUEID}
/usr/local/bin/lpass ls [--sync=auto|now|no] [GROUP]
/usr/local/bin/lpass edit [--sync=auto|now|no] [--non-interactive] {--name|--username|--password|--url|--notes|--field=FIELD} {NAME|UNIQUEID}
/usr/local/bin/lpass generate [--sync=auto|now|no] [--clip, -c] [--username=USERNAME] [--url=URL] [--no-symbols] {NAME|UNIQUEID} LENGTH
/usr/local/bin/lpass duplicate [--sync=auto|now|no] {UNIQUENAME|UNIQUEID}
/usr/local/bin/lpass rm [--sync=auto|now|no] {UNIQUENAME|UNIQUEID}
/usr/local/bin/lpass sync [--background, -b]

-brian

On Dec 22, 2014, at 3:10 PM, Aaron Bach [email protected] wrote:

One last clarification: when you open lp_data.csv.csv in TextEdit, do you see data that looks like it comes from your LastPass vault?


Reply to this email directly or view it on GitHub #1 (comment).

from lp-vault-manager.

bachya avatar bachya commented on July 22, 2024

Interesting. Have you logged in via lpass login <USERNAME>?

from lp-vault-manager.

briancgeorge avatar briancgeorge commented on July 22, 2024

yup. login works like a charm. and I’ve set the flag for no expiration of login. logged in a again just to be sure

note that I did authenticate on the command line and tried this all again but it still doesn’t work.

b

On Dec 22, 2014, at 3:18 PM, Aaron Bach [email protected] wrote:

Interesting. Have you logged in via lpass login ?


Reply to this email directly or view it on GitHub #1 (comment).

from lp-vault-manager.

bachya avatar bachya commented on July 22, 2024

(sorry for all the questions; appreciate you walking through this.)

What happens when you run lpass export directly from the Terminal?

from lp-vault-manager.

briancgeorge avatar briancgeorge commented on July 22, 2024

Your email was helpful…I had the older version of lastpass-cli:

$ lpass --version LastPass CLI v0.3.0

That version doesn’t have the export command, while 0.4 does. I upgraded and now can indeed get data exported to the terminal. Interestingly, every time I run the export command I have to login, even if I already did an ‘lpass login’ in that same terminal already. I wonder if the lpdd script is waiting for a password?

-b

On Dec 22, 2014, at 4:03 PM, Aaron Bach [email protected] wrote:

(sorry for all the questions; appreciate you walking through this.)

What happens when you run lpass export directly from the Terminal?


Reply to this email directly or view it on GitHub #1 (comment).

from lp-vault-manager.

bachya avatar bachya commented on July 22, 2024

Interesting! Did you install lpass via Homebrew, or some other method?

RE: your question:

I wonder if the lpdd script is waiting for a password?

...I think you're on the money. Unfortunately I don't have a way of detecting whether the lpass command is hanging on a login prompt... Might need to figure that out. Earlier on, you mentioned setting the "no-expiration" flag. Where did you do this?

from lp-vault-manager.

bachya avatar bachya commented on July 22, 2024

I just published v3.0, which (from reports) is working well for others; going to point you in its direction and close this issue: https://github.com/bachya/lp-vault-manager/releases/download/v3.0/LastPass.Vault.Manager.alfredworkflow

If you still have issues, please don't hesitate to open a new issue; I'll help out!

from lp-vault-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.