您的位置:首页 > 大数据 > 人工智能

Could not open the editor: assertion failed:

2011-03-11 10:34 513 查看
环境:opensuse,eclipse(eclipse-php-helios-SR2-linux-gtk.tar.gz), jre(jre-6u24-linux-i586-rpm.bin)

eclipse打开PHP文件报错:Could not open the editor: assertion failed:

google一阵,发现大多数人都是打开mxxml文件才出错(貌似是flex的问题),和我的情况稍有不同(汗達達~)

实在 不知道怎么 弄,下載了 個pdt 安裝,据然 就 阶决 了 http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo/SR2/eclipse-php-galileo-SR2-linux-gtk.tar.gz
转載一 偏在 LINUX下 安裝PDT的 文章(原文:http://howtosetup.in/how-to-setup-eclipse-pdt-in-linux)



How to setup
Eclipse PDT in linux


Eclipse is a multi-language software development environment
comprising an IDE and a plug-in system to extend it. It is written
primarily in Java and can be used to develop applications in Java and,
by means of the various plug-ins, in other languages as well, including
C, C++, COBOL, Python, Perl, PHP, and others.This tutorial explains how
you can install eclipse in linux with all required modules. First you
need to download the PDT from eclipse site given below.

{codecitation} http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo/R/eclipse-php-galileo-linux-gtk.tar.gz {/codecitation}

PDT is for PHP developers. You can use any other versions
according to the platform you are working in.

Move the tar file
in to /opt folder and extract the file.
{codecitation}
tar -xvzf
eclipse-php-galileo-linux-gtk.tar.gz
{/codecitation}

Now you
have eclipse in /opy/eclipse

You can start eclipse as follows.
{codecitation}
/opt/eclipse/eclipse
&
{/codecitation}

Now you can add aptana plugin which
is a very good plugin that offers code completion and have many
framework supports like jquery, prototype etc.

You can install
this plguin as follows.
{codecitation}
1. Go to Help ->
Install New Software...
2. In the "Work with:" text box, enter: http://update.aptana.com/install/studio 3. Click Add...
4.
Specify the Name of the Update site (i.e. Aptana Studio Plugin)
5.
Click OK
6. Select the "Aptana Studio" checkbox
7. Click the
Next Button
8. Confirm the items you are installing
9. Click the
Next Button once more
10. Accept the terms and conditions
11.
Click the Finish Button
{/codecitation}

If you are flex
develper, you can add the flex plugin to eclipse as follows.

Download flex builder from the link given below.
{codecitation} http://labs.adobe.com/downloads/flexbuilder_linux.html {/codecitation}

Give 755 permission to the bin file
{codecitation}
chmod 755
FlexBuilder_Linux_Plugin.bin
{/codecitation}
Run the file
{codecitation}

./FlexBuilder_Linux_Plugin.bin
{/codecitation}
Follow the
prompts to complete the installation.

Start Eclipse.

When
choosing the ‘install folder’ you can leave that to default, the Eclipse
folder will be defined in the next window.

As described select
the Eclipse folder, it must contain a subfolder named ‘configuration’.
Continue the installation untill the installer displays that you’re
done.

Start Eclipse and open the Flex perspective. If you get the
following error while opening a MXML file:
{codecitation}
Could
not open the editor: Assertion failed:
org.eclipse.jface.util.Assert$AssertionFailedException: Assertion failed
{/codecitation}

Make sure you have the correct Eclipse version, I used 3.3.2 on
Ubuntu 9.04.

Now we can configure subversion which is necessary
for a big project.

{codecitation} 1. Go to Help -> Install
New Software...
2. In the "Work with:" text box, enter: http://subclipse.tigris.org/update_1.4.x/ 3. Click Add...
4.
Specify the Name of the Update site
5. Click OK
6. Select the
"SVN" checkbox
7. Click the Next Button
8. Confirm the items you
are installing
9. Click the Next Button once more
10. Accept
the terms and conditions
11. Click the Finish Button
{/codecitation}

Now you can start developing site. Best of Luck. Let me know
you r suggestions.

http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo/R/eclipse-php-galileo-linux-gtk.tar.gz


PDT is for PHP developers. You can use any other versions
according to the platform you are working in.

Move the tar file
in to /opt folder and extract the file.

tar -xvzf eclipse-php-galileo-linux-gtk.tar.gz


Now you
have eclipse in /opt/eclipse

You can start eclipse as follows.

/opt/eclipse/eclipse &


Now you can add aptana plugin which
is a very good plugin that offers code completion and have many
framework supports like jquery, prototype etc.

You can install
this plguin as follows.

1. Go to Help -> Install New Software...
2. In the "Work with:" text box, enter: http://update.aptana.com/install/studio 3. Click Add...
4. Specify the Name of the Update site (i.e. Aptana Studio Plugin)
5. Click OK
6. Select the "Aptana Studio" checkbox
7. Click the Next Button
8. Confirm the items you are installing
9. Click the Next Button once more
10. Accept the terms and conditions
11. Click the Finish Button


If you are flex
develper, you can add the flex plugin to eclipse as follows.
Download flex builder from the link given below.

http://labs.adobe.com/downloads/flexbuilder_linux.html


Give 755 permission to the bin file

chmod 755 FlexBuilder_Linux_Plugin.bin


Run the file

./FlexBuilder_Linux_Plugin.bin


Follow the
prompts to complete the installation.

Start Eclipse.

When
choosing the ‘install folder’ you can leave that to default, the Eclipse
folder will be defined in the next window.

As described select
the Eclipse folder, it must contain a subfolder named ‘configuration’.
Continue the installation untill the installer displays that you’re
done.

Start Eclipse and open the Flex perspective. If you get the
following error while opening a MXML file:

Could not open the editor: Assertion failed:  org.eclipse.jface.util.Assert$AssertionFailedException: Assertion failed


Make sure you have the correct Eclipse version, I used 3.3.2 on
Ubuntu 9.04.

Now we can configure subversion which is necessary
for a big project.

1. Go to Help -> Install New Software...
2. In the "Work with:" text box, enter: http://subclipse.tigris.org/update_1.4.x/ 3. Click Add...
4. Specify the Name of the Update site
5. Click OK
6. Select the "SVN" checkbox
7. Click the Next Button
8. Confirm the items you are installing
9. Click the Next Button once more
10. Accept the terms and conditions
11. Click the Finish Button


Now you can start developing site. Best of Luck. Let me know
you r suggestions.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐