SVN hidden files affecting Flash CS3 publishing
August 5, 2008 – 9:47 pm by Sam AhnIt appears that SVN hidden files can affect Flash CS3 publishing. A couple other developers and I came across an issue when trying to publish an .fla. We’re all on Window XP and the files are in SVN. One day Flash started showing errors when publishing such as:
- 1046: Type was not found or was not a compile-time constant: [class with static consts].
- 5001: The name of package ‘[class package]‘ does not reflect the location of this file. Please change the package definition’s name inside this file, or move the file. [class pointing to library symbol]
Of course we couldn’t find any issues with the code or .fla. After much trial and error it was discovered that if you exported the source files (thus removing all SVN hidden files) it published without any errors. After even more trial and error, it was discovered that there is some threshold of files in SVN that when exceeded causes those mysterious errors (this related post tipped me off.). In one project there were roughly 200 class files and the mysterious errors appeared. After running SVN cleanup (which removes temporary hidden SVN files), the errors went away. This unfortunately didn’t help in another larger project. As a work-around we can publish on exported files.
What bothers me is that Flash CS3 publishing is affected by files it’s not told to look for. Could it be related to the fact that SVN hidden files include copies of the versioned files (e.g. .svn/text-base/MyClass.as.svn-base)?
I’m not surprised that I couldn’t find much information on this bug because most people who version control larger Flash projects are likely using Flex Builder.
I’ve submitted a bug to Adobe but hope there’s a more direct solution. Is anyone else having such an issue? Does anyone have any insight into how Flash CS3 publishes or how SVN hidden files affect other applications?
3 Responses to “SVN hidden files affecting Flash CS3 publishing”
Hey,
I’ve had this problem before.
The solution is either to export your svn repository before compiling, or (more preferably for me) fix your invalid imports. That is, imports that you’ve included, but don’t actually resolve to anything.. this might involve some work to go through your .as files :)
By Ash on Aug 23, 2008
Yeah, that’s what we’ve been doing (exporting and working in another directory and so forth). PIA.
I do regularly produce asdocs which chokes on invalid imports so those _should_ be gone. But you never can be too sure.
By Sam Ahn on Oct 9, 2008
Hello, I generated a bug in the Flash IDE on my MacBook Pro OS X 10.5 while attempting to execute the VirtualZoo application for Essential ActionScript 3.0 by Colin Moock.
Bug: “A definition for the document class could not be found in the classpath. So one will be automatically generated in the swf file upon export.”
It seems Flash is not able find any classes in the project’s directory. Even when creating a new FLA file with a classpath entry to the project’s directory ; the compiler would just refuse to find ANY classes in that particular directory.
Since I am not a programmer and am not familiar with SVN, can someone tell me how to correctly subversion “EXPORT” the project via the Mac terminal. I have attempted, however it generated this message:
acespotan-macbook-pro:bin acespotan$ svn export file:///Users/acespotan/Desktop/virtualzoo/src
svn: Unable to open an ra_local session to URL
svn: Unable to open repository ‘file:///Users/acespotan/Desktop/virtualzoo/src’
I have also downloaded the latest subversion from http://subversion.tigris.org/ as well as snvX recommended by online flash blogs; however I must be typing the syntax incorrectly because it does not give me an option to export. HELP!!!
Any help is much appreciated, thanks much in advance.
By Grace on Oct 21, 2008