i have been trying to running some pinax code inside pydev eclipse
i keep on having this error
Error: Can't import Pinax. Make sure you are in a virtual environment that has Pinax installed or create one with pinax-boot.py.
my question is how do i run pinax inside eclipse using django built in server
i am python newbie
Just follow this: http://pinaxproject.com/docs/0.7/install.html
make sure you set the virtual env right
First you install pinax and create a project as instructed at the site http://www.slideshare.net/davidpaccoud/introduction-pinax
Then create a django project in eclipse, after that import created pinax project into the djnago project in eclipse by clicking on File -> import. It'll ask for path of source(pinax project) and destination(eclipse project). Complete this process and you'll be able to handle your whole pinax project from eclipse.
Related
I need to do a work for my university and I choose to do it using the Go language. Yesterday I installed the .msi and setted the variables to:
GOPATH = C:\Users\Gustavo\goprojects (this is the folder that I want to place all my Go projects)
GOROOT = C:\Go\
PATH = C:\Users\Gustavo\goprojects\bin
After this, I installed the GoClipse plugin on my Eclipse and created a new project into the goprojects folder. Then, I created another folder in the src folder, and a .go file into this folder.
Now is my problem. When I started to write some code, everytime that I try to auto complete my code, Eclipse shows me an error and I was searching on google and found that I need to install one project from GitHub called gocode.
So I want to know where do I need to install it and how can I import it to my project.
P.S.: I am using Windows 8.1, I have git installed and the link of gocode project is: https://github.com/nsf/gocode
I solved my problem doing this steps:
Downloaded the gocode to the src folder. (The path: C:\Users\Gustavo\goprojects\src\github.com\nsf\gocode)
In the Eclipse, do this: Window -> Preferences.
Open Go option in the left menu then click Tools.
In the gocode path I set C:\Users\Gustavo\goprojects\bin\gocode.exe
And thats it! It works now.
Our company used to use Eclipse for all kinds of python development. We can create PyDev, GAE, or Django projects, but how do we create a Mezzanine project in Eclipse? There seems very little document about it.
Miles Clark has answered this question over here. The releveant part is:
Working with eclipse/pydev (not aptana, but it should be very similar), I normally create the project outside of eclipse and import it. Roughly the steps are:
Create a virtualenv (I use virtualenvwrapper for this). I include system site packages because I've found it easiest to install python-imaging and psycopg2 through the Ubuntu package manager rather than in each virtualenv. I then install Mezzanine into the virtualenv, and create the project using the command line as described in the docs.
Once that's done, I'll create an interpreter entry in PyDev for the new virtualenv (Window > Preferences > PyDev > Interpreter - Python) and then import the project into eclipse. Normally, I'll setup the new project in git and then import the git repo, but you can import without that if you'd like. Choose pydev project, and make sure & choose the new interpreter that you created.
There's normally a little setup once the project's created in PyDev. Make sure the project is marked as a Django project, and then see "Project Source Folders" in Properties > PyDev - PYTHONPATH and the two settings in Properties > PyDev - Django.
I want to use Eclipse to develop JavaFX. I am trying to import a JavaFX 2 application created in Netbeans 7.2 into Eclipse. But Javafx 2 uses its own Ant build syntax. So when I try to import this Ant project into Eclipse I get the following error:
Specified build file does not contain a javac task
How do I solve this error? I know there are JavaFX plugins for Eclipse, but I haven't been able to find any that solves my problem. Or do I need to try something else?
Open http://efxclipse.org/install.html, scroll down to "In Eclipse 4.2 for the adventurous".
After you have configured properly by setting the path for JavaFX SDK from Window->Preferences, create a new JavaFX project (File->New->Other->JavaFX->JavaFX Project)
Right click on your projet->Import->File System->Select the top level of your NetBeans created project folder-> Select src folder,build.xml, manifest.mf and any other FXML files you wish to import.
For a distributable standalone executable JAR, refer to http://www.efxclipse.org/tut2.html. If you face any problem in Step 11- Click on the "ant build.xml and run" Link in the Build section of the editor, then goto Window->Preferences->Ant->Runtime->Global Entries->Add External JAR->(Browse to your JDK lib folder) Add tools.jar.
If your Build still fails and shows this error ->
BUILD FAILED C:\Workspace\eclipseFx\AppOne\build\build.xml:82:
Problem: failed to create task or type
javafx:com.sun.javafx.tools.ant:resources
It means ${java.home} is pointing to the JRE and can access jfxrt.jar but fails to access ant-javafx.jar. Find the absolute path for ant-javafx.jar in your JDK and edit that line in build.xml and it should build fine. This error has been fixed in the Nightly Build.
P.S. - You can also create JavaFX RCP applications now. Eclipse 4 Applications can use JavaFX as the rendering technology instead of SWT.
I'm using Eclipse 3.7 with m2eclipse. Previously I know there was a menu entry ‘maven package’ but since I reinstalled Ubuntu there is no entry and I have to ‘maven install’ to do the same.
Now I'm wondering if it is possible to get the ‘maven package’ back so I could test something without installing it and allow other projects to use the test version as dependency.
Just use Maven Build... and type package in the goal field.
I also recently wanted to have this option with the new version of m2eclipse. The best solution i could find is, to create a configuration with the goal package, and as base directory give a variable name ${selected_resource_loc}. Still you have to go to run configurations page, but at least you don't have to define a new configuration for each project, but use the predefined one.
right-click project
run as
run configurations..
double click maven build (to create a new configuration)
give a name for configuration e.g. package
click variables
select "selected_resource_loc" and click ok
write your goal e.g. "package" or "clean package"
run
The next time when you want to package another project, you can use this configuration again:
right-click project
run as
run configurations..
select your maven configuration
run
At least you will not have to create a new configuration each time you want to package, as with maven build...
I have the source code for the VersionOne plugin. I am wanting to modify the code because I am getting a NullPointerException when I click a specific button on the plugin which crashes eclipse. I was wondering what steps I need to take in eclipse to import the source code, modify it, and get it to run. I have read over how to create a new plugin project, but I have never tried importing a plugin before. Plugin Source
Once you have imported the project and that seems to work fine, just run it like any other plugin.
I.e:
Set the breakpoints you want in the code
Click the "Run as..."
In the run dialog start up a new Eclipse instance
On the tab "plugins" make sure your imported plugin is selected
If you are using the plugin at the same time, make sure that the non-workspace is not selected
In the new Eclipse instance, set up a situation that will provoke the bug
You need the following things to do that:
From Eclipse download a distro with PDE (Plugin Development) included.
The source pages
Some configuration management tool like Git or Subversion.
You do then the following steps:
Unzip your sources locally somewhere and add them to the CM system.
Create an eclipse plugin project from that source location (depending on Git or SVN different steps).
Create a run configuration for Eclipse that includes that plugin. That is similar to creating a run configuration for Java, but your Java application is then eclipse (see the Help on Eclipse Application Launcher). You have to ensure that in the "Plug-ins Tab", your new plugin is included. After you have started it, you should see the new feature implemented in the new running eclipse. To debug it, you just have to press the debug button instead of the run button. You may then add breakpoints to the source code of your plugin to see how it is working.
You are then able to start a new eclipse application which includes the plugin and make your tests there. You are able to set breakpoints, debug the code and so on. If you find the error, you can change the code, test it, and as a result have a difference to the source you had initially. The best would be then to make a patch and send it back to the originator.
To deploy it then to others is a different story, and is well documented.