pydev

When I use Mylyn with PyDev I see the context in the task but python files are not shown in any explorer

心不动则不痛 提交于 2019-12-22 12:22:13
问题 I use mylyn 3.9.0 with PyDev 2.7.5 with the PyDev Mylyn integration 0.4.0. Mylyn seems to build up contexts correctly (I can see the context tree in the task/context tab). But the python files are not shown "PyDev Package Explorer" nor in the "Project Explorer". What could prevent the python files to appear? Uninstalling the PyDev Mylyn integration did not help. 回答1: The problem seems to be the "PyDev Navigator Content". Ho to solve this make sure the Mylyn focus is disabled for the explorer

No pydevd protocol specification

二次信任 提交于 2019-12-22 09:59:40
问题 I need a capability to connect the debugger on fly to a remote Python server from PyCharm (my similar post, but slightly different subject). For the remote debugging PyCharm provides the lib called pydevd, but remote server must be connected to local machine with a running debug server. Actually, this isn't always possible because usually local machine has no public address. So as a solution, I decide to make proxy for socket connections, which will link my local machine with remote server (I

How to enable Eclipse debugging features in a web application?

淺唱寂寞╮ 提交于 2019-12-22 09:46:39
问题 I am using Django framework for my Python Web Application using Eclipse IDE and PyDev Plugin. How can I use the debugging features? UPDATES1 particularly using http://pydev.org/updates plugin UPDATES2 I already did the following: .pydevproject <?xml version="1.0" encoding="UTF-8" standalone="no"?> <?eclipse-pydev version="1.0"?> <pydev_project> <pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Python25 </pydev_property> <pydev_property name="org.python.pydev.PYTHON_PROJECT

python 3.1 with pydev

走远了吗. 提交于 2019-12-22 07:00:38
问题 I am now moving to eclipse for my python development. I have pydev installed but it is showing grammar support up to python version 3.0. My question is can I use python 3.1 with 3.0 grammar? Has the grammar changed from version 3.0 to 3.1? I am using eclipse 3.4.2 and pydev 1.4.7 回答1: grammar hasn't changed, some modules have. 来源: https://stackoverflow.com/questions/1305218/python-3-1-with-pydev

Does Eclipse have indentation guides?

浪子不回头ぞ 提交于 2019-12-22 04:18:44
问题 Recently, I use Eclipse to edit my python code. But lacking indentation guides, I feel not very well. So how to add the auto indentation guides for Eclipse? Is there certain plugin? What's more, I have tried the EditBox. But, you know, that is not very natural under some themes............... 回答1: I use EditBox too and with the right options it is really usefull and doesn't change the look of the editor too much. If you only want the vertical grey lines that show the indentation/block like

How do I fix PyDev “Method should have self as first parameter” errors

孤街浪徒 提交于 2019-12-22 03:52:56
问题 I'm developing in Python using PyDev in Eclipse, and some of my code generates errors in the code analysis tool. Specifically: class Group(object): def key(self, k): class Subkey(object): def __enter__(s): self._settings.beginGroup(k) return self def __exit__(s, type, value, tb): self._settings.endGroup() return Subkey() Gives me a "Method '__enter__- group' should have self as first parameter" error, and a similar error for __exit__ . Is there a way to solve this without assigning self to

Open Resource window in eclipse shows pyc files

放肆的年华 提交于 2019-12-22 01:48:20
问题 In eclipse the Open Resource window (Hot keyed to Cmd+Shift+R) to open a file by typing its name seems to show *.pyc files despite the Navigator view correctly hiding them. Is there anyway to set this up to ignore PYC files? I have looked at the following links and it appears that pydev may require a src folder underneath the main eclipse folder. I do not have that structure however the full project has been marked as a 'source' folder in Pydev - PYTHONPATH under project properties. http:/

Can't Import Module

拜拜、爱过 提交于 2019-12-21 22:12:50
问题 First of all, this is very likely not a path issue. I have a pydev project in eclipse. Here is the directory structure: Genetic-Framework | Genetic-Framework | Genetic | __init__.py | GA.py | crossover.py | fitness.py | individual.py | mutation.py | population.py | selection.py | settings.py | visualization.py In GA.py , I have the following line: from Genetic import settings, selection, visualization as vis And yes, Genetic is in sys.path . However, I get the following error: File "/...

no JavaScript auto complete in PyDev Eclipse project

懵懂的女人 提交于 2019-12-21 20:31:19
问题 I have Eclipse with PyDev and JavaScript Development Tools (JSDT). I'm using this environment to develop web applications. Python, HTML, and CSS editors all work fine: highlighting and auto completion works. JavaScript highlighting works too, but JavaScript auto completion does not work . Switching to the JavaScript perspective doesn't help. However, if I create a separate JavaScript Project (rather than adding JavaScript files into my PyDev project), JavaScript auto completion seems to work

how to declare variable's type in pydev?

风流意气都作罢 提交于 2019-12-21 19:12:58
问题 Suppose there's a set of class Map1,Map2,Map3,... all extended from BaseMap, and I use some reflection mechanism to get the child Map's instance. I want to dynamically get an instance of one of these classes and store it in a variable m , and have pydev recognize the type as BaseMap so I can use word completion on it. I found one solution is to add the code if False: m = BaseMap(0,0,0) after assigning m and before using it. The line inside the if condition would never be executed, but it