-
Notifications
You must be signed in to change notification settings - Fork 189
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
Vagrant 1.8.1 colors mess up vagrant_plugin_installed? #207
Comments
While it's not causing a problem with the current regex, the |
The bug causes this problem. Kitchen-vagrant doesn't think the vagrant-winrm Vagrant plugin is installed because the extra leading ANSI color sequences mess up the regex.
|
I'm working on a PR for this. |
This appears to be a Windows-only issue. |
👍 |
this is a really annoying bug, thanks for the link above to the ENV options @oifland . i'm going to post it directly here in case other people run into this. work around is |
@akemner Don't you wan't |
@akemner @dougireton Thanks guys. I did the ugly thing of actually editing the Ruby file. Very glad to see there is a better way. |
@phillipbroberts I forget, sorry. It's been a while since I did it and if I recall, it has been fixed now. |
bumping on this. I'm having this issue as well. |
This should be covered by #309 but if not please open a new issue with current version of Vagrant, kitchen-vagrant, etc. |
Vagrant seems to have recently added ANSI colors to the output and that means extra characters are showing up. When
vagrant_plugin_installed?
is called, it's splitting on newlines and then checking to see if the plugin is at the beginning of the line (seekitchen-vagrant/lib/kitchen/driver/vagrant.rb
Line 443 in ff8cb07
The characters "\e[0m" are showing at the beginning of the line, which mess up the /^plugin-name\s+/ regex.
There are options for turning off the colors - see VAGRANT_NO_COLOR and --no-color https://www.vagrantup.com/docs/other/environmental-variables.html
Another option could be to make the regex more forgiving.
The text was updated successfully, but these errors were encountered: