Closed pzinn closed 3 years ago
makeDocumentTag
makes very little effort to detect the correct package in the three cases below, and this is on purpose: package
calls fetchAnyRawDocumentation makeDocumentTag
, so we need to avoid an infinite loop.
https://github.com/Macaulay2/M2/blob/244e8ea71ec6fe665e4741d2b1708b520173b1b7/M2/Macaulay2/m2/document.m2#L151-L156
One way to get the correct package is to call fetchAnyRawDocumentation
on the tag:
i14 : package (fetchAnyRawDocumentation makeDocumentTag "trim(Ideal)").DocumentTag
o14 = Macaulay2Doc
o14 : Package
Regarding the bigger issue with viewHelp
, I just pushed a commit to deal with this situation; see the commit linked above.
I don't know exactly when this issue began, but on the current development branch it seems asking for help about a string results in an incorrect package and therefore the wrong path (see o3 below, compared to the correct path o5). What am I missing? or is something messed up with my configuration?