[ phpeclipse-Bugs-1444992 ] Save dialog pops up all the time

"SourceForge.net" <[email protected]> Sat, 03 Feb 2007 14:06:45 -0800
Newsgroups gmane.comp.ide.eclipse.phpeclipse.devel
Message-ID <[email protected]>
Bugs item #1444992, was opened at 2006-03-07 10:00
Message generated for change (Comment added) made by claw11
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=484801&aid=1444992&group_id=57621

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: PHP Editor
Group: None
Status: Open
Resolution: Invalid
Priority: 5
Private: No
Submitted By: luopio (lamekain)
Assigned to: Nobody/Anonymous (nobody)
Summary: Save dialog pops up all the time

Initial Comment:
On my Ubuntu Dapper with Eclipse 3.1.2 and the newest
PHPEclipse from the CVS update site I have an annoying
bug: every time I open/close or switch between files, a
save dialog appears. This is a basic GTK-save dialog
(running gnome), not the "Save as..."-dialog presented
by Eclipse. 

I noticed that in Preferences->File Associations
*.php-files are associated with the "PHP Editor" AND
the "Text Editor", but I can't remove the "Text
Editor". It reads the same thing as the "PHP Editor":
"Locked by PHP source file content type". And the
content types are locked as well.

The problem is only related to php files - python
files, for example, work just fine.

----------------------------------------------------------------------

Comment By: Craig Lawson (claw11)
Date: 2007-02-03 14:06

Message:
Logged In: YES 
user_id=360982
Originator: NO

Also on Gentoo x86
Eclipse Version: 3.2.1 Build id: M20060921-0945 (gentoo package
eclipse-sdk-3.2.1-r1)
PHPEclipse 1.1.8
Subclipse 1.1.10
Fresh install, workspace and plug-ins directory deleted.
Using Sun's 1.5 JRE

As with the others, my workspace and project are separate.
Also happened with eclipse 3.1.2 + PHPEclipse 1.1.8

As annoying as the "Save as" pop-ups are, I sometimes see the pop-up
appear but no content drawn inside. Sure looks like the "Save as" bug hangs
eclipse. CPU load stays low. No recovery: I have to kill eclipse. This
happens sometimes while switching between files, but 100% reliably when
starting up eclipse 3.1.2: it restores my PHP project, and the first switch
to another PHP file triggers the "save as" hang. Work-around: click the "X"
to close each file on start-up. Haven't been able to repeat this in eclipse
3.2.1 yet. 

----------------------------------------------------------------------

Comment By: John Zoetebier (johnzoet)
Date: 2006-11-14 13:44

Message:
Logged In: YES 
user_id=415417
Originator: NO

A possible workaround for this problem is by clicking on the Java
perspective.
In the Java perspective I do not get the dialog box anymore.
What I also doscovered is that the doalog box comes fromt he default
editor.
You can test this from context menu of PHP file > Open With > Default
Editor.
This shows exactly the dialog box.
My conclusion is that somehow the PHP editor and the Default editor are
invoked both at the same time by PHPeclipse.


----------------------------------------------------------------------

Comment By: John Zoetebier (johnzoet)
Date: 2006-11-14 13:12

Message:
Logged In: YES 
user_id=415417
Originator: NO

Did anybody find a workaround for this problem in the mean time ?
I tried to open the project in the workspace, then make a symbolic link to
the actual place of the web site, but this does not work.


----------------------------------------------------------------------

Comment By: John Zoetebier (johnzoet)
Date: 2006-11-14 12:44

Message:
Logged In: YES 
user_id=415417
Originator: NO

Same problem on Mandriva 2006.
PHPEclipse 1.1.8
Eclipse Version: 3.2.1 Build id: M20060921-0945
Mandriva 2006

I created a new PHP prject from an exisitng web site in
/var/www/html/hosts/tsfilex/web.
Now, whenever I open or close a file in the Navigator a Save File dialog
box pops up.
The "Save in Folder" field shows the Home folder.
This happens only with file with PHP extension. 

----------------------------------------------------------------------

Comment By: Karl Lattimer (synapt1c)
Date: 2006-05-05 02:54

Message:
Logged In: YES 
user_id=872847

I can confirm that this only happens, with me at least when
the project is outside of the default workspace, however
changine the eclipse.conf in /etc to specify a new default
workspace does not actually set the default workspace at all!

This is definately a bug in phpeclipse and not related to
other parts of eclipse as everything else works fine. The
bug did not appear in 1.1.7 only in 1.1.8

Now i've moved my project into $HOME/workspace it works but
when apache isn't running I get an error each time i open a
file telling me it can't connect to localhost. 

I don't necessarily want it to connect to localhost every
time I open a file!!! Its pretty dumb that it would try that
on files which are included and do not provide actual pages.
I should be able to specify which folders to preview scripts
from.

----------------------------------------------------------------------

Comment By: Dave Hall (skwashd)
Date: 2006-04-23 06:23

Message:
Logged In: YES 
user_id=276279

Same here - ubuntu dapper using gcj with projects outside of
workspace :(

----------------------------------------------------------------------

Comment By: Karl Lattimer (synapt1c)
Date: 2006-04-20 03:46

Message:
Logged In: YES 
user_id=872847

Same is happening for me on fedora 5, with php eclipse
1.1.8, the problem didn't exist with 1.1.7 just after i
upgraded to 1.1.8. It doesn't happen on any of my other
eclipse installations just FC5 with php eclipse.

text/python files are fine, so it is 'something' to do with
phpeclipse.

If i were able to change the default workspace I would, but
it seems locked to ~/workspace i find this incredibly
anoying as anjuta/glade both use ~/Projects (not a php issue
but I'll rant anyway)

Anyone know a way to track this bug better than 'something'
'somewhere'?

----------------------------------------------------------------------

Comment By: Karl Lattimer (synapt1c)
Date: 2006-04-20 03:45

Message:
Logged In: YES 
user_id=872847

Same is happening for me on fedora 5, with php eclipse
1.1.8, the problem didn't exist with 1.1.7 just after i
upgraded to 1.1.8. It doesn't happen on any of my other
eclipse installations just FC5 with php eclipse.

text/python files are fine, so it is 'something' to do with
phpeclipse.

If i were able to change the default workspace I would, but
it seems locked to ~/workspace i find this incredibly
anoying as anjuta/glade both use ~/Projects (not a php issue
but I'll rant anyway)

Anyone know a way to track this bug better than 'something'
'somewhere'?

----------------------------------------------------------------------

Comment By: luopio (lamekain)
Date: 2006-03-15 12:30

Message:
Logged In: YES 
user_id=1026186

location of workspace: 
/home/abuser/labra/cubicle

location of SVN-repository:
/home/abuser/kama/svn

Checked out project KISS into:
/home/abuser/labra/cubicle/KISS
-> worked fine

Checked out project KISS into:
/home/abuser/www/KISS
-> save-dialogs all over the place

Also tested like this:
Created new project "foo" at 
/home/abuser/labra
-> save dialogs raining

Created new project "bar" at 
/home/abuser/labra/cubicle/bar
-> no problems

----------------------------------------------------------------------

Comment By: Michael Huettemann (dynamike2000)
Date: 2006-03-15 09:50

Message:
Logged In: YES 
user_id=591629

Can you give an example of your path layout and a list of
non-standard plugins you have installed? I am unable to
reproduce this on Dapper Drake (and Windows). 

My workspace is located here

 /home/mike/workspace

To test, using subclipse, I checked a project out to: 

 /home/mike/test

No problems.

----------------------------------------------------------------------

Comment By: luopio (lamekain)
Date: 2006-03-15 08:50

Message:
Logged In: YES 
user_id=1026186

Sorry, but I'll reopen this. I got the problem again and
this time I have a better explanation on why this occurs.

The problem shows up when I checkout a project through
Subclipse to a location outside the workspace. If I use the
basic workspace location for the project, everything works
just fine, BUT if I don't use the basic workspace and thus
the project dir get's created somewhere else the save dialog
starts popping up every time a file in the problematic
project gets focus.

I tested the same procedure on PyDev and checked out one of
my python-projects outside the workspace and I didn't get
the save-dialog-madness, so it appears to be PHPEclipse
related. 

Could someone else confirm this? I did a totally fresh
install, so it should be reproducable on other machines as
well..

----------------------------------------------------------------------

Comment By: luopio (lamekain)
Date: 2006-03-10 05:18

Message:
Logged In: YES 
user_id=1026186

Solved just as you expected. Did a complete reinstall
(removing all the configuration as well), deleted ~/.eclipse
and started a fresh workspace.

Now everything works just fine. Thanks for the help.

p.s. I'd like to point out that the problem wasn't
perspective-specific after all, it also started showing up
in Java- and PyDev-perspectives.

----------------------------------------------------------------------

Comment By: Michael Huettemann (dynamike2000)
Date: 2006-03-09 00:45

Message:
Logged In: YES 
user_id=591629

To double-check I made sure that this problem does not occur
on my Dapper setup while using the PHP perspective, and it
does not.

----------------------------------------------------------------------

Comment By: luopio (lamekain)
Date: 2006-03-08 10:28

Message:
Logged In: YES 
user_id=1026186

I removed the file associations, but the problem persists. I
noticed that the problem only happens when I'm inside the
PHP perspective - working under PyDev or Java perspective
works just fine. 

I'm not too keen on doing a complete reinstall, since that
would mean hunting down all the plugins again. I think I'll
stick to using Java perspective, unless someone really needs
to know if removing everything solves the issue. 

----------------------------------------------------------------------

Comment By: Michael Huettemann (dynamike2000)
Date: 2006-03-08 05:08

Message:
Logged In: YES 
user_id=591629

There is something wrong with your setup. With a clean
install, on Ubuntu Dapper Drake, files of type '*.php' are
not listed among the "File Associations". Instead, these are
registered in the "Content Types" section.

Delete the entire file association, if possible, and try
again. Otherwise remove everything Eclipse and reinstall
3.1.2 from the Dapper repositories.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=484801&aid=1444992&group_id=57621

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642