I downloaded Mozilla-central and built it. I am able to run Firefox Nightly using ./mach run.
Now I am following the instructions of MDN on how to use Eclipse CDT with Mozilla code.
I downloaded Eclipse CDT on my mac and installed it. When I execute the following command:
./mach build-backend -b CppEclipse
It raises an exception saying: Failed to launch eclipse to import project. Ensure 'eclipse' is in your PATH and try again
I tried to add the eclipse's directory (Applications/Eclipse.app) to my PATH environment variable but I still get the same error.
Here is the complete trace:
0:00.46
/Users/****/src/mozilla-central/obj-ff-dbg/_virtualenvs/init/bin/python
/Users/****/src/mozilla-central/obj-ff-dbg/config.status --backend
CppEclipse Reticulating splines... 0:02.99 File already read.
Skipping:
/Users/****/src/mozilla-central/gfx/angle/targets/angle_common/moz.build
Traceback (most recent call last): File
"/Users/****/src/mozilla-central/obj-ff-dbg/config.status", line 1022,
in
config_status(**args) File "/Users/****/src/mozilla-central/python/mozbuild/mozbuild/config_status.py",
line 146, in config_status
the_backend.consume(definitions) File "/Users/****/src/mozilla-central/python/mozbuild/mozbuild/backend/base.py",
line 143, in consume
self.consume_finished() File "/Users/****/src/mozilla-central/python/mozbuild/mozbuild/backend/cpp_eclipse.py",
line 158, in consume_finished
self._import_project() File "/Users/****/src/mozilla-central/python/mozbuild/mozbuild/backend/cpp_eclipse.py",
line 181, in _import_project
raise Exception("Failed to launch eclipse to import project. " Exception: Failed to launch eclipse to import project. Ensure
'eclipse' is in your PATH and try again
Also, using the command:
./mach ide eclipse
I again get the same message:
Eclipse CDT 8.4 or later must be installed in your PATH. Download:
http://www.eclipse.org/cdt/downloads.php
How can I resolve this issue?
I just need to open Firefox nightly in Eclipse to be able to get the call-graph and navigate through its source code.
Run Eclipse first, then:
1- Command:
ps -ef |grep -i ecli
Output:
501 6410 1 0 2:57pm ?? 0:44.98 /Applications/Eclipse
CPP.app/Contents/MacOS/eclipse 501 6428 6365 0 2:57pm ttys001
0:00.00 grep -i ecli
2- Add the binary to the path:
export PATH=/Applications/Eclipse\ CPP.app/Contents/MacOS/:$PATH
3- Test it:
which eclipse
Related
I am getting this error while I try to import the gobblin distribution into my IDE , I have tried both inteliJ and eclipse , not able to find any luck.
Below are the errors which I get when I try to import.
In Eclipse the error is:
*org.gradle.tooling.BuildException: Could not run build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-3.3-bin.zip'.
*
For InteliJ
*Cause: startup failed: build file 'C:\Users\sayyad.ghazi\Desktop\gob\gobblin-master\gobblin-restli\gobblin-throttling-service\gobblin-throttling-service-api\build.gradle': 1: unexpected token: .. # line 1, column 1. ../../api.gradle ^ 1 error*
This is because on Windows, Git can not create symbolic link file on non-admins mode. Symbolic link file is created as text file, containing a symbolic link.
Try the following command in Administrator Mode:
git clone -c core.symlinks=true <URL>
Then check the content of symbolic link file, such as "build.gradle" in your description. It should be the same as the content of "../../api.gradle", not just a symbolic link.
See git-for-windows-wiki-Symbolic-Links for more details.
We recently upgraded to Eclipse 4.4 / PyDev 3.8 from Eclipse 4.2 / PyDev 2.7. Unfortunately, we now get this error when we run our code as Debug:
Traceback (most recent call last): File
"C:\Programs\eclipse\plugins\org.python.pydev_3.8.0.201409251235\pysrc\pydevd.py",
line 2183, in
globals = debugger.run(setup['file'], None, None) File "C:\Programs\eclipse\plugins\org.python.pydev_3.8.0.201409251235\pysrc\pydevd.py",
line 1622, in run
pydev_imports.execfile(file, globals, locals) # execute the script File "C:\Mercurial\ABC\tools\foo.pyc", line
1 SyntaxError: Non-ASCII character '\xf3' in file
C:\Mercurial\ABC\tools\foo.pyc on line 1, but no
encoding declared; see http://www.python.org/peps/pep-0263.html for
details
The same code works fine when run as a normal Python Run, and it worked fine in both Run and Debug on the older version of Eclipse/PyDev.
From what I've found on Stack Overflow and online, the standard solution when you get this error is to add "# coding = utf-8" to the top of the file in question. However, we don't have control of "foo.pyc" - there's no way for us to modify this file. Is there anything else we can try?
The python version is 2.7.
I want to use the Eclipse plugin "makegood" to use php-unit-tests in Eclipse. When I'm running phpunit on console, everything is working.
I followed the following instruction to set up the makegood-plugin in Eclipse: http://www.stuermer-benjamin.de/v12_1/eclipse-4-2-with-php-android-and-unit-testing/
The status of makegood is "Waiting for a test run...", but when I try to run a unit-test, I get this error printed in the console:
Fatal error: Class
> 'Stagehand\TestRunner\CLI\TestRunnerApplication\Command\CommandRepository'
> not found in C:\Users\myNameWith18Charac
> \.eclipse\org.eclipse.platform_4.3.0_1709980481_win32_win32_x86_64\plugins\com.piece_framework.makegood.stagehandtestrunner_2.5.0.v201311031709\resources\php\php\Stagehand\TestRunner\CLI\TestRunnerApplication\Application.php
> on line 64
>
> Call Stack:
> 0.0000 148336 1. {main}() C:\Users\myNameWith18Charac\.eclipse\org.eclipse.platform_4.3.0_1709980481_win32_win32_x86_64\plugins\com.piece_framework.makegood.stagehandtestrunner_2.5.0.v201311031709\resources\php\bin\testrunner.php:0
> 0.0100 460744 2. Stagehand\TestRunner\CLI\TestRunnerApplication\Application->__construct()
> C:\Users\myNameWith18Charac\.eclipse\org.eclipse.platform_4.3.0_1709980481_win32_win32_x86_64\plugins\com.piece_framework.makegood.stagehandtestrunner_2.5.0.v201311031709\resources\php\bin\testrunner.php:58
The class Stagehand\TestRunner\CLI\TestRunnerApplication\Command\CommandRepository is existing!
Is the path maybe too long? But I don't know, how to change it. I'm using win7 x64.
I'm seeing the same thing in Ubuntu, running Eclipse Kepler and PDT 3.3.
Enabling debug in MakeGood, I can see that the command that's actually being run is php with a single argument of the file I'm currently viewing (E.G the test).
It simply doesn't work as advertised, as it's just trying to execute the file on its own.
Downgrading to Eclipse 3.8 (Juno), and PDT 3.0.0 worked for me.
*Edit:
You can define a custom bash script as the php executable as a workaround, and hardcode the path to testrunner.php
#!/bin/bash
# MakeGood for PHP stopped working after Eclipse Indigo (3.8) due to inability to run testrunner.php
# This is a hack PHP binary, to be configured as PHP executable for MakeGood to start working in Juno, Kepler and Luna.
# Remove the -n operator to read all config files
options=`echo $# | sed 's%-n %%' | sed 's%-c .+? %%'`
# Hardcode path to testrunner.php
options=`echo $options | sed 's#open_tag=on [^ ]*#open_tag=on /opt/testrunner.php
/usr/bin/php $options
When I try to auto-discover and run my tests in PyDev I get many import errors...
For example:
Finding files... done.
Importing test modules ... Traceback (most recent call last):
File "C:\Users\User\Documents\eclipse\dropins\plugins\org.python.pydev.debug_2.4.0.2012020116\pysrc\pydev_runfiles.py", line 307, in __get_module_from_str
mod = __import__(modname)
ImportError: No module named docs.conf
ERROR: Module: docs.conf could not be imported (file: C:/Users/User/Documents/workspaces/workspace1/test/docs/conf.py).
done.
As you can see the "conf.py" file is just a file that is needed for documentation: not actual code. How do I limit PyDev from being over-zealeous when searching for tests?
This is currently possible only in the latest PyDev nightly build.
Go to: window > preferences > pydev > pyunit and add a parameter: --include_files=test*.py
This will be actually released on PyDev 2.6.0.
To grab the nightly build, see: http://pydev.org/download.html
I am trying to utilize the Eclipse IDE environment with SAGE using the Pydev extension.
I am following these steps as outline here at http://groups.google.com/group/sage-support/browse_thread/thread/628b80e6bebcc317
Executing a simple code as
import sys
from sage.all import *
print ("2")
gives me an error with the following traceback
Traceback (most recent call last):
File "/Users/username/Documents/eclipse/python/test2.py", line 2, in <module>
from sage.all import *
File "/Users/username/Desktop/sage/local/lib/python2.6/site-packages/sage/all.py", line 63, in <module>
from sage.ext.c_lib import _init_csage, sig_on_count
ImportError: dlopen(/Users/username/Desktop/sage/local/lib/python2.6/site- packages/sage/ext/c_lib.so, 2): Library not loaded: libcsage.dylib
Referenced from: /Users/username/Desktop/sage/local/lib/python2.6/site-packages/sage/ext/c_lib.so
Reason: image not found
As by the instructions, trying to execute eclipse from the terminal window(OSX Lion) by the following
$sage -sh
$eclipse
only gives me the following traceback
-bash: -sh: command not found
Any help would be appreciated, notebook() ide of SAGE works fine but Id like to be able to use the Eclipse IDE environment rather than an online server browser.
Sounds as if you entered the '$'. It is sometimes used to indicate a line of input at the terminal. You should also make sure, that sage and eclipse are in your PATH, or you could use the complete path in both cases
~/path/to/sage -sh
~/path/to/eclipse