Character number limit in code comments? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 8

Character number limit in code comments?

I noticed that if I ramble on for too long in the code comment, the text is not added or saved. I just get a "No network" error, the comment is lost and I do not get a warning on "text too long" or anything. Do you experience the same? If so, do you know what is the text length limit for code comments?

2nd May 2017, 7:20 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
2 Réponses
+ 18
Yes @Kuba, there is a limit of 2048 characters. I had the same problem but in these last updates my long answers are sended without any problem... maybe the words used are less than 2048. ^_^ You can view the limit in the browser version of SL, "Discuss" section.
2nd May 2017, 7:40 PM
Maz
Maz - avatar
+ 3
Aha, thanks @Maz. Too bad it kind of disposes of the whole comment instead of checking for the input length beforehand. A kind of an uncaught exception here... :)
2nd May 2017, 8:14 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar