构建工作区时 TeXlipse 错误
目前 TeXlipse 似乎遇到了一个奇怪的问题。我最近刚刚在我的机器上设置了一个项目,其中包含包含书籍章节的文件夹。然后,我将所有内容置于源代码控制之下,今天早些时候尝试在另一台机器上构建相同的项目。当我第一次打开项目并保存它时,一切都构建正常,我没有任何问题。但是,一旦我在该机器的项目中添加新的乳胶文件,我就会看到以下对话框:
构建工作区遇到问题
构建过程中出现错误
在项目上运行构建器“Latex Builder”时出错。
如果我在我的机器上执行相同的操作,则不会出现错误。有谁知道为什么我们在一台机器上而不是在其他机器上出现上述错误? Eclipse 安装是相同的,我们有相同版本的 MikTex 2.9 和相同的软件包。
出现的错误是:
Errors running builder 'Latex Builder' on project 'doc_help'. Resource '/doc_help/tmp/main.aux' already exists. Resource '/doc_help/tmp/main.aux' already exists.
提前致谢。
We seem to have a strange problem at the moment with TeXlipse. I have just recently setup a project on my machine with folders that contain chapters of a book. I then put everything under source control and earlier today tried to build the same project on another machine. When I first open the project and save it everything builds ok and I have no problems. However once I add a new latex file in the project in that machine I get the following dialog box:
Building workspace has encountered a problem
Errors occured during the build
Errors running builder 'Latex Builder' on project.
If I do the same things on my machine I get no errors. Does anyone have an idea as to why we get the errors above on one machine and not other? Eclipse installation is the same, we have the same version of MikTex 2.9 and the same packages.
The error that comes up is:
Errors running builder 'Latex Builder' on project 'doc_help'. Resource '/doc_help/tmp/main.aux' already exists. Resource '/doc_help/tmp/main.aux' already exists.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我在两种情况下遇到了类似的问题:有一次,临时文件的文件夹在 SVN 中共享,然后 Texlipse 在构建过程中引起了一些非常讨厌的事情(它首先将所有内容从 tmp 复制到 src;然后在构建后将这些内容移回)。因此,请确保临时文件不通过源代码管理共享。
对于第二个问题,我不知道是什么原因造成的。我将项目复制到另一个工作区中,在那里我遇到了类似的错误。如果我不是在本地复制,而是进行了另一次签出(完全删除旧文件后),则构建器似乎正在工作。
I got similar problems in two cases: once, where the folder for temporary files was shared in SVN, and then Texlipse caused some really nasty things during building (it first copies everything from tmp to src; then after building moves the stuff back). So, make sure, that temporary files are not shared through source control.
For the second issue, I don't know what has caused it. I copied the project in another workspace, where I got similar errors. If instead of copying locally, I did another checkout (after removing the old files entirely), the builder seemed to be working.
感谢 zoltan 的回答 我已经解决了我的问题。我正在为谁将他的带有 texlipse 的项目置于 dropbox 的版本控制下,并希望在修改 tex 文件时使用它。基本上我进入了项目属性,并从标记为 Latex 临时文件目录: 的输入字段中删除了临时目录名称:
现在它不会再给我错误并成功构建。
希望我的回答不是不恰当,它可以帮助那些想要使用 Dropbox 而不仅仅是使用本地目录的人。
Thanks to the answer of zoltan I've resolved my issue. I am posting for who puts his project with texlipse under versioning by dropbox and wants to use it while modifying tex files. Basically I went to project properties and I deleted temp directory name from input field labeled Directory for Latex temporary files:
Now it doesn't give me again errors and builds successfully.
Hope my answer is not inappropriate and it can help somebody who want to use Dropbox and not use only local directories.
也许这个错误是因为“清理”你的项目而发生的。运行“Project/Clean”将删除 tmp 文件夹。运行“项目/构建项目”不会恢复该文件夹。因此会抛出此错误消息。创建新项目时,tmp 文件夹会自动生成(一次)。
Maybe this error occured because of "cleaning" your project. Running "Project/Clean" removes the tmp folder. Running "Project / Build Project" doesn't restore that folder. Therefore this error message is thrown. The tmp folder is automatically generated (once) when a new project is created.