Skip to content

ScriptCs Unexpectedly Clutters the Current Directory with Temporary Files #1136

Closed

Description

@hypersw

I'm running scriptcs to execute a simple isolated script, giving a full path to its file.
If the current directory (which is actually unrelated to the script, just a random cwd) contains certain directories or files, like bin (full list in FileSystemMigrator::.ctor), it gets cluttered with some sudden files and directories related to scriptcs operations.

I believe this might be useful in certain scenarios, but when running a simple isolated helper script or REPL these are totally unexpected consequences.
The main negative points:

  • Unexpected modification of the directory when just a simple execution of an independent script were intended.
  • The directory gets a dirty status with the source control (and you don't want to modify the ignore list if that were just a helper script not related to the repository).
  • The bin folder might be large, in which case the startup time of the script is also degraded.

I believe there should be a mode for noninvasive execution of simple scripts, otherwise it gets a tightly coupled semantic rather than being a general-purpose scripting engine.

Activity

  1. filipw commented on Jul 31, 2017

    @filipw
    Member

    You are absolutely right, I think at this point we can change the migrator to opt-in only.
    It was well intended, but I can see how it can create a mess.

  2. filipw commented on Jul 31, 2017

    @filipw
    Member

    This would be a breaking change for the EXE but at this point most folks should be off packages.config. Not to mention it's future is in the air anyway 👹

  3. filipw commented on Apr 9, 2018

    @filipw
    Member

    Related to #1279

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions