File names have a cap (usually 255 characters). But there currently is no cap on the number of characters on the class names. This makes it possible to create a class with a name consisting more than 255 characters.
However, trying to export these classes with export will result in an export failure as the exported file cannot be created due to the file name length.
As class names can no longer be edited after they are created (no edit command for class), users will not be able to rectify their class names to make their classes exportable. Perhaps you could impose a character cap on the file name to fix this bug?
Steps to reproduce
Try creating a class with a very long class name (more than 255 characters) addc c/longestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilewedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowed
Go into focus mode for that created class focus c/longestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilewedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowed
Try to export the class export
TA Assist renders a 'Failed to exporterror message, and the console printsINFO: Invalid command: export`
Description
File names have a cap (usually 255 characters). But there currently is no cap on the number of characters on the class names. This makes it possible to create a class with a name consisting more than 255 characters.
However, trying to export these classes with
export
will result in an export failure as the exported file cannot be created due to the file name length.As class names can no longer be edited after they are created (no edit command for class), users will not be able to rectify their class names to make their classes exportable. Perhaps you could impose a character cap on the file name to fix this bug?
Steps to reproduce
addc c/longestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilewedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowed
focus c/longestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilewedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowedlongestfilenameallowed
export
error message, and the console prints
INFO: Invalid command: export`Screenshot