Closed samdupton closed 1 year ago
I looked into this a bit more and I think this is a symptom of a slightly different problem. When loading the package in Mathematica, a red button appears on the RHS of the cell with the Get command which says "Show Messages / Retry" when hovering over it. I think it's this that causes this error as when you click it, it doesn't show any messages, it just tries to reload the package causing the error with multiple definitions.
To figure out why this button appears, I had a look at the Stack using the Debugger facility and the code breaks at these points:
Message[Syntax::com, (line 502 of "SchwarzschildPerturbations.wl")]
Message[Syntax::com, (line 503 of "SchwarzschildPerturbations.wl")]
Message[Syntax::com, (line 504 of "SchwarzschildPerturbations.wl")]
Message[Syntax::com, (line 505 of "SchwarzschildPerturbations.wl")]
Message[Syntax::com, (line 507 of "SchwarzschildPerturbations.wl")]
Message[Syntax::com, (line 560 of "SchwarzschildPerturbations.wl")]
Message[Syntax::com, (line 561 of "SchwarzschildPerturbations.wl")]
Message[Syntax::com, (line 562 of "SchwarzschildPerturbations.wl")]
Message[Syntax::com, (line 563 of "SchwarzschildPerturbations.wl")]
Message[Syntax::com, (line 599 of "SchwarzschildPerturbations.wl")]
Message[Syntax::com, (line 600 of "SchwarzschildPerturbations.wl")]
The lines of code these refer to all seem to be of the form:
If[MemberQ[___,___],,Message[SchwarzschildSource::argserror,Source]]
These have now been fixed.
When loading the package for the first time, I receive a list of error messages:
I have tried running the package multiple times in the same kernel session and I receive the same errors.
I am using xTensor 1.2.0 and Mathematica 13.2.0.0.