FlexBuilder not checking for errors in AS files

FlexBuilder 2 isn't finding any errors in AS files that
aren't explicitly referenced in an MXML file for anyone in my
office. This seems like a pretty basic function everyone needs, so
I can't imagine it's not a huge bug....
To be more specific, I have a flex project set up with two
files in the root named SimpleTest.as and test.mxml. If test.mxml
is empty, I can write absolutely anything into the .as file and
flex builder won't locate any errors in real time. As soon as I
instantiate an instance of SimpleTest in my mxml file, however,
flex builder suddenly reports all of the problems in the problems
view, and we're good to go.
This is a huge pain from a development standpoint - I don't
want to have to keep an instantiation of a class just to find if
there are any errors in it. And if I'm not able to find errors in
real/development time, FlexBuilder becomes a glorified text editor
with the only real useful AS feature being code hints.
If the project is an ActionScript project instead of a Flex
project, flex builder will detect errors on AS files if they're in
the root package, but files nested in folders aren't checked for
errors unless an instance of the class exists in another
root-package object.
Is there anything we can do to fix this? Is anyone else
seeing this error?
Thanks.

Sorry guys, but the way Flex ignores unreferenced .as files
is just plain wrong, and it's also inconsistent. There... thats the
synopsis of this post, now the explanation.
In our app, we want to have a list of menu items that are
read in from the database. Each item consists of the man-readable
text and the name of a class that is normally derived from
TextWindow. The user clicks on a menuitem and the window appears.
Flex provides the function flash.utils.getDefinitionByName()
which will return the class definition for the given class name
supplied as a string. But it will only work if the class is loaded
i.e it has been referenced somewhere. To get around this, I have
had to create my own map of class names to class definitions. In
other words, I've had to rewrite getDefinitionByName.
quote:
Well, it makes sense to me that the IDE should ignore a file
if you're not actually using it.
Yes, but what the IDE doesn't know is that you may want to
create an instance of the class
without referencing it directly. getDefintionByName is the
proof that there was/is some intention to be able to do that. IMO
this is a reasonable thing to want to do, e.g if functionality is
enabled/disabled according to user security, then one would expect
to be able to dynamically create classes at runtime.
getDefinitionByName() should allow me to do that. After all, the
function exists to begin with, so it should work. But it only
partially works because the IDE doesn't load up unreferenced .as
code.
If the .as file appears in the project, it should be
compiled. Period. The fact that it is not referenced should not
determine whether or not it is compiled. getDefinitionByName would
then work as I reasonably expected it to work and allow dynamic
creation of classes.
The
Inconsistency I mentioned earlier is therefore that Flex
offers the getDefinitionByName but renders it pretty useless as you
have to reference the class anyway.
Finally all the other development languages I have used will
compile all source in the project regardless of whether or not it
is referenced. This includes C++, C#.NET and Visual Basic. So Flex
is definitely the odd one out here.

Similar Messages

  • When i connect my ipad2 to iTune, it show "iTunes could not check for an update to the carrier settings for your iPad. An unknown error occured (1651)". What should i do to solve this problem? My iTune version is 10.1.4.10 and my ipad is 4.3.5.

    When i connect my ipad2 to iTune, it show "iTunes could not check for an update to the carrier settings for your iPad. An unknown error occured (1651)". What should i do to solve this problem? My iTune version is 10.1.4.10 and my ipad is 4.3.5.

    If you have iOS 7.1 then you must be a developer, so you should be posting in the developer forums : https://devforums.apple.com/index.jspa

  • I am trying to sync my ipad with my computer and keep getting the following message: iTunes could not check for an update to the carrier settings in your ipad.  an unknown error occurs (1631).  what do I do??

    am trying to sync my ipad with my computer and keep getting the following message: iTunes could not check for an update to the carrier settings in your ipad.  an unknown error occurs (1631).  what do I do??

    The search bar can be very valuable...........
    In using it, I found out other's have had this issue and it likely means you have a 3G iPad?  If you do, go into settings and turn off cellular data, then try to update again and you should be OK........

  • Starting ColdFusion server: error, no known vms (check for currupt jvm.cfg file)

    just installed ColdFusion, from adode flex 3 training from the sourse. But when I check to see if it works correctly by entering jrun -start cfusion in the command prom I get the error, no known vms (check for currupt jvm.cfg file). I tried uninstalling Java and reinstalling but nothing changed.
    I don't know what I need to do to get it working can anyone help?
    many thanks

    When you say you can't open the jvm.config file, what exactly does this mean? Is the file zero-length? How have you tried to open it? It's a text file, and should be opened in Notepad.
    Dave Watts, CTO, Fig Leaf Software
    http://www.figleaf.com/
    http://training.figleaf.com/
    Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
    GSA Schedule, and provides the highest caliber vendor-authorized
    instruction at our training centers, online, or onsite.
    Read this before you post:
    http://forums.adobe.com/thread/607238

  • TS2753 I have ipad 3  iOS  7.1 last update when connect to my macbook osx 10.8.5 get the following error  "iTunes could not check for an update to the carrier settings for your iPad A unkown error occurred 1651"

    I have ipad 3  iOS  7.1 last update when connect to my macbook osx 10.8.5 get the following error  "iTunes could not check for an update to the carrier settings for your iPad A unkown error occurred 1651"
    any help please

    If you have iOS 7.1 then you must be a developer, so you should be posting in the developer forums : https://devforums.apple.com/index.jspa

  • Good Morning, this morning I received the following error message when the iPhone connected to iTunes: itunes could not check for an update to the carrier settings for your iphone. an unknown error occurred (1635) iphone 3gs with IOS 5. any ideas? thx

    Hello,
    this morning I received the following error message when the iPhone connected to iTunes: i
    tunes could not check for an update to the carrier settings for your iphone. an unknown error occurred (1635) 
    any ideas? thx

    I get the same error (although in Dutch ;-)).
    It also says something like (I'm translating): "Make sure your network settings are correct and your networkconnection is active or try again later." Is there a way to find out these "correct networksettings"?
    I now get it for a week, eacht time I connect my iPhone to itunes...

  • Error: no known VMs. (check for corrupt jvm.cfg file)

    I have just installed jdk1.4 on my pc (windows 2000).
    Whenever I try to run a compiled class at the command line i.e java classname, I get the error message "Error: no known VMs. (check for corrupt jvm.cfg file)".
    Looking through my file system I actually have two similar copies of jvm.cfg in two different directories.
    Please help.

    For anyone who is interested, I uninstalled and re-installed SDK.

  • When I click on check for update I get error, iTunes could not check for an update to the carrier settings for your iPhone. an unknown error occurred 1630

    when I click on check for update I get error, iTunes could not check for an update to the carrier settings for your iPhone. an unknown error occurred 1630
    Make sure your network setting are correct and your network connection is active or try again latter.

    update your itunes to 10.5.2 and error is not showing up anymore..

  • While importing a request error message' Check-sum error in data file'

    Hi Friends
    I have a problem.
    We are trying to inport a request after putting the files in cofile and data file folders( 4.6C System).While doing so an error message is seen in the log " Check-sum error in data file after XXXX bytes".
    Can some one help me with this?
    Thanks
    Regards
    Ankur

    Hi Ankur,
    It is sure your file is corrupted or not present.
    Check in cofiles and data directory under /usr/sap/trans your transport request number.
    Best Wishes.
    Kumar

  • Document library open in client application not working for img,pdf,txt files

    In an office 365 sharepoint site i have enabled open in client applicartion for document library but it is not working for image/txt/pdf files for word and excel files it is working fine. I have even turned on the feature open document in client application
    by default from site collection features also but there is no change.
    Please advice.
    Regards,
    Chaitanya

    Hi Chaitanya,
    The feature is currently designed to be used with HTTPS, and will not work as expected with the HTTP connection available on Office 365 for professionals and
    small businesses sites.
    To take advantage of this update, do the following steps:
    Wait for the update to the SharePoint Online service, which is in progress now.
    Upgrade Adobe Reader to the version 10.1.2 client.
    Add your SharePoint Online root URL/domain to the Trusted Sites security zone in Internet Explorer1 (e.g., 
    https://contoso.sharepoint.com).
    Check the Keep me signed in box when you log in to a SharePoint Online site.
    This
    SharePoint Online update is currently
    being rolled out worldwide along with several other new features.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Checking for errors in application item computation (at page level)

    I have a conditional computation used to set the value of an application-level item.
    In the condition, I need to check to see if the action (button-press to initiate DML processing) generated an error (eg cannot delete row because of child records). I don't need to catch/handle any specific errors, I just need to know if an error occurred.
    What do I check for? I've seen references on the forum to hidden page items Pxx_msg and Pxx_err, but I've played around with them, and apparently don't know how they're set.
    Another thought I had is to create a before-computation process that checks to see if there is some sort of error/exception, but I'm not having luck w/ this either.
    Ideas?
    Thanks,
    C

    Max -- I appreciate you helping me to clarify this issue. I need to track which database tables have had data changes committed to them in the course of the app running. My thought is to track this in an application item (a list of changed tables), and check/set the item as needed when delete/create/apply changes buttons are pressed. But if a DML statement fails, I don't want to add the table to the list of modified tables.
    When I was setting the app item in a computation, it appeared that (like you said) I was trying to check for errors before the process had executed. (I'm also not sure I was checking for errors in the correct manner.) Regardless, the result was that the table got added to the list even when the delete operation failed because of child records.
    What I'm doing now appears to work (and sorry, I can't actually access the app this morning, the server is down, so I may not be able to communicate this as clearly as I'd like). If I recall, yes, I'm setting the item in a post comp/validation process. I'm still not doing any error checking, but it appears that if there is an error, the process isn't executing: the item is definitely not getting set.
    Can you clarify what you mean when you say that "all of this will execute before the processes". Do you mean that comps and page processes will execute before DML is executed on the database?
    Thanks,
    Carol

  • Is there some way to instruct iTunes to not check for updates of one of my apps?

    2nd gen ipod touch running 4.2.1 (which is the highest availble for that generation).
    I have a free weather app that just came out with an update. This new version requires at least 4.3.
    Since I have the older version of the app, iTunes notifies me of the update, which is not going to work on my ipod. (Actually I downloaded it anyway just to confirm that it wouldn't work, and sure enough, it didn't even want to start).
    So now that I have deleted that version and reloaded the old one, will I be stuck with that number 1 next to the Apps icon for ever more? Is there some way I can instruct iTunes to not check for updates of that app? Or is there some other solution that isn't apparent to me?

    You get all the new iWork suite (Pages 5, Numbers 3 & Keynote 6) free with your Mac purchase. You just need to go to the App Store and sign in with your Apple I.D.
    We warn against relying on the new iWork Apps, they really are just public betas and we are getting a number of users here with unopenable files. Bad news if this is your Masters.
    iWork '09 can be purchased as a Boxed DVD set from Amazon US$27, or online.
    It is much more usable and safer (not totally).
    LibreOffice [free] does not have as polished a UI but is actively supported, and uses open file formats as well as MsOffice formats. It also has the advantage of opening/saving virtually every known format on the planet (wish it would do Pages!) and has a usable but not briliant intgrated database.
    Peter

  • I am on a MAC Application. It has  been rejected by following reason.  This app does not check for the existence of a purchase receipt, which can prevent In-App Purchases from being correctly processed. We recommend implementing receipt validation to reso

    I am on a MAC Application.
    It has  been rejected by following reason.
    This app does not check for the existence of a purchase receipt, which can prevent In-App Purchases from being correctly processed.
    We recommend implementing receipt validation to resolve this issue.
    At a minimum, the app will need to check for the existence of an App Store receipt and exit at launch with a status of 173 if it does not exist.
    Any help ?
    Thanks in Advance.

    I am on a MAC Application.
    It has  been rejected by following reason.
    This app does not check for the existence of a purchase receipt, which can prevent In-App Purchases from being correctly processed.
    We recommend implementing receipt validation to resolve this issue.
    At a minimum, the app will need to check for the existence of an App Store receipt and exit at launch with a status of 173 if it does not exist.
    Any help ?
    Thanks in Advance.

  • Texts not checked for deletion are deleted

    whenever I delete texts and pictures on iPad or iPhone 6, even texts and pictures I DO NOT check for deletion are deleted anyway

    Maybe a bug with PCL driver explained (but not corrected) in this [Note 724912 - OTF driver: Command sequence different after upgrade|http://service.sap.com/sap/support/notes/724912]
    It's normal that it dumps between select/endselect with the old debugger. Try to use the new debugger if it exists in ECC 5 (it should exist as it corresponds to basis 6.40 if I remember well).
    You may activate sapscript debug from SE71 menu.

  • Mail not checking for new mail after sleep

    Mail will not check for new mail when waking from sleep unless I log off and back on first. I tried quitting Mail, which works once in a while. I tried putting all Accounts back online, which works occasionally. But most often nothing works except logging off. Must I change to another mail program, or is there a better solution.

    After trying various solutions, I found that the fault was not with Apple Mail or my iMac but with Airport taking time to warm up after sleep. I switched to an Ethernet connection instead and it works fine now

Maybe you are looking for

  • BUG: ORA-00600 in SQL Developer while good in SQL*Plus

    Just run the following PL/SQL script: SET SERVEROUTPUT ON << outer_block >> DECLARE v_test NUMBER := 123; BEGIN DBMS_OUTPUT.PUT_LINE ('Outer Block, v_test: '||v_test); << inner_block >> DECLARE v_test NUMBER := 456; BEGIN DBMS_OUTPUT.PUT_LINE ('Inner

  • How to Migrate Oracle Forms 10g 9.0.4 to 10.1.2

    Hi I would like to find information on what is necessary to do in order to migrate Forms 10g 9.0.4 to 10.1.2. Do I need to use Oracle Migration assistant ? Is it enough only compile forms ? Where I find documentation on how to execute this migration.

  • Xml data type is not supported in distributed queries. Remote object 'OPENROWSET' has xml column(s).

    Hi, Can anyone help me out please. I have written one stored Procedure to create a views using Openrowset(openquery) but for tables which contains xml data types throwing error while executing the SP. Error " Xml data type is not supported in distrib

  • Has anyone else been burned by the lightening cord?

    I have my phone normally plugged in at night but it's in the bed with me. Last night I forgot to plug my phone in but the charger was still in my bed and when I woke this morning I had a burn on myself, it's pretty bad like going to scar. Honestly sh

  • What is sap-dd and sap-uu

    hi all,                 pls tell me what is sap dd and sapuu and what is use of it. thanks.