Skip to content

Command clicking file path with letters followed by colon fails to open file

  • iTerm2 version: Build 3.3.0beta1

  • OS version: 10.13.6 and 10.14.3

  • Attach ~/Library/Preferences/com.googlecode.iterm2.plist com.googlecode.iterm2.plist

  • Attach a debug log debuglog.txt

  • Are you reporting a performance issue, excessive CPU usage, or a hang? no

  • Are you reporting a crash? no

  • Are you reporting excessive memory usage? no

Detailed steps to reproduce the problem:

  1. from command line, touch problem.rb
  2. type problem.rb
  3. command clicking problem.rb will open file
  4. type problem.rb:1 -- command clicking this will work
  5. type problem.rb:1:1 -- command clicking this will work
  6. type problem.rb:1:in -- command clicking this won't work

What happened: command clicking file did not open in editor

What should have happened: command clicking file should open in editor

Note: I tested in the stable version of iterm and it was able to open the file (build 3.2.8)

backtrace of ruby problem looks like so:

❯ rake summary
rake aborted!
TypeError: no implicit conversion of nil into String
/Users/sean/code/money/lib/import/import_accounts.rb:8:in `exist?'
/Users/sean/code/money/lib/import/import_accounts.rb:8:in `initialize'
/Users/sean/code/money/lib/tasks/summary.rb:4:in `new'
/Users/sean/code/money/lib/tasks/summary.rb:4:in `initialize'

I'm not able to command click files listed in backtrace to open them in editor.

Thanks,

Sean