Any ideas why Flex's incremental compilation won't work for sequential compilations of the same source?
I am running mxmlc on the command line with -incremental = true. Flex creates the cache file using the checksum the first time. Subsequent compilations with this message fail:
Could not match compilation target to path_to_cache / projectname_329043.cache file. The cache file will not be reused.
- path_to_cache exists
- the cache file exists in path_to_cache
- the compiler doesn't try to create a new cache file, so I guess it generates the same checksum
My environment:
- Flex 3.0
- Mac - OSX 10.4.x
a source to share
I just ran into this problem myself and after not finding the answer anywhere on the internet, I came across mxmlc practically on trail-and-error until I found the answer. In my case, I was updating the flex config XML file every time I compiled from ant. It turns out that this is the error you get when she thinks the configuration has changed. You can check this simply by touching your config file and working from unmodified sources. So, if the timestamp changes to your flex config.xml between compilers, this is most likely the culprit.
a source to share
It might be a permissions issue. Have you tried working with sudo
? I wouldn't recommend doing this all the time, but if usage sudo
makes the error go away, then you know it's a permissions issue; and you can go to the right way to solve it.
You can also try going to Disk Utility and checking / repairing disk permissions. OSX was known for doing this sometimes.
a source to share