Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #77444 > unrolled thread

PyDev Code Analysis

Started byWanderer <wanderer@dialup4less.com>
First post2014-09-02 10:27 -0700
Last post2014-09-02 17:37 -0700
Articles 3 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  PyDev Code Analysis Wanderer <wanderer@dialup4less.com> - 2014-09-02 10:27 -0700
    Re: PyDev Code Analysis Fabio Zadrozny <fabiofz@gmail.com> - 2014-09-02 21:29 -0300
      Re: PyDev Code Analysis Wanderer <wanderer@dialup4less.com> - 2014-09-02 17:37 -0700

#77444 — PyDev Code Analysis

FromWanderer <wanderer@dialup4less.com>
Date2014-09-02 10:27 -0700
SubjectPyDev Code Analysis
Message-ID<67700207-2d66-440b-ba9c-f33757cc9783@googlegroups.com>
I'm trying to set up Eclipse with PyDev and I can't get the code analysis to work the way I want.

Whenever I type 'def' it generates an error before I finish the line. I don't want to see errors until I finish typing. It's not an error I'm just not done yet. So I try to turn this off by going to Window>Preferences>PyDev>Editor>CodeAnalysis and setting the option When do we analyze? to Only on save. This doesn't stop these errors from showing up while I'm typing. What it does is stop checking for warnings like 'unused variable' even on save. If I set the option to 'On any successful parse' then it will check for these warning only on save.

To summarize
Setting 'Only on save', turns off warnings but keeps giving real time errors.

Setting 'On any successful parse', checks for warnings only on save and keeps giving real time errors.

I'm using 
Eclipse IDE for C/C++ Developers 4.4.0.21040612
Pydev for Eclipse 3.7.0.201408261926


What I am I doing wrong?

Thanks

[toc] | [next] | [standalone]


#77457

FromFabio Zadrozny <fabiofz@gmail.com>
Date2014-09-02 21:29 -0300
Message-ID<mailman.13721.1409704200.18130.python-list@python.org>
In reply to#77444

[Multipart message — attachments visible in raw view] — view raw

On Tue, Sep 2, 2014 at 2:27 PM, Wanderer <wanderer@dialup4less.com> wrote:

>
> I'm trying to set up Eclipse with PyDev and I can't get the code analysis
> to work the way I want.
>
> Whenever I type 'def' it generates an error before I finish the line. I
> don't want to see errors until I finish typing. It's not an error I'm just
> not done yet. So I try to turn this off by going to
> Window>Preferences>PyDev>Editor>CodeAnalysis and setting the option When do
> we analyze? to Only on save. This doesn't stop these errors from showing up
> while I'm typing. What it does is stop checking for warnings like 'unused
> variable' even on save. If I set the option to 'On any successful parse'
> then it will check for these warning only on save.
>
> To summarize
> Setting 'Only on save', turns off warnings but keeps giving real time
> errors.
>
> Setting 'On any successful parse', checks for warnings only on save and
> keeps giving real time errors.
>
> I'm using
> Eclipse IDE for C/C++ Developers 4.4.0.21040612
> Pydev for Eclipse 3.7.0.201408261926
>
>
> What I am I doing wrong?
>
> Thanks
>

Well, there are 2 different things there:

Code analysis and syntax analysis.

Syntax analysis is always done on the fly (and you can't really turn it off
-- the places which require an AST will usually use the AST which is
computed there and when it's computed and there's a syntax error, that
error will be shown). It should usually be computed when a new line is
entered, on a save or after you entered some text and the timeout specified
at preferences > pydev > builders is elapsed.

As for the code analysis (which will check errors and warnings such as
unused imports / unresolved imports / undefined variables, etc.), it has
the options you saw (which are affected by the only on save/on any
successful parse).

Cheers,

Fabio

[toc] | [prev] | [next] | [standalone]


#77459

FromWanderer <wanderer@dialup4less.com>
Date2014-09-02 17:37 -0700
Message-ID<c016a0a1-d42e-4284-b377-985d88468ea4@googlegroups.com>
In reply to#77457
On Tuesday, September 2, 2014 8:29:32 PM UTC-4, Fabio Zadrozny wrote:
> On Tue, Sep 2, 2014 at 2:27 PM, Wanderer <wand...@dialup4less.com> wrote:
> 
> 
> 
> 
> I'm trying to set up Eclipse with PyDev and I can't get the code analysis to work the way I want.
> 
> 
> 
> Whenever I type 'def' it generates an error before I finish the line. I don't want to see errors until I finish typing. It's not an error I'm just not done yet. So I try to turn this off by going to Window>Preferences>PyDev>Editor>CodeAnalysis and setting the option When do we analyze? to Only on save. This doesn't stop these errors from showing up while I'm typing. What it does is stop checking for warnings like 'unused variable' even on save. If I set the option to 'On any successful parse' then it will check for these warning only on save.
> 
> 
> 
> 
> 
> To summarize
> 
> Setting 'Only on save', turns off warnings but keeps giving real time errors.
> 
> 
> 
> Setting 'On any successful parse', checks for warnings only on save and keeps giving real time errors.
> 
> 
> 
> I'm using
> 
> Eclipse IDE for C/C++ Developers 4.4.0.21040612
> 
> Pydev for Eclipse 3.7.0.201408261926
> 
> 
> 
> 
> 
> What I am I doing wrong?
> 
> 
> 
> Thanks
> 
> 
> Well, there are 2 different things there:
> 
> 
> Code analysis and syntax analysis.
> 
> 
> Syntax analysis is always done on the fly (and you can't really turn it off -- the places which require an AST will usually use the AST which is computed there and when it's computed and there's a syntax error, that error will be shown). It should usually be computed when a new line is entered, on a save or after you entered some text and the timeout specified at preferences > pydev > builders is elapsed.
> 
> 
> 
> 
> As for the code analysis (which will check errors and warnings such as unused imports / unresolved imports / undefined variables, etc.), it has the options you saw (which are affected by the only on save/on any successful parse).
> 
> 
> 
> 
> Cheers,
> 
> 
> Fabio 

Changing the time in builders is what I needed. Thanks

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web