When using pipes the source guessing code breaks because the input variable on the Tarsqi instance is None.
File "/Users/marc/Desktop/tarsqi/code/ttk/git/ttk/docmodel/main.py", line 68, in guess_source
content = filename_or_string[:chars_to_read]
TypeError: 'NoneType' object has no attribute '__getitem__'
Checking the input cannot be done at the same spot as with the file input because we cannot read from the pipe twice, so this will need to be done later when we have extracted the string from the standard input.
When using pipes the source guessing code breaks because the
input
variable on the Tarsqi instance is None.Checking the input cannot be done at the same spot as with the file input because we cannot read from the pipe twice, so this will need to be done later when we have extracted the string from the standard input.