Skip to content

Improvement to Import and compile - Purging classes not on disk #1451

Closed
@jpa95

Description

@jpa95

Hi,

a recurring annoyance is when switching branches and compiled classes from the old branch remain in the namespace sometimes creating compilation errors.

Scenario:

  1. I am working on branch X, I have added class C, it is installed into the namespace
  2. Using Git, switch to branch Y. This branch does not have the file for class C yet.
  3. Import and Compile to sync disk into namespace

Result:
If the dependencies of class C are no longer met, we will see a compilation error in the log. If the dependencies are met there will be no error, but we will still have a "zombie" class in our namespace. This may or may not affect the stability of the namespace.

Workaround has always been to delete zombie files by hand in the namespace.

Request:
Ideally the Import+Compile could purge the classes that no longer have an equivalent on disk. A manual purge command would also be acceptable, before or after the Import+Compile. N.B. We are using client-side editing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions