I've been using py-dev 1.2.9 for a while and I find it very amusing that every time I start eclipse something new either fails or starts working :) Todays edition sprung this on me:
-> Start a new module
-> type #! /usr/bin/env python
-> press enter
->result:
from curses.has_key import python
#! /usr/bin/env python
Now, I haven't touched anything since I last used eclipse. The last change I remember doing to py-dev/eclipse was to turn off "debug code completion" but that is some days ago.
I haven't seen this "automagic" import behavior before. It could be useful though...if it left #! lines alone :)
regards
/rune
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yeap... it's not right (it should have the same behavior as in strings -- just fixed in the cvs)
Cheers,
Fabio
p.s. This 'automagic' behavior is part of the pydev extensions... (but it should only do that in the default context, not in strings or comments, so... the behavior for the comments has just been fixed)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've been using py-dev 1.2.9 for a while and I find it very amusing that every time I start eclipse something new either fails or starts working :) Todays edition sprung this on me:
-> Start a new module
-> type #! /usr/bin/env python
-> press enter
->result:
from curses.has_key import python
#! /usr/bin/env python
Now, I haven't touched anything since I last used eclipse. The last change I remember doing to py-dev/eclipse was to turn off "debug code completion" but that is some days ago.
I haven't seen this "automagic" import behavior before. It could be useful though...if it left #! lines alone :)
regards
/rune
Yeap... it's not right (it should have the same behavior as in strings -- just fixed in the cvs)
Cheers,
Fabio
p.s. This 'automagic' behavior is part of the pydev extensions... (but it should only do that in the default context, not in strings or comments, so... the behavior for the comments has just been fixed)