I have files that doesn't have explicit import statements.. but the way of running of these files doing so that some concrete modules will be imported and visible automatically for the code in these files.. Of course if I am trying to use PyDev it cant' see import statements and of course most of the feature doesn't work.. I see just red undefined variables, classes an so on.. Is it possible to configure PyDev (or PyDev Ext) somehow to get auto-complete feature working for this case? PyDev analyzer should assume that some modules are always imported.. Could be found some workaround for that (except adding explicit import in the files..) ...? :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Humm, if you'll have no imports on a file and have tokens 'magically' appear, I think the most appropriate choce is adding the tokens directly at window > preferences > pydev > pydev extensions > code analysis > undefined.
If that's not ok, please report back (as there are probably other ways to make it work).
Best Regards,
Fabio
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have files that doesn't have explicit import statements.. but the way of running of these files doing so that some concrete modules will be imported and visible automatically for the code in these files.. Of course if I am trying to use PyDev it cant' see import statements and of course most of the feature doesn't work.. I see just red undefined variables, classes an so on.. Is it possible to configure PyDev (or PyDev Ext) somehow to get auto-complete feature working for this case? PyDev analyzer should assume that some modules are always imported.. Could be found some workaround for that (except adding explicit import in the files..) ...? :)
Humm, if you'll have no imports on a file and have tokens 'magically' appear, I think the most appropriate choce is adding the tokens directly at window > preferences > pydev > pydev extensions > code analysis > undefined.
If that's not ok, please report back (as there are probably other ways to make it work).
Best Regards,
Fabio