susepaste command no longer respects syntax and does not show in Recents when logged in
All, admin@o.o, Woes continue with the updated paste.opensuse.org. Many many times I simply use the susepaste command line to post C files to share. Before the new updates to the site, there was never a problem with syntax highlight not working and the "Reply" option was always provided and the paste appeared in "Recent Pastes" Just a few minutes ago I posted: https://paste.opensuse.org/pastes/63b21f6108e with the link in a comment on StackOverflow. The command to post was: susepaste -n "David C Rankin" -t "Pico MPU6050" -e 40320 -f c < mpu6050.c The link takes you to the paste, but I see: - No Syntax Highlight - No Ability for a visitor to "Reply" to the paste and - The pasted does not appear as one of "My Pastes" when logged in and it is not shown in the "Recents" list - viewing the entire page. The only thing shown in "My Pastes" is an earlier image paste https://paste.opensuse.org/pastes/7c80e743d044 related to an earlier question on this list about KDE Ark and lzma support. Why doesn't the MPU6050 paste show with C syntax highlight after being specified with -f c, and why is there no ability for visitors to "reply" to the paste anymore. Also, why doesn't it shown in the Recents list? As additional tests I added the -k option with the open-connect key I have in my paste.o.o account. I posted: https://paste.opensuse.org/15d9f5def036 susepaste -n "David C Rankin" -k heoix...<my key> -t "Robert Jenkins' 96 bit Mix Function" -e 40320 -f c < mix-seed-ctg-compare.c | tee -a "$HOME/suse/pastes" (has syntax highlight - yay, maybe it was -k required?) And I posted: https://paste.opensuse.org/1930e130a358 susepaste -n "David C Rankin" -k heoix...<my key> -t "96 Bit Mix Function w/Compile String" -e 40320 -f c < mix-seed-ctg-compare.c | tee -a "$HOME/suse/pastes" (NO syntax highlight - WTF? It's the same source with an additional c-comment) Neither are shown in "My Pastes" and neither have the ability for users to "Reply"? -- David C. Rankin, J.D.,P.E.
David C. Rankin wrote:
Just a few minutes ago I posted:
https://paste.opensuse.org/pastes/63b21f6108e with the link in a comment on StackOverflow.
I think that key is too short? https://paste.opensuse.org/pastes/63b21f6108e3
The command to post was:
susepaste -n "David C Rankin" -t "Pico MPU6050" -e 40320 -f c < mpu6050.c
The link takes you to the paste, but I see: - No Syntax Highlight
I tried to reproduce, but I failed - posted/pasted via the web interface: https://paste.opensuse.org/pastes/6c025598a2e1 pasted with susepaste, as a file (c code) https://paste.opensuse.org/pastes/a67b40fd9a7e pasted with susepaste, from stdin https://paste.opensuse.org/pastes/a67b40fd9a7e Command - /usr/local/bin/susepaste -n "Per Jessen" -t "testing C code" -e 40320 -f c <tck104328.c For me it seems to work. I don't see why yours didn't.
- No Ability for a visitor to "Reply" to the paste
I am not familiar with that function, how did it work in the past?
and - The pasted does not appear as one of "My Pastes" when logged in
I don't see how it could be, you didn't supply a key. There is nothing to associate your name with your login.
and it is not shown in the "Recents" list - viewing the entire page.
I presume because it was pasted as "Private" - susepaste doesn't have an option for "public", afaict.
And I posted:
https://paste.opensuse.org/1930e130a358
susepaste -n "David C Rankin" -k heoix...<my key> -t "96 Bit Mix Function w/Compile String" -e 40320 -f c < mix-seed-ctg-compare.c | tee -a "$HOME/suse/pastes"
(NO syntax highlight - WTF? It's the same source with an additional c-comment)
Yes, that is weird.
Neither are shown in "My Pastes" and neither have the ability for users to "Reply"?
I'll try out the pasting with a key, it seems to me that ought to work, but I don't know about the Reply function. What do you expect the Reply function to do? -- Per Jessen, Zürich (8.2°C) Member, openSUSE Heroes (2016 - present) We're hiring - https://en.opensuse.org/openSUSE:Heroes
Per Jessen wrote:
I'll try out the pasting with a key, it seems to me that ought to work,
I created a new key and then pasted something: susepaste -k mykey -t "testing C code" -f c <tck104382.c It was pasted fine, but not associated with my account. https://paste.opensuse.org/pastes/4156a3c23ad0 -- Per Jessen, Zürich (8.8°C) Member, openSUSE Heroes (2016 - present) We're hiring - https://en.opensuse.org/openSUSE:Heroes
On 4/7/23 02:34, Per Jessen wrote:
Per Jessen wrote:
I'll try out the pasting with a key, it seems to me that ought to work,
I created a new key and then pasted something:
susepaste -k mykey -t "testing C code" -f c <tck104382.c
It was pasted fine, but not associated with my account. https://paste.opensuse.org/pastes/4156a3c23ad0
That's the puzzling part, why would the -k <long key> not associate it with your (or my) paste account? I see a pattern on the C syntax-highlight. If the code as a leading comment before the #include <xyz.h> -- then highlight doesn't work. That's just a messed-up highlight model on paste.o.o Open a C file and add: /* A comment */ before #include ... I'll bet it won't be highlighted -- at least that is a consistent pattern I see. Thanks for the reply(ies)! -- David C. Rankin, J.D.,P.E.
David C. Rankin wrote:
On 4/7/23 02:34, Per Jessen wrote:
Per Jessen wrote:
I'll try out the pasting with a key, it seems to me that ought to work,
I created a new key and then pasted something:
susepaste -k mykey -t "testing C code" -f c <tck104382.c
It was pasted fine, but not associated with my account. https://paste.opensuse.org/pastes/4156a3c23ad0
That's the puzzling part, why would the -k <long key> not associate it with your (or my) paste account?
I expect that is a bug or perhaps not implemented (yet). I've added a comment to poo#127376 .
I see a pattern on the C syntax-highlight.
If the code as a leading comment before the #include <xyz.h> -- then highlight doesn't work. That's just a messed-up highlight model on paste.o.o
Well spotted! I can confirm - test#1 (no initial comment) https://paste.opensuse.org/fa45d4a4e0bb test#2 (C++ style initial comment) https://paste.opensuse.org/85239941f673 test#3 (C-style initial comment). https://paste.opensuse.org/009104383322 -- Per Jessen, Zürich (7.9°C) Member, openSUSE Heroes (2016 - present) We're hiring - https://en.opensuse.org/openSUSE:Heroes
On 4/7/23 02:24, Per Jessen wrote:
- No Ability for a visitor to "Reply" to the paste I am not familiar with that function, how did it work in the past?
Under the original paste, Your code would appear quoted in a "Reply" window so the visitor could delineate or make comments or offer suggestions in a reply. Your paste worked like a thread on this mailing list, so there could be collaboration on a paste -- now all that seems lost? -- David C. Rankin, J.D.,P.E.
David C. Rankin wrote:
On 4/7/23 02:24, Per Jessen wrote:
- No Ability for a visitor to "Reply" to the paste I am not familiar with that function, how did it work in the past?
Under the original paste,
Your code would appear quoted in a "Reply" window so the visitor could delineate or make comments or offer suggestions in a reply.
Ah, okay. I had no idea.
Your paste worked like a thread on this mailing list, so there could be collaboration on a paste -- now all that seems lost?
Perhaps not lost, but at least not implemented. I am not aware of the reasoning behind re-implementing the application when we moved to paste.opensuse.org - maybe the old application (Stikked) was suffering from bit-rot, the most recent release in from 2009. Upgrading that to a modern php version would also have meant a lot of work. "Stikked" definitely did/does a lot more than what we currently have on paste.o.o. -- Per Jessen, Zürich (8.7°C) Member, openSUSE Heroes (2016 - present) We're hiring - https://en.opensuse.org/openSUSE:Heroes
participants (2)
-
David C. Rankin
-
Per Jessen