Closed mahrud closed 4 years ago
Good catch: and notice also how the first line (with the key) changes:
Macaulay2, version 1.12
with packages: ConwayPolynomials, Elimination, IntegralClosure, InverseSystems, LLLBases, PrimaryDecomposition, ReesAlgebra, TangentCone
i1 : help "quotient(Ideal,Ideal)"
o1 = (quotient,Ideal,Ideal) -- ideal or submodule quotient
...
o1 : DIV
i2 : help (quotient,Ideal,Ideal)
o2 = quotient(Ideal,Ideal) -- ideal or submodule quotient
...
o2 : DIV
i3 : help "quotient(Ideal,Ideal)"
o3 = quotient(Ideal,Ideal) -- ideal or submodule quotient
...
o3 : DIV
I think the bug is related to the difference between the formatted key, which is the string "quotient(Ideal,Ideal)"
, and the key, which is the sequence (quotient,Ideal,Ideal)
. If you ask for help with the formatted key, then it finds the documentation, but it doesn't know how to generate the synopsis because it doesn't know how to get the key from the formatted key. (It needs the key to deduce that there are two arguments and both are ideals, for example.) If you ask for help with the key, then it formats the key and saves the backward translation from formatted key to key somewhere.
If you could fix that bug of mine, that would be great!
Hmm, the value of o1
in the output I displayed indicates that the string "(quotient,Ideal,Ideal)" is available at that time. Maybe it's a matter of applying value
to it.
Mahrud, what about adding another color to the github highlighting, for strings?
asdfasdf "qwerqwer" asdfasfd ///skdfjsldkfjslkdfj///
If you could fix that bug of mine, that would be great!
I haven't been able to understand this part of Core yet, but I can make this a key result of updating document.m2 if you'd like.
Either that or a new issue would be fine.
@DanGrayson also, help "Macaulay2"
seems to only show the first paragraph and ignore the subnodes. Is this correct?
No, that seems wrong. Also this:
i3 : viewHelp "Macaulay2"
stdio:3:1:(3): error: internal error: html documentation file does not exist: /Applications/Macaulay2-1.12/share/doc/Macaulay2/Macaulay2Doc/html/___Macaulay2.html
I just realized this is duplicate of #907. I'll close that one, since the discussion here has more information.
Also a duplicate of #814. Quoting from there to consolidate
And that's probably handled by this code:
-- we need to be able to do this only for the document tags we have shown to the user in formatted form unformatTag := new MutableHashTable record := f -> x -> ( val := f x; if val =!= x then unformatTag#val = x; val)
First run
help "quotient(Ideal,Ideal)"
and notice that the synopsis is missing:The same is true of
quotient(Ideal)
:Then run
help "quotient"
to see a synopsis:And here's the bizarre part:
Now both
quotient(Ideal,Ideal)
andquotient(Ideal)
have synopses:The result above is from a distributed M2 v1.14! I spent an hour figuring out how I messed this up before I realized that the recent changes have nothing to do with it.