Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error activating virtualenv #14

Closed
christophlingg opened this issue Nov 7, 2013 · 9 comments
Closed

error activating virtualenv #14

christophlingg opened this issue Nov 7, 2013 · 9 comments

Comments

@christophlingg
Copy link

hi adam,

thanks for your work first! I really like fish and I feel thankful for people who are writing code for it!

I ran into a problem when I activated my first environment:

christoph@christoph ~/k/dev> vf activate myenv
activate myenv
fish: Could not expand string '$argv[0..1]'
/usr/local/bin/virtual.fish (line 49):  echo $argv[0..1]
                                                    ^
in function 'vf',
    called on standard input,
    with parameter list 'activate myenv'

I consulted the fish documentation (I don't know too much about it) and understood your code, but honestly I have no idea why it does not work.

Finally I made a fast but not elegant fix:

        set scargs $argv[2]
        #set scargs $argv[2..-1]

Maybe other people might be affected too? Do you know why the error is popping up?

@daisylb
Copy link
Collaborator

daisylb commented Nov 7, 2013

What version of fish are you running?

@christophlingg
Copy link
Author

fish, version 1.23.1

@fabiant7t
Copy link

@christophlingg I was running into the same problem - You can upgrade to fish 2.x (http://fishshell.com/) to solve it.

@daisylb
Copy link
Collaborator

daisylb commented Nov 8, 2013

Thought that might be the case; I might pop a note about Fish versions on the readme before I close this issue.

Fabian Topfstedt notifications@github.com wrote:

@christophlingg I was running into the same problem - You can upgrade
to fish 2.x (http://fishshell.com/) to solve it.


Reply to this email directly or view it on GitHub:
#14 (comment)

Sent from my phone

@christophlingg
Copy link
Author

thanks you guys! i am just updating ...

@fabiant7t
Copy link

@adambrenecki I guess a lot of people ran and will run into the issue, since e.g. Ubuntu 12.04 LTS ships fish 1.x. If @christophlingg's change makes virtualfish work properly on fish 1.x, I'd rather check if fish --version starts with fish, version 1. and use his line then instead of making everyone upgrade fish?!

@daisylb
Copy link
Collaborator

daisylb commented Nov 8, 2013

I haven't actually run it, but I'm 99% sure that change will break subcommands that take more than 1 argument.

Fabian Topfstedt notifications@github.com wrote:

@adambrenecki I guess a lot of people ran and will run into the issue,
since e.g. Ubuntu 12.04 LTS ships fish 1.x. If @christophlingg's change
makes virtualfish work properly on fish 1.x, I'd rather check if fish --version starts with fish, version 1. and use his line then instead
of making everyone upgrade fish?!


Reply to this email directly or view it on GitHub:
#14 (comment)

Sent from my phone

@justinmayer
Copy link
Owner

I don't think supporting fish 1.x should be a goal — the differences between it and 2.x are very significant.

Plus, since there is now an official PPA, it is very easy to install the latest fish 2.x release on Ubuntu 12.04 LTS.

@daisylb
Copy link
Collaborator

daisylb commented Nov 9, 2013

I agree. Thanks for the PPA tip, by the way - I've added a link to it in the readme.

@daisylb daisylb closed this as completed in 4e76407 Nov 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants