| Author |
Message |
|
flashiscrap
Member
Joined: Fri Aug 14, 2009 8:28 am Posts: 1
|
 How to disable incremental compilation?
I tried to add -incremental=false option, but flex compiler annoyed me with
command line: Error: configuration variable 'compiler.incremental' must only be set once Use 'mxmlc -help' for information about using the command line. Build halted with errors (fcsh).
Thanks.
|
| Fri Aug 14, 2009 8:33 am |
|
 |
|
Philippe
Admin
Joined: Wed Aug 31, 2005 7:27 am Posts: 10747 Location: Paris, France
|
 Re: How to disable incremental compilation?
This is currently not possible.
If you have a compiler cache problem you can switch to another project and back to your project - this will reset the compiler.
|
| Fri Aug 14, 2009 3:38 pm |
|
 |
|
2morrowMan
Member
Joined: Sat Sep 06, 2008 4:33 pm Posts: 11
|
 Re: How to disable incremental compilation?
Is it possible now?
|
| Sat Mar 27, 2010 11:01 pm |
|
 |
|
ruyadorno
Member
Joined: Tue Aug 11, 2009 1:58 am Posts: 2
|
 Re: How to disable incremental compilation?
And now?
|
| Wed Aug 18, 2010 7:04 pm |
|
 |
|
Philippe
Admin
Joined: Wed Aug 31, 2005 7:27 am Posts: 10747 Location: Paris, France
|
 Re: How to disable incremental compilation?
Technically, if you remove 'fcsh.exe' in your Flex SDK, FlashDevelop should switch to non optimized compilation.
|
| Wed Aug 18, 2010 7:10 pm |
|
 |
|
ruyadorno
Member
Joined: Tue Aug 11, 2009 1:58 am Posts: 2
|
 Re: How to disable incremental compilation?
I tried it but is giving me weird results... I deleted the fcsh.exe from my flexsdk bin folder but in FlashDevelop console it still saying "Using the Flex Compiler Shell." and using -incremental=true after that...
|
| Wed Aug 18, 2010 8:37 pm |
|
 |
|
Philippe
Admin
Joined: Wed Aug 31, 2005 7:27 am Posts: 10747 Location: Paris, France
|
 Re: How to disable incremental compilation?
Ah right, we're not using the .EXE anymore, but the JAR library directly. Removing (renaming) fcsh.jar in the SDK's libs does the trick.
|
| Thu Aug 19, 2010 8:03 am |
|
 |
|
rapit
Member
Joined: Fri Jan 23, 2009 10:52 am Posts: 34 Location: Kraków, Poland
|
 Re: How to disable incremental compilation?
Is it possible to add 'Rebuild' button or context menu item in project panel just like in VStudio?
Sometimes I have problems with incremental compilation too.
Standard 'Build' does incremental=true 'Rebuild' does incremental=false
_________________ English... still learning ;)
|
| Tue Dec 07, 2010 8:43 am |
|
 |
|
Philippe
Admin
Joined: Wed Aug 31, 2005 7:27 am Posts: 10747 Location: Paris, France
|
 Re: How to disable incremental compilation?
Ok added in FD4 branch: a "Clean Project" action in the Project menu to clear the compiler cache (and also tries deleting the output SWF).
|
| Tue Dec 07, 2010 1:08 pm |
|
 |
|
makc
Member
Joined: Thu Mar 27, 2008 2:13 pm Posts: 205
|
 Re: How to disable incremental compilation?
as you might notice I am trying to use latest sdk 4.5 and it goes crazy with incremental build  so this is kind of necessary feature.
_________________ Was seen using 4.0.4 RTM b2 rev. 2337 on Win7 .NET 2.0 on July 29th, 2012
|
| Wed May 04, 2011 5:50 pm |
|
 |
|
narky
Member
Joined: Mon Apr 16, 2012 7:26 am Posts: 7
|
 Re: How to disable incremental compilation?
Sorry to bump this old thread. But renaming fcsh.jar now throws an error.
compiler.incremental throws an error
And it isn't possible to turn Clean project on consistently.
Is there a new way to fix this now that renaming fcsh.jar is broken.
|
| Mon Apr 16, 2012 7:30 am |
|
 |
|
Philippe
Admin
Joined: Wed Aug 31, 2005 7:27 am Posts: 10747 Location: Paris, France
|
 Re: How to disable incremental compilation?
Yes very old thread, FCSH is now always used. You can reset the compiler by re-opening the project.
|
| Tue Apr 17, 2012 7:50 am |
|
 |
|
narky
Member
Joined: Mon Apr 16, 2012 7:26 am Posts: 7
|
 Re: How to disable incremental compilation?
Sorry about dragging up the old thread. I just figured it might be better to continue the discussion. And the search engine lead me here.
The problem is that if you do something like
package { import flash.events.MouseEvent; import flash.utils.getQualifiedSuperclassName;
[Embed(source = "../lib/assets.swf", symbol = "Button1")] public class TesterGreen extends BaseTester { override protected function onClick(e:MouseEvent):void { super.onClick(e); } } }
It does not cache properly. So you have to open and close every compile.
It's a bug in FCSH as far as I can tell. It would be great if you bought back a way to disable it.
It also bugs when you try to override and existing class.
E.g. if you have a swc imported with a baseclass and you have a class with the same name to override (replace is prolly a better word) it.
Might not be typical ways to use flash. But are important in my work flow, because it means you can bake your code into assets and separate out the design/code flow better. Letting designers concern themselves with layout.. and programmers with functionality.
Last edited by narky on Fri Apr 20, 2012 12:16 am, edited 1 time in total.
|
| Thu Apr 19, 2012 10:06 pm |
|
 |
|
narky
Member
Joined: Mon Apr 16, 2012 7:26 am Posts: 7
|
 Re: How to disable incremental compilation?
an example that will break fairly consistently http://plosy.com/LoadOrder.rarrenaming fcsh used to solve it. Thanks heaps for your help. I imagine I'm a bit of an edge case. 
|
| Fri Apr 20, 2012 12:12 am |
|
 |
|
Philippe
Admin
Joined: Wed Aug 31, 2005 7:27 am Posts: 10747 Location: Paris, France
|
 Re: How to disable incremental compilation?
I'll try your example - for what it's worth I very often use the swc base class replacement and don't have compilation problems.
|
| Sun Apr 22, 2012 1:17 pm |
|
|