Internal Editor not saving files properly

Advertisement

bjd223
Guest

Internal Editor not saving files properly

Hello,

I do a lot of editing of PHP files from the web, and I must say winSCP has one of the best live editors I have seen yet.

Anyway Sometimes when I save a PHP (or HTML for that matter), I get some extra overlapping at the end of my files.

For example if my code ends with

[...]
<p>blah blah blah</p>

<?php

some php here

?>

<span>more html whatever</span>
<br>
</body>
</html>

At the end of the file I will get a random amount of the file duplicated below it like:

[...]
<p>blah blah blah</p>

<?php

some php here

?>

<span>more html whatever</span>
<br>
</body>
</html>
<span>more html whatever</span>
<br>
</body>
</html>


It never seems to be a set amount of the file duplicated at the bottom, but it is always about 4-6 lines. It also never looses code, just adds extra in.

It is a very strange problem and only happens every couple of days or weeks.

I am not infront of my computer, but I have the latest version of winSCP, and have not really changed any of the settings, except some of the timeout ones.

-Brian

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,517
Location:
Prague, Czechia

Re: Internal Editor not saving files properly

What protocol are you using? What version do you use? The latest stable or the latest beta?

Reply with quote

bjd223
Guest

Okay I am back on the machine in question

I am using FTP protocol with the built in editor.

WinSCP is 4.0.7 (Build 370)

Reply with quote

martin
Site Admin
martin avatar

Thanks. Once it happens can you look up temporary local file that contains the text from editor and check if that file is already corrupted? You will find the file in subdirectory of temp directory configured in preferences. By default it is system temporary directory.

Reply with quote

Advertisement

You can post new topics in this forum