Skip to content

'/dev/null' has to be 'NUL' on Windows #283

@Awem

Description

@Awem

I'm using Rails 4.1.0.rc2 on Windows (Ruby 2.0p195) with spring-1.1.2. After installation I tried:

bundle exec spring binstub --all

This raises an exception:

C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/spring-1.1.2/lib/spring/env.rb:19:in `initialize': No such file or directory - /dev/null (Errno::ENOENT)

Replacing line 19 in env.rb with the following line fixes the issue and everything runs fine:

@log_file     = File.open(ENV["SPRING_LOG"] || "NUL", "a")

However, this might not work on other OS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions