JoshCheek / seeing_is_believing

Displays the results of every line of code in your file
1.31k stars 54 forks source link

Output is horrible when run against a moved file #147

Open JoshCheek opened 5 years ago

JoshCheek commented 5 years ago

I was in Atom, running against the file system, which is pretty rare for me (b/c I wanted to read in the input files for advent of code day 16). I had moved the file I was editing (accidentally saved it as day 15). This caused it to be unable to find the file or something, the output was a stack trace, it looked like SiB failed instead of presenting a nice error:

/Users/josh/.gem/ruby/2.5.1/gems/seeing_is_believing-3.6.2/lib/seeing_is_believing/swap_files.rb:86:in `delete': No such file or directory @ apply2files - /Users/josh/code/advent_of_code/15/entry (Errno::ENOENT)
    from /Users/josh/.gem/ruby/2.5.1/gems/seeing_is_believing-3.6.2/lib/seeing_is_believing/swap_files.rb:86:in `set_back_to_initial_conditions'
    from /Users/josh/.gem/ruby/2.5.1/gems/seeing_is_believing-3.6.2/lib/seeing_is_believing/swap_files.rb:54:in `block in call'
    from /Users/josh/.gem/ruby/2.5.1/gems/seeing_is_believing-3.6.2/lib/seeing_is_believing/hard_core_ensure.rb:39:in `invoke_ensure'
    from /Users/josh/.gem/ruby/2.5.1/gems/seeing_is_believing-3.6.2/lib/seeing_is_believing/hard_core_ensure.rb:16:in `ensure in call'
    from /Users/josh/.gem/ruby/2.5.1/gems/seeing_is_believing-3.6.2/lib/seeing_is_believing/hard_core_ensure.rb:16:in `call'
    from /Users/josh/.gem/ruby/2.5.1/gems/seeing_is_believing-3.6.2/lib/seeing_is_believing/hard_core_ensure.rb:4:in `call'
    from /Users/josh/.gem/ruby/2.5.1/gems/seeing_is_believing-3.6.2/lib/seeing_is_believing/swap_files.rb:37:in `call'
    from /Users/josh/.gem/ruby/2.5.1/gems/seeing_is_believing-3.6.2/lib/seeing_is_believing/swap_files.rb:25:in `call'
    from /Users/josh/.gem/ruby/2.5.1/gems/seeing_is_believing-3.6.2/lib/seeing_is_believing/evaluate_by_moving_files.rb:58:in `call'
    from /Users/josh/.gem/ruby/2.5.1/gems/seeing_is_believing-3.6.2/lib/seeing_is_believing/evaluate_by_moving_files.rb:29:in `call'
    from /Users/josh/.gem/ruby/2.5.1/gems/seeing_is_believing-3.6.2/lib/seeing_is_believing.rb:45:in `block in call'
    from /Users/josh/.rubies/ruby-2.5.1/lib/ruby/2.5.0/tmpdir.rb:89:in `mktmpdir'
    from /Users/josh/.gem/ruby/2.5.1/gems/seeing_is_believing-3.6.2/lib/seeing_is_believing.rb:39:in `call'
    from /Users/josh/.gem/ruby/2.5.1/gems/seeing_is_believing-3.6.2/lib/seeing_is_believing.rb:28:in `call'
    from /Users/josh/.gem/ruby/2.5.1/gems/seeing_is_believing-3.6.2/lib/seeing_is_believing/binary/engine.rb:96:in `evaluate!'
    from /Users/josh/.gem/ruby/2.5.1/gems/seeing_is_believing-3.6.2/lib/seeing_is_believing/binary.rb:45:in `call'
    from /Users/josh/.gem/ruby/2.5.1/gems/seeing_is_believing-3.6.2/bin/seeing_is_believing:7:in `<top (required)>'
    from /Users/josh/.gem/ruby/2.5.1/bin/seeing_is_believing:23:in `load'
    from /Users/josh/.gem/ruby/2.5.1/bin/seeing_is_believing:23:in `<main>'

Probably not relevant, but might be: