Skip to content

cleanedUpPathFromPath does not support typescript alternative line/column syntax

  • iTerm2 version: Build 3.4.22
  • OS version: Sonoma 14.0 (23A344)
  • Attach here (drag-drop from finder into this window): com.googlecode.iterm2.plist

Detailed steps to reproduce the problem:

  1. Use typescript in a project
  2. Introduce a type error
  3. run Typescript compiler with tsc -p .
  4. Encounter an error message line with path to file like this:
src/routes/run/v1/runRouter.ts(12,34): error TS2305: Module '"../../../repositories/run"' has no exported member 'createRunDatasetStream'.

What happened:

The path is not 'cmd+click'-able , even though other types of path, e.g python work fine.

What should have happened:

The line/col identifier in parentheses just like we do for square brackets.

More info

I realise this must be a frequent issue and it's difficult to support all use cases, but please consider adding this alternative syntax.

I came across this test case and I believe I can submit a branch with a failing test case, though I'm not sure I can fix it (I've not looked at objective C in literally decades, and have not yet gone through the local dev/build setup)