Skip to content

Revise not working anymore for files that contain type definition (but the type is not changed) #734

@thofma

Description

@thofma

I noticed a regression with files that contain type definitions.

I have a file, which contains a type definition

mutable struct A
  x
end

and some method definitions

function g()
end

If the file is tracked with Revise and I change g, I get:

┌ Error: Failed to revise ...
│   exception =
│    invalid redefinition of constant A

which I did not expect, since I did not change the type definition. This is with Revise version 3.5.1.

I quickly tried with Revise version 3.4.0 and it is working as expected. This means, that when only g is changed but not A, then the file is revised properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions