vscode-remote-workspace icon indicating copy to clipboard operation
vscode-remote-workspace copied to clipboard

Partial loading of big files after update - large files then truncated on save!

Open gezonthenet opened this issue 6 years ago • 17 comments

Since taking the new vscode and remote workspace updates today, large files are only partially loading. Not sure what else to add. Before the updates large files would open in full. i.e. only 1900 lines are loading in a file that has 4000, but in another file, only 600 lines are loading in a file of 2000.

version 0.41

when a file is then saved only the truncated lines are saved - this leads to data loss!

gezonthenet avatar Feb 12 '19 03:02 gezonthenet

Same problem here

dermitzos avatar Feb 12 '19 13:02 dermitzos

Same here, and also saved a change causing the data to be lost. Following on from the sftp bug, I'm thinking of moving to jEdit.

conmank avatar Feb 13 '19 04:02 conmank

Yes, this is a major issue that sprouted in the last update.

When saving a large file, it gets truncated.

One only finds out after closing the file and opening it again.

bmunslow avatar Feb 14 '19 08:02 bmunslow

Same problem

nenene1812 avatar Feb 15 '19 03:02 nenene1812

Same problem. Looking in to switching to netbeans now.

P.S. NetBeans is so much better in every imaginable way. Switch now. Never look back. It's fast, it let's me actually search all my remote files, I can even compile and run my c/c++ remotely and display the output right in the NetBeans console. Things like Go-to-definition actually work. I will not be coming back to visual studio code until remote support is built in natively, not provided by an always-broken extension.

AnsonKindred avatar Feb 17 '19 00:02 AnsonKindred

+1 Always the same file gets cut for the 3rd time at line 1686 out of 2181, but the remote original is still correct, until I save the file in vscode-remote-workspace plugin.

nemozny avatar Feb 18 '19 18:02 nemozny

Same problem on me. And if you saved the partial loading file, it would cover the origin one. That a big problem.

zivyou avatar Feb 20 '19 03:02 zivyou

This is hardly a problem of vscode-remote. Most probably it is ssh2 issue. @mkloubert Please take note of this issue, this is quite breaking.

nemozny avatar Feb 20 '19 12:02 nemozny

same problem. Please make it correct soon

boopathi018 avatar Feb 22 '19 05:02 boopathi018

I'm having the same issue. Went back to Atom while this gets resolved.

dangercard avatar Feb 24 '19 16:02 dangercard

@mkloubert same probleme here, files (even not so big ones) get truncated on sftp servers thank you.

Moreover creating files is hard, the file newly created doesn't open, need to delete it via filezilla and recreate a new one via filezilla

thank you

drpark avatar Feb 25 '19 10:02 drpark

Same issue here!

ghost avatar Feb 26 '19 12:02 ghost

Same problem here. After some tests, it seems that the limit is not based on the number of lines but on the number of characters, which is 65536. Anyone to confirm?

Meshz avatar Mar 01 '19 17:03 Meshz

something like this...it's dependant of the file size

drpark avatar Mar 01 '19 17:03 drpark

I noticed that 'ssh2-streams' js lib also reported a content lost issue on SFTP connection. Is it the root cause? https://github.com/mscdex/ssh2-streams/issues/43

zivyou avatar Mar 04 '19 03:03 zivyou

@zivyou Definitely.

nemozny avatar Mar 04 '19 08:03 nemozny

This is a great extension but has numerous bugs, sftp experience is sketchy and it's not being actively improved. Is there an active fork that is being maintained and improved?

alchemyconsulting avatar Mar 06 '19 12:03 alchemyconsulting