pydev

PyCharm code completion setup for underscore - less priority for protected and mangled names?

主宰稳场 提交于 2019-12-07 14:37:47
问题 I am using PyCharm but I do not like default code completion which shows _protected and __mangled names higher than public . How can I force to show names starting with underscore at the bottom of code completion list and public at the top? Some editors like PyDev is doing it much better without configuration. Screen asked by @jole showing my problem: 回答1: This is not configurable in PyCharm; there is an open issue for changing the default behavior of the completion in this context. 来源: https

Pydev codecoverage results don't appear

家住魔仙堡 提交于 2019-12-07 14:18:49
问题 I have set up the codecoverage to run with pydev, but the results don't appear. Following this answer I found the .coverage file at ~/.metadata/.plugins/org.python.pydev.debug/coverage, and that works properly (gives the result when running coverage report there, gets empty when I do it from pydev, etc). Does somebody know where can I configure the path to get the results to the Eclipse plugin? 回答1: I just had the same problem and the solution was to install coverage from 3.x branch (i.e. pip

PyDev remote debugging not working (connection refused)

吃可爱长大的小学妹 提交于 2019-12-07 12:06:42
问题 I'm using Eclipse Luna Service Release 1 (4.4.1) with PyDev 3.9.0.201411111611 for Python 2.7 development, on an ArchLinux (Manjaro) machine. I have an external script to run my application from command line, using the import pydevd; pydevd.settrace() template as described in the docs for remote debugging. The full script is as follows: #!/usr/bin/python2 import sys sys.path.append('/home/manu343726/Documentos/myapp/') sys.path.append('/home/manu343726/.eclipse/org.eclipse.platform_4.4.1

How to debug SCons scripts using eclipse and pydev?

我的未来我决定 提交于 2019-12-07 08:32:21
问题 I'm a newbie to SCons and also using pydev. Can someone help me with instructions on how to debug scons scripts using Eclipse and pydev? Is it even possible considering the fact that SCons is a seperate app and not an extension to python? 回答1: I'm not an Eclipse expert, but since you didn't get any other answer... If you make the SCons source a part of the Eclipse project, and run the whole command from within Eclipse it should work like any Eclipse debugging. SCons is written in Python,

OSX + Eclipse + PyDev - PATH isn't correct

你离开我真会死。 提交于 2019-12-07 07:57:26
Trying to get the following script working on OSX using Eclipse and PyDev (Debug): #------------------------------------------------------ import os, subprocess from os.path import join as join_path def cmd(command): print('$ ' + command) process = subprocess.Popen(command, shell=True, executable="/bin/bash", stdin=None, stdout=subprocess.PIPE, stderr=subprocess.PIPE) return process.communicate() + (process.returncode,) stdout, stderr, error_code = cmd('echo $PATH') print(stdout, stderr, error_code) stdout, stderr, error_code = cmd('echo $PYTHONPATH') print(stdout, stderr, error_code) stdout,

Typing Casting in Python Question [closed]

南笙酒味 提交于 2019-12-07 01:42:31
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center . Closed 8 years ago . Im a AS3 developer, currently learning Python In AS3 Id quite often do this: for ( var foo in fooArray ) { trace(FooObject(foo).name); } Typing casting the objects in the array, so that I get code hinting in my IDE How would I do this in Python? Types are determined at runtime in Python. Thus, there is typically

Creating a remote project with PyDev

耗尽温柔 提交于 2019-12-07 01:21:23
问题 I'm new to Eclipse/PyDev and have what's probably a really basic question. I want to use it to edit and debug python files on a remote system. I am able to do this using RSE and pydevd, but what I'm doing doesn't really seem integrated with the IDE. That is, I can go to the RSE perspective and edit the files. I can then lauch the script on the remote system and step through it in the debugger. But the files are not part of a project that Eclipse maintains for me. It's all fairly disjointed.

“Undefined variable from import” when importing numpy in eclipse pydev

一曲冷凌霜 提交于 2019-12-06 21:41:21
问题 I get "Undefined variable from import" error in Eclipse 3.7.2 PyDev 2.7.1 on Linux Mint Maya (Cinnamon) whenever I import a module from numpy. The problem only arises when importing numpy; other modules work just fine. Info: numpy is compiled against the Intel MKL libraries. Python 2.7.3 [GCC 4.6.3] example: import numpy as np a = np.array([1, 2]) Error message in PyDev editor: "Undefined variable from import: array" I get similar errors for other numpy submodules. The code runs properly

No such table error when running a django server from Eclipse

穿精又带淫゛_ 提交于 2019-12-06 19:30:05
问题 I'm developing a website using Django. When I run the server through the command prompt like so: python manage.py runserver it runs fine, but when I do it from Eclipse (right click on the project -> Run As... -> django project , I get the following error: DatabaseError at / no such table: django_session Request Method: GET Request URL: http://localhost:8000/ Django Version: 1.3 Exception Type: DatabaseError Exception Value: no such table: django_session Any ideas as to what can cause that? I

Skip system checks on Django server in DEBUG mode in Pycharm

陌路散爱 提交于 2019-12-06 18:58:27
问题 I am running django application in Pycharm in DEBUG mode. Each time when i change some code system checks are performed. pydev debugger: process 2354 is connecting Performing system checks... Is there any way to skip system checks/speed up this checks? UPDATE: I want to disable system checks after changes in code, because they are too slow. 回答1: The Problem Unfortunately, there's no command-line argument or setting you can just turn on in order to turn off the checks in runserver . In general