Excluding/Disabling Validation in Eclipse

后端 未结 11 1455
别跟我提以往
别跟我提以往 2020-12-08 06:34

I have the (mis)fortune of having a large project source-base in which I am working primarily on PHP and JavaScript. I have to have the full project area as the project root

相关标签:
11条回答
  • 2020-12-08 07:08

    I have Eclipse for PHP Developers and I was dealing with the same issue.

    In addition tot he excellent answers above, I have one more suggestion.

    My first recommendation is not to use Aptana unless you actually want those validators (as they are nearly impossible to turn off from my experience).

    Beyond that, go to File -> Properties -> Builders, and deselect "Validation" and "Script Builder" and "JavaScript Validator".

    So far it's helped speed up some operations tremendously.

    I also recommend disabling "Automatic Build". Because you're using PHP, the odds that you actually need it to build anything if you don't want validation is slim.

    In the main menu, go to Project and uncheck "Build Automatically". You will want to build your project every now and then by right clicking on the project and selecting "Build Project".

    All the above steps have helped me get the basic editor, which is exactly what I wanted.

    0 讨论(0)
  • 2020-12-08 07:09

    I had the same problem with the web app i'm developping. I ended up disabling automatic build, and building once a day (Project->Build automatically), that way i still get the benefits of code completion from libraries, while speeding up the program on older computers.

    0 讨论(0)
  • 2020-12-08 07:13

    I came upon this question while looking for the same answer. I will list the steps I did here and hopefully it will help someone in the future.

    I am using Eclipse 4.1 and I do the following to exclude validation for specific xml files. I am sure if you configure the different validators it will work for other files as well.

    Go to Preferences -> Validation Find the Validator you wish to change and select settings (not all of the validators have settings, hopefully yours do).

    In the settings you can add an Exclude Group where you can add a rule to specify to exclude the validator for specific extensions, folder or file name, project nature, facet or content type.

    0 讨论(0)
  • 2020-12-08 07:15

    Tried solution;

    1. Right click project
    2. Select properties
    3. Select validation
    4. Check Enable Project specific settings
    5. On the XML Validator row, click the '...' button
    6. Select Exclude Gruop
    7. Click Add rule
    8. Select 'Folder or file name'
    9. Click Next
    10. Select files or folder which are not validated.
    11. Click Finish
    12. Click OK
    13. Click OK

    This solved my problem. Because eclipse validation gives error for generated GWT files.

    Best regards.

    0 讨论(0)
  • 2020-12-08 07:16

    It is not really possible to select a directory, at least under Windows.

    After having pressed Preferences->Validation->Settings->Add Exclude Group->Add Rule->Folder or filename->Browse Folder->(selecting some directory)->[OK]

    The "Browse for folder" dialog is being closed, with the "File or folder" field staying empty.

    0 讨论(0)
  • 2020-12-08 07:16

    this worked for me: Properties > Builders section and unchecking the corresponding box. https://bugs.eclipse.org/bugs/show_bug.cgi?id=317833

    seems to be a bug in some versions of eclipse.

    0 讨论(0)
提交回复
热议问题