Skip to content

Compiler is not responsive when project directory contains recursive symbolic link #28842

@KSXGitHub

Description

@KSXGitHub

TypeScript Version: 3.2.0-dev.201xxxxx

Search Terms:

Code

# Init project folder
tsc --init
echo 'export = 123' > index.ts

# Create a folder that contain recursive link
mkdir -p a/b/c

# Create recursive symlinks
(
  cd a && ln -s . self
  cd b && ln -s .. parent
  cd c && ln -s ../.. grandparent
)

# Now, try to compile
tsc

Expected behavior:

TSC ignores recursive symlinks and create index.js

Actual behavior:

TSC is unresponsive.

Workaround:

Add recursive symlink names to "exclude".

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions