Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyCharm & IronPython Codecompletion?

I have PyCharm 3.0 installed for Windows and installed IronPython 2.7.4 installed. But it appears that i am not able to get references and it wont recognize .net classes to some degree.

Let me give you a simple example:

import clr
clr.AddReference("System.Windows.Forms")

from System.Windows.Forms import MessageBox
MessageBox.Show("Hello World")

i can run/execute it perfectly fine but the IDE shows me that it cannot recognize System http://i.imgur.com/Aml9DuM.png

As you can imagine this is somewhat... frustrating to put it mildly, pressing alt+enter and then Generate stubs for Binray Module XXXXX" and then pressing Fix all unresolved reference problems will not resolve it as i would like to be able to lookup class definitions for .net classes.

So if anyone has managed to get this to work I would appreciate the Insight. Yes i know that i can use IronPython in Python Tools for Visual Studio but i would like to be able to work in PyCharm aswell.

Just for reference this is what i get in Python Tools for visual studio and what i want to happen in PyCharm enter image description here

like image 831
Orbital Avatar asked Dec 15 '13 00:12

Orbital


People also ask

Is PyCharm a free?

PyCharm is available in three editions: Professional, Community, and Edu. The Community and Edu editions are open-source projects and they are free, but they have fewer features. PyCharm Edu provides courses and helps you learn programming with Python.

Which is better Python or PyCharm?

The Python plugin, in its turn, has the full range of Jython support features (cross-language navigation, completion and refactoring). PyCharm only supports Jython as the runtime for running applications. If you're not using the Java/Python integration, PyCharm is a better place to start.

What is the use of PyCharm in Python?

PyCharm is a dedicated Python Integrated Development Environment (IDE) providing a wide range of essential tools for Python developers, tightly integrated to create a convenient environment for productive Python, web, and data science development.

Is PyCharm good for beginners?

The PyCharm IDE is one of the most popular editors used by professional Python developers and programmers. The vast number of PyCharm features doesn't make this IDE difficult to use–just the opposite. Many of the features help make Pycharm a great Python IDE for beginners.


1 Answers

It appears to be a bug in PyCharm, I've reported it here, please vote.

like image 67
CrazyCoder Avatar answered Sep 30 '22 08:09

CrazyCoder