Windows 7 飘忽不定的错误消息Windows上缺少行号

Windows 7 飘忽不定的错误消息Windows上缺少行号,windows-7,vagrant,Windows 7,Vagrant,我的文件中有一个错误: C:\Users\myuser\repos\centos-ansible-box>vagrant up Installing plugins: vagrant-proxyconf 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.

我的文件中有一个错误:

C:\Users\myuser\repos\centos-ansible-box>vagrant up
Installing plugins: vagrant-proxyconf
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: C:/Users/myuser/repos/centos-ansible-box/Vagrantfile
Line number: /Users/myuser/repos/centos-ansible-box/Vagrantfile
Message: TypeError: no implicit conversion from nil to integer
我的电话号码怎么了?没有这一点,真的很难猜测到底出了什么问题

我想这不会发生在所有的用户身上,因为我找不到bug报告,也没有发现其他人抱怨,所以我很困惑

示例文件:

# -*- mode: ruby -*-
# vi: set ft=ruby :

foo
和输出:

C:\Users\myuser\repos\test>vagrant up
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: C:/Users/myuser/repos/test/Vagrantfile
Line number: /Users/myuser/repos/test/Vagrantfile
Message: NameError: undefined local variable or method `foo' for main:Object
使用Vagrant版本1.7.4

编辑:在使用相同版本1.7.4的Mac OS X上,错误消息如下所示:

$ vagrant up
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: /Users/myuser/repos/vagrant-test/Vagrantfile
Line number: 4
Message: NameError: undefined local variable or method `foo' for main:Object
所以这似乎是Windows唯一的问题


Edit2:我现在已经打开了一个关于它的文档,因为我想不出任何其他解释。

这是。

请复制您的Vagrantfile@Fr这和我的流浪汉档案没有关系。这发生在我拥有的任何有任何错误的流浪者文件上。@FrédéricHenri现在添加了一个示例文件