M2
M2 copied to clipboard
global symbols inadvertently defined by package Macaulay2Doc: 'grading', 'allComputations'
I got a strange error running the script that generates cached examples for the Debian package. I was able to isolate the problem down to the following steps:.
- Load a package that imports
Normaliz(which exportsgradingandallComputations), - Load
Macaulay2Docwith documentation:
i1 : needsPackage "NormalToricVarieties"
o1 = NormalToricVarieties
o1 : Package
i2 : loadPackage("Macaulay2Doc", LoadDocumentation => true)
/usr/share/Macaulay2/Macaulay2Doc.m2:29:1:(2):[8]: error: global symbols inadvertently defined by package Macaulay2Doc: 'grading', 'allComputations'
currentString:1:1789-1:1796: here is the first use of 'grading'
currentString:1:1450-1:1465: here is the first use of 'allComputations'
Strange. Both symbols come from the package "Normaliz", and loading Macaulay2Doc as you do causes all other packages to be loaded.