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

Vagrant error message missing line numbers on Windows 7 #6445

Closed
eis opened this issue Oct 27, 2015 · 1 comment
Closed

Vagrant error message missing line numbers on Windows 7 #6445

eis opened this issue Oct 27, 2015 · 1 comment

Comments

@eis
Copy link

eis commented Oct 27, 2015

Example Vagrantfile:

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

foo

And output:

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

Expected: line number printed together with error message
Actual: path to vagrant file printed where line number should have been printed

Using Vagrant version 1.7.4.

By comparison, on Mac OS X line number is printed just fine:

$ 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

debug log on Windows 7, not working: https://gist.github.com/eis/76c4991892572a2c1707
debug log on Mac OS X, working: https://gist.github.com/eis/452523fb40bcd75b9f2a

@mitchellh
Copy link
Contributor

Fixed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants