Delphi XE: dummy "Never build a package should be recompiled" / "Internal error F2084: U10346" when creating packages

I am trying to create a package (package A) containing a DWS compiler. It works, but when I have a second package (package B) that requires package A containing any unit that uses a specific block from DWS, I get an error:

[DCC Fatal Error] E2225 Package Never-build "Package A" must be recompiled

If I modify package A to recompile as necessary, the error does not disappear. Instead i get

[DCC Fatal Error] F2084 Internal Error: U10346

at the same point.

I sent an error report to http://code.google.com/p/dwscript/issues/detail?id=419 and it seems that the problem is not reproducing on the side of the author, which means that something is Wrong at my end . He offered some useful tips: "I sometimes saw this error due to a street DCU."

Finding and removing all DCUs that may be relevant did not solve the problem even after restarting both the IDE and the computer.

Running traces on the BDS using Process Monitor during the compilation process did not reveal anything that looked relevant.

Does anyone have any ideas on how to track this? Using Delphi XE, update 1.

Cross-registration in the Delphi forums. Let's see who first comes up with a solution.

+4
source share
3 answers

I also had a problem and found a job.

The problem seems to be caused by the built-in compiler functions. I remember that the error occurs when using the built-in method, and this method is too large.

This error is exceptional for Delphi XE and seems to have never been fixed.

Check the following package options

1) dwsLibRuntime package

  • Delphi Compiler / code generation / code insertion Control = Auto or On or OFF
  • Description / Build Management / Restore as needed

2) dwsLib package

  • Delphi Compiler / Code Generation / Embed Control = OFF (this is an important thing)
  • Description / Build Management / Restore as needed

Recompile packages and it seems to work, it installs correctly and I can compile DwsIdeDemo

I also posted a bug report solution made by you: http://code.google.com/p/dwscript/issues/detail?id=419

+6
source

This really seems like a false message, since installing the package in the "rebuild as needed" question does not work.

However, it worked for me to remove the package that needs to be rebuilt from the “require” tab on the package that requests it. After that, everything was built just fine.

0
source

For packaging Project option> Description> Assembly control go from Explict Rebuild to rebuild if necessary

bye

-1
source

Source: https://habr.com/ru/post/1486286/


All Articles