Skip to content

Bug in generating example responses #4311

@joel-dodge

Description

@joel-dodge

Making updates to the docs I find I am unable to rebuild and view the examples for this docs node.

If I comment out all but the first two lines I see the doc nodes that I expect (which are the ones that already existed prior to this change). If I add in a third line, The example renders as having one more empty input regardless of what the line was - and no output. If I add in a fourth line the example rendering breaks.

Here is a PR with the example that is causing me problems #4310
Talking with @mahrud he suspects a genuine bug related to how example responses are cached.

I can run the example code in M2 directly with no problem as in:

This example works locally for me as in :

i1 :     F = QQ^4
          wp = wedgeProduct(1, 1, F)
          L = exteriorPower(1, F)
          R = exteriorPower(1, F)
          wp * (L_0 ** R_0)
          wp * (L_0 ** R_1)

       4
o1 = QQ

o1 : QQ-module, free

o2 = | 0 1 0 0 -1 0 0 0 0  0  0 0 0  0  0  0 |
     | 0 0 1 0 0  0 0 0 -1 0  0 0 0  0  0  0 |
     | 0 0 0 0 0  0 1 0 0  -1 0 0 0  0  0  0 |
     | 0 0 0 1 0  0 0 0 0  0  0 0 -1 0  0  0 |
     | 0 0 0 0 0  0 0 1 0  0  0 0 0  -1 0  0 |
     | 0 0 0 0 0  0 0 0 0  0  0 1 0  0  -1 0 |

              6       16
o2 : Matrix QQ  <-- QQ

       4
o3 = QQ

o3 : QQ-module, free

       4
o4 = QQ

o4 : QQ-module, free

o5 = 0

       6
o5 : QQ

o6 = | 1 |
     | 0 |
     | 0 |
     | 0 |
     | 0 |
     | 0 |

       6
o6 : QQ

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions