Bartek U.

Results 5 comments of Bartek U.

It doesn't work in Release either. I added a few Asserts that validate Captures counts and they fail in both Debug and Release. See screenshot. ![image](https://user-images.githubusercontent.com/2597165/191939352-1dbae574-c202-490e-9a54-2bf811e71a09.png)

The test file [loremipsum.txt](https://github.com/user-attachments/files/16523707/loremipsum.txt)

It seems that Peek() method is causing the issue. When I removed this call from ReadLine() method it works correctly: original code: ``` if (readLineBuff[curPos] == '\r') { // If...

OK, it looks like I narrowed it down to FileStream. It resets its Position after Length property is read. This occurs only when running the code on ESP32 hardware (_\True\_...

This is most probably the root cause: In the native driver file [littlefs_FS_Driver.cpp](https://github.com/nanoframework/nf-interpreter/blob/b07b245858f6a7ab07583bb5e1b37e4ca7e108b2/targets/ESP32/_littlefs/littlefs_FS_Driver.cpp#L412) _GetLength_ method implementation first moves file stream position to the end, reads its size, and eventually "rewinds"...