Skip to content

couldn't find HOME environment -- expanding `~' (ArgumentError) #470

Closed

Description

@mhenrixon

Hi,

You have the same issue as rubocop did in rubocop/rubocop#2901 simplecov crash unless a HOME environment variable is defined.

/var/lib/gems/2.1.0/gems/simplecov-0.11.2/lib/simplecov/defaults.rb:99:in `expand_path': couldn't find HOME environment -- expanding `~' (ArgumentError)
    from /var/lib/gems/2.1.0/gems/simplecov-0.11.2/lib/simplecov/defaults.rb:99:in `<top (required)>'
    from /var/lib/gems/2.1.0/gems/simplecov-0.11.2/lib/simplecov.rb:180:in `require'
    from /var/lib/gems/2.1.0/gems/simplecov-0.11.2/lib/simplecov.rb:180:in `<top (required)>'
    from /root/.jenkins/jobs/e24-accounting/workspace/spec/spec_helper.rb:5:in `require'
    from /root/.jenkins/jobs/e24-accounting/workspace/spec/spec_helper.rb:5:in `<top (required)>'
    from /root/.jenkins/jobs/e24-accounting/workspace/spec/features/bitcoin_deposit_obsoletes_deposit_address_spec.rb:1:in `require'
    from /root/.jenkins/jobs/e24-accounting/workspace/spec/features/bitcoin_deposit_obsoletes_deposit_address_spec.rb:1:in `<top (required)>'
    from /var/lib/gems/2.1.0/gems/rspec-core-3.4.1/lib/rspec/core/configuration.rb:1361:in `load'
    from /var/lib/gems/2.1.0/gems/rspec-core-3.4.1/lib/rspec/core/configuration.rb:1361:in `block in load_spec_files'
    from /var/lib/gems/2.1.0/gems/rspec-core-3.4.1/lib/rspec/core/configuration.rb:1359:in `each'
    from /var/lib/gems/2.1.0/gems/rspec-core-3.4.1/lib/rspec/core/configuration.rb:1359:in `load_spec_files'
    from /var/lib/gems/2.1.0/gems/rspec-core-3.4.1/lib/rspec/core/runner.rb:102:in `setup'
    from /var/lib/gems/2.1.0/gems/rspec-core-3.4.1/lib/rspec/core/runner.rb:88:in `run'
    from /var/lib/gems/2.1.0/gems/rspec-core-3.4.1/lib/rspec/core/runner.rb:73:in `run'
    from /var/lib/gems/2.1.0/gems/rspec-core-3.4.1/lib/rspec/core/runner.rb:41:in `invoke'
    from /var/lib/gems/2.1.0/gems/rspec-core-3.4.1/exe/rspec:4:in `<main>'
/usr/bin/ruby2.1 -I/var/lib/gems/2.1.0/gems/rspec-core-3.4.1/lib:/var/lib/gems/2.1.0/gems/rspec-support-3.4.1/lib /var/lib/gems/2.1.0/gems/rspec-core-3.4.1/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb failed

Activity

  1. hube commented on Sep 14, 2016

    @hube

    I just encountered the same issue. It looks like this was originally fixed in #311, but then re-introduced in 9afdb46. One workaround would be to revert to using v0.9.0 until this gets merged

  2. PragTob commented on Jan 26, 2017

    @PragTob
    Collaborator

    Fixed by #482

  3. hube commented on Jan 27, 2017

    @hube

    Thanks for merging the fix in!

  4. added theissue type on May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions