ListOf with empty separator causes a crash
See original GitHub issueThis is not important but anyway. ListOf<elem, "">
causes a crash.
Be careful when trying this with local storage in online 😉
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Separate outputs empty separator error for each row ... - GitHub
The minimum fix for this issue would be to simply put the error message once and don't go into every single row, which...
Read more >str.split(' ') giving me "ValueError: empty separator" for a ...
The original error was due to the empty seperator '', which I forgot to put a blank in it. After you modified the...
Read more >ValueError: empty separator in Python | bobbyhadz
The Python "ValueError: empty separator" occurs when we pass an empty string to the str.split() method. To solve the error, use the list()...
Read more >str.split(): allow removing empty strings (when sep is not None)
If sep is not specified or is None, any whitespace string is a separator and empty strings are removed from the result.
Read more >Bug 1580262 - startup crash in [@ nsImapUrl - Bugzilla@Mozilla
Just realised something as I was writing this: nsImapIncomingServer::PossibleImapMailbox() only ever calls nsImapUrl::UnescapeSlashes() if the IMAP separator is ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed!
Yes, sorry, should have been more clear. I know that we already have the static check as discussed above. I was suggesting an additional runtime check to catch things that the static check can’t.
Yep, that sounds great. I wondered if it might be that easy, but I worried that there was something I was overlooking.