Menu

Notepad ++ Incorrectly saving files

2007-03-22
2012-11-13
  • Nobody/Anonymous

    This is the best place I could think to post this problem.

    I'm currently have ExpressionEngine (CMS) set up to save my templates as files and I use a combination of SftpDrive (allows Web servers to be used as network drives via sftp) and Notepad ++ to edit these files.

    Most of the time this runs perfectly but I've noticed that occasionally the files don't save correctly. It appears that if I've deleted lines from the file the resulting saved files has those same amount of lines at the end of the file.

    So I get something like this
    [code]
    </body>
    </html>yes"}{title}{/exp:replace}{/related_entries}{/if}<br />
            {/exp:weblog:entries}
        </div>
    </div>

    <div class="hr">
    <hr/>
    </div>

    {embed="v4/footer_inc"}
    </div>
    {if username == 'lodewijk' OR username == 'DJWebb'}{total_queries} in {elapsed_time}s{/if}
    </body>
    </html>
    [/code]

    Obviously these files throw an error as soon as you go to the page.

    Is there a known problem with using Notepad ++ on network drives (I had a search around and couldn't find one? Am i doing something wrong? Does anyone have similar experiences?

    I'm cross posting this on the ExpressionEngine support as well as SftpDrive and I'll see what response I get there too.

     
    • MJG

      MJG - 2007-03-29

      A couple of additional considerations:  I'd also look at whether there were spaces in the pathnames, and I'd wonder about UNC paths on network drives (because I personally have not tried this).  I've not had good fortune making changes across a network, what with different OSes (WinXP vs Win95, Win2K logon issues, etc), access permissions, and the like.

      For example: with Vista, some Linux-based NAS (network addressed storage) drives are not accessible without a firmware update (and maybe not even then!); Vista has changed the rules.  --Joel

       
    • Miamidot

      Miamidot - 2007-03-29

      Do you encounter the same problem when you use
      notepad or wordpad or any other editor?

       
MongoDB Logo MongoDB