M2 icon indicating copy to clipboard operation
M2 copied to clipboard

global symbols inadvertently defined by package Macaulay2Doc: 'grading', 'allComputations'

Open d-torrance opened this issue 4 years ago • 1 comments

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 exports grading and allComputations),
  • Load Macaulay2Doc with 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'

d-torrance avatar Nov 24 '21 03:11 d-torrance

Strange. Both symbols come from the package "Normaliz", and loading Macaulay2Doc as you do causes all other packages to be loaded.

DanGrayson avatar Nov 24 '21 15:11 DanGrayson