Showing posts with label Eclipse. Show all posts
Showing posts with label Eclipse. Show all posts

Tuesday, June 21, 2011

Err: No entry for terminal type "unknown"; using dumb terminal settings.

        Run Eclipse from the terminal with or wothout root permission. (With root permission is recommended)

Tuesday, September 30, 2008

Importing of existing symfony project created + Eclipse

    Normally projects created by other programs cannot be import by Eclipse. So that do the following prcedure to convert the Symfony project folder created manually to Eclipse acceptable one.


    Method 1: Copy and paste the file called .project from existing some other Eclipse project folders. Edit that file to change the project name and save it. From now it can be imported by Eclipse.

    Method 2. File content follows. 

        Create a file and paste this on to it.
        <?xml version="1.0" encoding="UTF-8"?>
        <projectDescription>
            <name>ostd</name>
            <comment></comment>
            <projects>
            </projects>
            <buildSpec>
                <buildCommand>
                    <name>org.eclipse.php.core.PhpIncrementalProjectBuilder</name>
                    <arguments>
                    </arguments>
                </buildCommand>
                <buildCommand>
                    <name>org.eclipse.php.core.ValidationManagerWrapper</name>
                    <arguments>
                    </arguments>
                </buildCommand>
            </buildSpec>
            <natures>
                <nature>org.eclipse.php.core.PHPNature</nature>
            </natures>
        </projectDescription>


    Method 3:
        1. Create a project in same name using eclipse.
        2. Copy and paste all the files into that from existing project folder.

Friday, August 1, 2008

Err: Error on executing Symfoclipse Commands

Error:

            !ENTRY org.eclipse.ui 4 0 2008-06-17 19:12:57.943
            !MESSAGE Unhandled event loop exception
            !STACK 0
            java.lang.NumberFormatException: For input string: "(C:"
                at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
                at java.lang.Double.valueOf(Unknown Source)
                at cc.noy.eclipse.symfony.popup.actions.SymfonyAction.is1_1(SymfonyAction.java:89)
                at cc.noy.eclipse.symfony.popup.actions.SymfonyClearCacheAction.run(SymfonyClearCacheAction.java:14)
                at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)....... etc


Reason:

 
            Symfoclispe uses the symfony command “symfony -V” to find out the current version of the symfony all the times. But the command return the version with the installed path. So while trying to get the version no from the string could not give the correct version no.

            In that time no command is executed and nothing will be shown in output pane.

Solution:

            Simply edit the file usr/shar/php/symfony/command/sfSymfonyCommandApplication.class.php and change the line

            return sprintf('%s version %s (%s)', $this->getName(), $this->formatter->format($this->getVersion(), 'INFO'), sfConfig::get('sf_symfony_lib_dir'))."\n";

            to

            return sprintf('%s version %s', $this->getName(), $this->formatter->format($this->getVersion(), 'INFO'))."\n";