I just updated to Spyder 4. Nice job developers-- many of the new features
(code folding,...) are very useful.
On much of my existing code files that work fine, pyflakes now identifies
errors. They appear as red circles in the left margin of the editor. The
error message is "Undefined name 'funcname" (pyflakes E)". The errors are
because the imports of functions "funcname" are done in an exec statement;
I know, I know, using exec like this isn't good form, but I do have my
reasons, and this post is about pyflakes more generally than just this
specific type of error.
Here are my questions:
* In the past, other linters or code analysis tools have similarly flagged
these same lines for errors, for the same reason. I have been suppressing
those error notifications/messages successfully by adding " #
analysis:ignore " to the end of the line. Is there a similar way to
suppress the pyflakes errors (" # analysis:ignore " does not work)? This
sort of solution is really what I need, otherwise I will want to turn
pyflakes off. I tried " # NOQA" but it apparently doesn't work. I did some
searching around for info on this but came up empty.
* Is there a pyflakes config file somewhere, in which I can suppress this
particular error wherever it occurs?
* Is there a way to just turn pyflakes off? I could not find it in
Preferences.
Secondary question:
* When I hover my mouse over the red circle, a pop-up box appears, not
adjacent to the red circle but some distance away to the right, showing the
error message. The pop-up also has a red X in the corner as if I could
click it to suppress the error. As soon as I move my mouse off the red
circle, towards pop-up in order to attempt to click the red X, the pop-up
disappears (because it is not directly adjacent to the red circle in the
left margin). So... I can never actually get my mouse over the red X. Is
this the intended behavior? Is the red X meant to enable clicking to
suppress the error, or not? Only curious about this; these are such common
errors that I doubt I would ever click each pop-up.
--
You received this message because you are subscribed to the Google Groups
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/spyderlib/27f0a253-5b46-468b-b063-c1a9221abbdb%40googlegroups.com.