There is a tutorial in the IDEA docs on how to add a Python interpreter in PyCharm, which involves accessing the "Project Interpreter" page. Even after installing the Python plugin, I don't see that setting anywhere.
Am I missing something obvious?
With the Python plugin installed:
Navigate to File > Project Structure.
Under the Project menu for Project SDK, select "New" and
Select "Python SDK", then select "Local".
Provided you have a Python SDK installed, the flow should be natural from there - navigate to the location your Python installation lives.
I was getting the error (IntelliJ on Ubuntu 18.04) while python SDK was configured.
To fix that, I had to do this:
File -> Project Structure -> Modules
Click on the Dependencies tab, and click on + and select the python SDK
Click on Apply
After that, the warning went away and autocompletion also started working properly
So here is a simple project, where I have used Selenium and added that using external path
Now you need to open Project Structure and go to SDK Section
Now Select your project's virtual environment. In the Classpath tab add the PYTHONPATH by clicking + button
and now the modules will be recognized
If you have multiple modules in your project, with different languages, you can set the interpreter in the following way:
File -> Project Structure...
Select Modules in the list on the left
Select the Python module in the list of modules
On the right-hand side, either choose an existing Python SDK from the dropdown list, or click on the New... button to create either a virtualenv, or create a new Python SDK from a Python installation on your system.
Follow these steps:
Open Setting (Ctrl + Alt + s)
Click on plugins
Find Browse Repositories and click
Search for "python"
Select Python SDK or pycharm
Restart the IDE
Go to project structure
Select the python SDK in projects or create a new project with python SDK.
Related
I have tried to install TestNG in eclipse Help--> Install new software http://beust.com/eclipse
I am getting following error:
Unable to connect repository http://beust.com/eclipse/content.xml
So I have downloaded testng-6.8.6beta.zip and imported those jars in Build Path and added Junit 4 library.
Still when I click Run As in the class (Test case) it does not show me Run As TestNG, shows only java application.
Am I missing anything?
You can try the following:
Open Eclipse -> Help -> Eclipse Marketplace.
and trying installing testNG plugin after searching it.
Try:
Open eclipse
Help > Install new software
Enter the update site URL in "Work with:" http://beust.com/eclipse/6.9.12
Click on ok
Edit:
Just click on http://beust.com/eclipse - it'll show you all the versions available.
Then Add the URL to work with as http://beust.com/eclipse/version_number (like the example given above)
I can't seem to import dart projects, I have the dart plugin installed, have it enabled, selecting both the dart project's pubspec.yaml or build.dart seem to give me the error "Cannot import anything from _.dart / _.yaml".
If I select the root directory of the dart project and select create modules from existing sources (since it's not a maven/gradle/eclipse project), it gets picked up as a python project and there is no way to select a dart SDK.
Right clicking and clicking add framework support only gives me python related frameworks such as Django and App Engine (Python). Trying to add a project facet, there are tons of options, everything from Vaadin, to GWT, to Scala, etc, but no Dart.
The official Dart page for dart-support gives me an error 404: https://www.jetbrains.com/idea/help/Preparing_for_Dart_Development.html
(related to Netbeans + Eclipse + Dart -> IntelliJ)
(PS, this project was created in Dart Editor)
File > Open > selecting the folder does it for me (WebStorm). I don't know what create modules should do.
When I open a file it asks me if I want to make it a Dart project, and I'm done.
I can't get the Changes tool window to show on this project.
The project is imported "from sources" and has no facet and no sdk. Which is ok because I'm only editing it in the IDE and running from the terminal.
I'm on Windows 8.
The tool window does show when I open another java web maven project there.
It also does show for the first (no sdk) project when I'm on Ubuntu.
What might the Changes tool window not like about my project?
The IDE wasn't aware of Git in my project.
That happened because the directory I import this project from isn't the same as the Git repository directory, the former is inside the later.
I fixed it in: VCS > Enable Version Control Integration
I am using eclipse to make titanium module, but whenever I use Ant build i get error
No python executable could be found on your system
i have installed
Titanium SDK.
All of the prerequisites for developing Android applications.
Android NDK. Add an ANDROID_NDK environment variable pointing to the NDK folder.
Eclipse and ADT.
gperf e installed and in your system PATH.
I also checked my bulid.properties which is like this:
titanium.platform=C:\\Users\\Titanium\\mobilesdk\\win32\\3.1.1.GA\\android
android.platform=C:\\AndroidSDK\\platforms\\android-10
google.apis=C:\\AndroidSDK\\add-ons\\addon-google_apis-google-10
android.ndk = C:\\android-ndk-r9
What is wrong with mine?
Accordint to this page Python is required for compiling from the commandline (which I guess would be how Ant invokes it). So if you need that you need to install Python 2.7 which is available from their website.
i did this and it works for me ;)
first i have installed python 2.7 and chnage the path variable to
C:\Python27
then change the JDK in eclipse path :
1) In Eclipse click Run->External Tools->External Tools Configurations
2) Click JRE tab
3) Click Installed JREs... button
4) Click Add button (select Standard VM, where applicable)
5) Click Directory Button
6) Browse to your JDK version (not JRE) of your installed Java (C:\Program Files (x86)\Java\jdk1.6.0_25)
7) Click Finish.
I'm trying to import and run the IntelliJ git4idea (Git Integration) plugin in order to play around and contribute some of my own code.
I've pulled the Intellij community edition from the github repo, and imported the git4idea plugin as a project. I'm running the Intellij community edition
My main issue is this:
After importing all the modules, the git4idea module comes up as a general module type, and not a plugin module type.
This means that when trying to create a new run\debug configuration, I get [none] under "Use classpath of module", instead of of the ability to select the git4idea plugin. This obviously results in a "Run configuration error: no plugin module specified for configuration".
So the question is -
How can I change the general type of imported "git4idea" to plugin type?
Or better yet, what are the steps required in order to import and build/debug/run a plugin from the Intellij community edition repo?
I was able to solve this by manually reordering file directories, sorting out dependencies and editing the .iml file. The type of plugin is defined by changing type="JAVA_MODULE" to type="PLUGIN_MODULE".
...
This is the answer given by Dmitry Jemerov on the official Jetbrains plugin development forum:
The easiest answer to this is "don't". The IntelliJ IDEA Community
Edition project is set up to be developed as a whole, and the
dependencies are set up accordingly. If you want to hack on the Git
plugin, you simply run IDEA using the provided run configuration, it
runs with all plugins enabled, and you simply make whatever changes
you need and test them using the main run configuration.
If you really want, you can set up a new plugin module and point it to
the source code of the git4idea plugin inside the IntelliJ IDEA
Community Edition Git checkout. This is not too hard, but it's
something you'll need to do from scratch, and you can't use the
existing .iml file.
I had the same no plugin module specified for configuration issue. To work around it, instead of importing, I created a new plugin project and used the existing code directory.
when you import the intelij plugin projects
You should run the 'runIde' task in gradle.
Step-by-step instruction
Build your IDEA plugin (usually done with gradle build).
Start Intellij IDEA.
If you have any project opened, go to menu "File->Close all projects" to return to Intellij IDEA startup screen.
Install the plugin you've just built: on the left side of the "Welcome to Intellij IDEA" startup screen go to "Plugins", then click "gear" icon on the right side, it's located to the right of "Marketplace" and "Installed". From the pop-up menu select "Install Plugin from Disk...", navigate to plugin file (usually in build folder) and click "Ignore and continue" when you see the warning message saying something about signature.
Restart Intellij IDEA.
Open the folder with your IDEA plugin.
Wait until IDEA imported your Gradle project.
Put breakpoints inside your plugin code so you can debug it.
Go to menu "Run->Edit configurations".
In the "Run/Debug Configurations" window on the left side click "+".
Select "Gradle" from the pop-up menu.
On the right side change "Name" to "gradle-run-ide" (without quotes).
On the right side under "Run", inside "Tasks and arguments" field enter runIde ("i" must be capital, other letters small).
Click "OK" to save changes.
Go to menu "Run->Debug 'gradle-run-ide'".
A new, black-colored IDEA window should appear.
In this black-colored IDEA window do whatever you need to do in order to invoke methods of your plugin. When you invoke them, the first IDEA window should stop you on breakpoints you set previously.
Happy debugging.
After changing type="JAVA_MODULE" to type="PLUGIN_MODULE" in *.iml file I was getting following error -
Error running 'IdeaPlugin': Wrong SDK type for plugin module
To fix this go to -
Module Settings -> Platform settings -> SDKs.
Click on Add new SDK
Select Intellij Platform plugin SDK
For home directory select your Inetllij installation dir
Select JAVA SDK you want to use with it.
Once this is added got to Module Settings again
Module Settings -> Project settings -> project.
In Project SDK change the JAVA sdk to the SDK we just added in the above steps.
Run/Debug you plugin now.