What are derived files in Eclipse?

前端 未结 6 1090
清酒与你
清酒与你 2021-02-06 20:54

I have problem with derived files. Some of my files in my project are \'derived\'. When I want to edit these files, I get the following message:

"This f

相关标签:
6条回答
  • 2021-02-06 21:32

    You probably tried to edit file in "target" directory.

    0 讨论(0)
  • 2021-02-06 21:34

    i had this problem after creating a LaTeX document with TeXlipse. TeXlipse placed the output (PDF) file in the same folder, and marked the entire folder with Derived attribute. Derived files are those that have been automatically generated and should not be edited or the changes will be lost next time the files are regenerated. Clearly not all the files in the folder were derived. By right clicking on the folder and selecting Properties, I could see that the Derived attribute was set, but unchecking it did not help (next time it was checked again).

    If the problem actually is with Maven, then this won't work, but in case somebody is having this problem after creating a TeXlipse document, here's the solution:

    1. Right click on the project, select Properties, then select Latex Project Properties.
    2. Either uncheck Set LaTeX output files as derived, or modify the Output File path so that the file will be written into the project root or into a different folder.
    3. Right click on the folder that has the Derived attribute, select Properties, uncheck Derived.
    0 讨论(0)
  • 2021-02-06 21:39

    I just had this problem, I accidentally dragged and dropped a package into the gen folder. This set a flag on the package as derived. When I copied back it still existed, and affected all the sub files.

    I just right click on package, properties and unticked Derived, and problem solved.

    0 讨论(0)
  • 2021-02-06 21:47

    There isn't necessarily a problem. Derived files are those that are being generated on the basis of other files. And when you edit them, the next time they are generated, your edit is lost.

    Try to find which are the source files.

    0 讨论(0)
  • 2021-02-06 21:57

    Derived files are those are in target directory and has been generated for packaging. Take a look and try to edit the good ones

    0 讨论(0)
  • 2021-02-06 21:57

    I faced with the same problem during editing Latex documents in TexLipse plugin. Accidentally, I was not able to modify my documents although before this 5 minutes ago I had had this possibility. To overcome the problem I simply deleted the project from the workspace and imported it once again. The checkbox of derived files was not checked.

    0 讨论(0)
提交回复
热议问题