Actions
Feature #20244
closedShow the conflicting another chdir block
Status:
Closed
Assignee:
-
Target version:
-
Description
Dir.chdir
is warning when in another chdir
block.
$ ruby -e 'Dir.chdir {' -e 'Dir.chdir("/")' -e '}'
-e:2: warning: conflicting chdir during another chdir block
If two chdir
s are far apart, it can be difficult to find conflicting blocks.
To help the debugging, I propose to improve the warning message to show the conflicting block.
$ ./ruby -e 'Dir.chdir {' -e 'Dir.chdir("/")' -e '}'
-e:2: warning: conflicting chdir during another chdir block
-e:1: warning: here
Updated by nobu (Nobuyoshi Nakada) 9 months ago
- Status changed from Open to Closed
Applied in changeset git|8fe86feecdcd0318c9ec88c10d2698beb9878bee.
[Feature #20244] Extract chdir_lock
and its stuffs
Actions
Like1
Like0