Zulip Chat Archive

Stream: Zulip meta

Topic: Broken thread links after moving


Eric Wieser (Nov 27 2024 at 00:17):

@Alya Abbott, something very fishy seems to be going on with the link here

Alya Abbott (Dec 10 2024 at 18:46):

Was there a problem, or just that the topic was moved again?

Eric Wieser (Dec 10 2024 at 19:01):

The topic was moved only once, but the backticks in the topic name caused weird unicode escapes to appear in the URL. If you click the broken automated link above, the title in the sidebar is garbled as Should klzzwxh:0000 exist in Mathlib?

Eric Wieser (Dec 10 2024 at 19:02):

(note that there are two special characters in that message which only appear in the preview / source, and disappear when I sent the message)

Mario Carneiro (Dec 10 2024 at 19:15):

does using the zulip link manually work? #mathlib4 > Should Pi.instHSMul exist in Mathlib? - seems not

Eric Wieser (Dec 10 2024 at 19:20):

Using the autocomplete in the editor seems to create a correct link at least

Eric Wieser (Dec 10 2024 at 19:21):

(To be clear, Mario's message with a broken link is what you get if you write #**mathlib4>Should `Pi.instHSMul` exist in Mathlib?** by hand, rather than accepting the autocomplete)

Notification Bot (Dec 10 2024 at 19:23):

8 messages were moved here from #Is there code for X? > smul inferred by function instance by Eric Wieser.

Mario Carneiro (Dec 10 2024 at 19:52):

Oh, interesting, I did not realize that the autocomplete does something different.

  • If you autocomplete #mathlib4>Indexing a Finset
    you get #**mathlib4>Indexing a Finset**

  • If you autocomplete #mathlib4>should `Pi.instHSMul` ex
    you get [#mathlib4 > Should `Pi.instHSMul` exist in Mathlib?](#narrow/channel/287929-mathlib4/topic/Should.20.60Pi.2EinstHSMul.60.20exist.20in.20Mathlib.3F)

  • If you autocomplete any longer substring of #mathlib4>Should `Pi.instHSMul` exist in Mathlib? you get nothing

So this indicates that the autocomplete is aware that it doesn't support backticks properly, although I don't understand why autocomplete stops working if I type in even more text, there is no special character in the middle of the word exist AFAICT so maybe it's just a line length thing

Tim Abbott (Dec 13 2024 at 20:37):

The lookback is limited to 26 characters, though I think we changed it to 40 in the development branch yesterday (the limit exists at all for a combination of performance reasons and anti-bug reasons). That's why a super long prefix eventually will stop suggesting.

Tim Abbott (Dec 13 2024 at 20:38):

And yes, because backticks are a form of escape character (for making code blocks), they require special handling.

Eric Wieser (Dec 13 2024 at 21:12):

I think the bug report here then is that the "move thread" button does not implement this special handling correctly.


Last updated: May 02 2025 at 03:31 UTC