facebook

scope warnings

  1. MyEclipse Archived
  2.  > 
  3. Web 2.0 / AJAX
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #262201 Reply

    eMorrone
    Participant

    I’am relatively new to javascript.

    I work with several javascript files in the IDE, and frequently I see the warning “Declaration of variable ‘foo’ was not found in function ‘foo’ or enclosed scope” when I use a variable or function declared in another javascript file.

    When I run the program is ok, but is tedious to control the warnings in the IDE every time. Exist a language keyword similar to C’s “include” or Java’s “import” to include a javascript file into another?

    Thanks.

    #262206 Reply

    Greg
    Member

    No there is nothing to indicate an included file or a way to import other variables. About the only thing you can do is for particular files you can exclude those javascript files from validation. If you have MyEclipse 5.1 (the latest version) you can right click the javascript file and go to “MyEclipse > Exclude from validation” if there are some files that have too many warnings.

    #262218 Reply

    eMorrone
    Participant

    Thanks, but it is not a wise solution. I’ll wait for a mechanism that allow to exclude specific warnings. Regards. eM

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: scope warnings

You must be logged in to post in the forum log in