3 ms·
> had 0 problems with Revise Try changing a struct.
by neolog 5y ago
> had 0 problems with Revise
Try changing a struct.
- dm3 5y agoThat's definitely a problem. I work around by naming all my structs with a `_1` suffix and `%s/_1/_2/g` (VIM find-replacing) every time a struct changes. Otherwise I find Revise works great.
- fishmaster 5y agoWrap it in a module, then you can change it without any problems. It's not ideal, but it works very well in practice.
- jonniedie 5y agoRevise can’t change structs in modules either. The only sane way I’ve found to handle this is using a Pluto notebook. But that’s not for everybody.
- fishmaster 5y agoI can definitely redefine a struct in a module.
- jonniedie 5y agoReally? I’d love to know how to do that because I run against this issue every day. Are you in the package’s environment or using `includet`?
- gugagore 5y agoYes, that is an important limitation of Revise that I hope goes away. Until then, consider this work-around: https://github.com/BeastyBlacksmith/ProtoStructs.jl https://github.com/BeastyBlacksmith/ProtoStructs.jl