Aptana不保存更改 [英] Aptana not saving changes

查看:62
本文介绍了Aptana不保存更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将Aptana安装到新笔记本电脑上的方式与在所有计算机上安装的方式相同.当我对项目中的文件进行更改时,这些更改不会写入本地文件本身(通过在另一个程序(如记事本)中打开文件来确认).但是,即使我重新打开Aptana中的文件(即使重新启动计算机),也仍然可以看到对该文件所做的更改.

I have installed Aptana onto my new laptop the same way as I have installed it on all my computers. When I make changes to a file in my project, those changes are not getting written to the local file itself (confirmed this by opening the file in another program like notepad). However, if I re-open the file in Aptana (even if i restart the computer), I can still see the changes that I have made to that file.

我以前从未见过Aptana这样做.在我所有其他计算机上,都不会发生这种情况.通常,我只是在项目中打开文件,保存所做的更改,所做的更改会立即保存,以便我通过FTP传输文件.

I have never seen Aptana do this before. On all my other computers, this does not happen. Usually I just open the file in my project, save my changes and the changes are saved instantly ready for me to FTP the file.

起初,我认为这是一个权限问题,因为即使在记事本中打开文件也无法保存文件.我更新了文件夹权限,但是仍然无法解决任何问题.

At first I thought it was a permission issue as I was unable to save the file even when opening in notepad. I updated the folder permissions but this still has not resolved anything.

有人可以建议解决此问题的方法吗?

Can anyone suggest a way to fix this?

推荐答案

我有两种方法.

  1. 如果我使用现有的.git创建了一个新项目,则不会对git在原始目录中管理的文件进行任何更改.

  1. If I created a new project with an existing .git, then no changes were written to the files git was managing in the original directory.

如果我从文件夹(没有git)创建了一个新项目,并且没有更改写入该原始目录.

If I created a new project from a folder (no git), and no changes were written to that original directory.

通常,Aptana会将文件的内容复制到它正在使用的项目目录"中(我的机器上的默认目录是〜/Documents/Aptana .../ProjectName).

As a general rule, Aptana will copy the contents of your files over to the "project directory" it is using (default on my machine was ~/Documents/Aptana.../ProjectName).

因此,您要么必须将project-directory用作保存文件的父目录,要么必须开始使用project-dir/ProjectName目录作为工作文件夹.

So, you either have to make the project-directory the parent dir of where you keep your files, or you have to start using the project-dir/ProjectName directory as your working folder.

每当要将文件复制到另一个本地目录时,也可以执行文件->导出->常规->文件系统".

You can also do "file->export->General->FileSystem" whenever you want to copy the files to another local dir.

这篇关于Aptana不保存更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆