I realized Gemfile.lock had the vagrant gem pinned at an old SHA. I updated 
it to the current master and now I am able to use `vagrant plugin install`. 
However, Vagrant.require_plugin is now deprecated. I tried changing those 
calls to just use `require`, but I get this error:

Vagrant appears to be running in a Bundler environment. Plugins
will not be loaded and plugin commands are disabled.

Vagrant failed to initialize at a very early stage:

There was an error loading a Vagrantfile. The file being loaded
and the error message are shown below. This is usually caused by
a syntax error.

Path: /redacted//Vagrantfile
Message: Encoded files can't be read outside of the Vagrant installer.


What's the current approach for loading plugins in development? 

On Tuesday, January 14, 2014 11:52:52 PM UTC-8, Jimmy Cuadra wrote:
>
> I looked at the logs, as it suggests, and found this:
>
> ERROR root: Failed to load plugin: vagrant-vmware-fusion
> ERROR root:  -- Error: #<RuntimeError: The Vagrant VMware Fusion provider 
> can be purchased from http://www.vagrantup.com/vmware.>
>
>
> How do I register my plugin license if I can't use `vagrant plugin` in 
> development?
>
> On Tuesday, January 14, 2014 11:41:11 PM UTC-8, Jimmy Cuadra wrote:
>>
>> Hello Vagrant users,
>>
>> When developing a Vagrant plugin, how do you get Vagrant to recognize a 
>> VMware provider plugin? I'm trying to test my plugin with 
>> *vagrant-vmware-fusion* and not sure how to do it. If I run `bundle exec 
>> vagrant plugin install vagrant-vmware-fusion`, I get an error message 
>> saying that the `vagrant plugin` command can't be run in a Bundler 
>> environment. If I add the provider plugin to my Gemfile, then running a 
>> `vagrant` command results in the error message, "The provider 
>> 'vmware_fusion' could not be found, but was requested to back the machine 
>> 'default'. Please use a provider that exists." If I add 
>> `Vagrant.require_plugin "vagrant-vmware-fusion"` to the Vagrantfile, then 
>> running a `vagrant` command results in the error message, "Vagrant failed 
>> to initialize at a very early stage: Failed to load the 
>> "vagrant-vmware-fusion" plugin. View logs for more details." Wat do? Thanks 
>> in advance.
>>
>> Jimmy
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to