Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Can't get code analysis working

Anonymous
2011-08-19
2013-03-15

  • Anonymous
    2011-08-19

    Out of the box, PyDev 2.2.1, I can't seem to get code analysis to happen. Typing "print somerandomundefinedvariable" doesn't produce red underlining. I tried to look at the manual, but the menu in the screen shot doesn't match my version and there seems to be no reference to code analysis in my menu at all.

    http://pydev.org/manual_adv_code_analysis.html

     
  • Fabio Zadrozny
    Fabio Zadrozny
    2011-08-21

    The path to code analysis has changed (it's now pydev > editor > code analysis - the best way to find something in the preferences is searching for it in the menu).

    If it doesn't appear there, you have some problem in your installation (so, try to reinstall), if it's there, it's probably because your file is not under a source folder or it's within a folder that's not a valid python package - i.e.: you need to have __init__.py files in each folder for it to be considered a valid package). I the getting started: http://pydev.org/manual_101_root.html there are steps for properly configuring a source folder.

    Cheers,

    Fabio