Acode icon indicating copy to clipboard operation
Acode copied to clipboard

SFTP File caching error

Open FimastGDOld opened this issue 11 months ago • 4 comments

Check for existing issues

  • [ ] Completed

Describe the bug / provide steps to reproduce it

If a file, for example, properties.json modified by the server, then Acode caches the old file and overlays it on the new one (which was modified by the server)

Environment

Device Information: WebView Info: Package Name: com.google.android.webview Version: 135.0.7049.38

App Info: Name: Acode Package Name: com.foxdebug.acode Version: 1.11.1 Version Code: 957

Device Info: Android Version: 10 Manufacturer: HUAWEI Model: STK-L21 Platform: Android Cordova Version: 13.0.0

Screen Info: Width: 360 Height: 780 Color Depth: 24

Additional Info: Language: ru-RU User Agent: Mozilla/5.0 (Linux; Android 10; STK-L21 Build/HUAWEISTK-L21; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/135.0.7049.38 Mobile Safari/537.36

If applicable, add mockups / screenshots regarding your vision

No response

If applicable, attach your Acode.log file to this issue.

Acode.log

FimastGDOld avatar Apr 23 '25 15:04 FimastGDOld

Check for existing issues

  • [ ] Completed

Describe the bug / provide steps to reproduce it

If a file, for example, properties.json modified by the server, then Acode caches the old file and overlays it on the new one (which was modified by the server)

Environment

Device Information: WebView Info: Package Name: com.google.android.webview Version: 135.0.7049.38

App Info: Name: Acode Package Name: com.foxdebug.acode Version: 1.11.1 Version Code: 957

Device Info: Android Version: 10 Manufacturer: HUAWEI Model: STK-L21 Platform: Android Cordova Version: 13.0.0

Screen Info: Width: 360 Height: 780 Color Depth: 24

Additional Info: Language: ru-RU User Agent: Mozilla/5.0 (Linux; Android 10; STK-L21 Build/HUAWEISTK-L21; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/135.0.7049.38 Mobile Safari/537.36

If applicable, add mockups / screenshots regarding your vision

No response

If applicable, attach your Acode.log file to this issue.

Acode.log

This is intended behaviour you are supposed to refresh manually because acode has no way to check if the file is modified except constantly pinging the server which is not desirable in most cases

RohitKushvaha01 avatar Apr 24 '25 13:04 RohitKushvaha01

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment(i.e Bump!) or this will be closed in 14 days.

github-actions[bot] avatar May 31 '25 02:05 github-actions[bot]

This is intended behaviour you are supposed to refresh manually because acode has no way to check if the file is modified except constantly pinging the server which is not desirable in most cases

I do not think that is the case here.

The issue is, at least from my perspective, that Acode keeps the old buffer, so if a file is made shorter on the server side, it corrupts it.

Note that Acode does detect the server change and asks to reload it. You can clearly see the results. Everything below row 298 is "added" by Acode and doesn't exist in the file.

Image Image Image

Acode version 1.11.6 (965) Android 16 (Samsung S24)

Forza-tng avatar Nov 11 '25 18:11 Forza-tng