Skip to content

Feature: Warn against creating packages and classes with file names illegal on Windows #11721

Open
@Sciss

Description

@Sciss

On Windows, there are reserved file names, including, among others, aux, Aux, aux.*, Aux.*, con, ... (full list). Thus when building on a Windows machine, you probably run into an OS error when scalac tries to write these files. See #4781.

However, you can perfectly create those files on other OS such as Linux or macOS. But when trying to extract those files on a Windows computer, it fails.

I would thus suggest, perhaps in conjunction with #4781, to warn or even error on those file names on any operating system. That way you prevent somebody from building an entire library based on com.foo.aux.Aux (which I just did) and finding out much later that it causes problems (example: extracting the scaladoc jar).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions