Community
Participate
Working Groups
Build Identifier: Build id: 20100617-1415 Whenever the following is entered in a php page Eclipse goes into a hard loop and eventually needs to abort. Report a "semantic highlighting error" restart Eclipse. $current_user->ID (I think will also fail with any of the other elements such as name. Reproducible: Always Steps to Reproduce: 1. Enter the following code // get the id of the current user function agv_current_user_id() { global $current_user; get_currentuserinfo(); return $current_user->ID; } 2.When you enter the last line it will go into an hard loop 3.
(In reply to comment #0) > Build Identifier: Build id: 20100617-1415 > > Whenever the following is entered in a php page Eclipse goes into a hard loop > and eventually needs to abort. Report a "semantic highlighting error" restart > Eclipse. > > $current_user->ID (I think will also fail with any of the other elements such > as name. > > Reproducible: Always > > Steps to Reproduce: > 1. Enter the following code > // get the id of the current user > function agv_current_user_id() { > global $current_user; > get_currentuserinfo(); > return $current_user->ID; > } > 2.When you enter the last line it will go into an hard loop > 3. I could not reproduce this bug follow your steps. Can you reproduce it in a new project that only contain only one file?
(In reply to comment #1) > (In reply to comment #0) > > Build Identifier: Build id: 20100617-1415 > > > > Whenever the following is entered in a php page Eclipse goes into a hard loop > > and eventually needs to abort. Report a "semantic highlighting error" restart > > Eclipse. > > > > $current_user->ID (I think will also fail with any of the other elements such > > as name. > > > > Reproducible: Always > > > > Steps to Reproduce: > > 1. Enter the following code > > // get the id of the current user > > function agv_current_user_id() { > > global $current_user; > > get_currentuserinfo(); > > return $current_user->ID; > > } > > 2.When you enter the last line it will go into an hard loop > > 3. > I could not reproduce this bug follow your steps. > Can you reproduce it in a new project that only contain only one file? You are correct. If I create a single file project it does not occur. It happens in the context of a large project, one part of which is "wordpress". I'll try to break out "wordpress" and see if I can reproduce it within that.
I am getting this same error with PDT and a wordpress project. It happens so often Eclipse has become unusable. An extract of my log file is below. !ENTRY org.eclipse.core.jobs 4 2 2010-09-07 15:31:07.571 !MESSAGE An internal error occurred during: "Semantic Highlighting Job". !STACK 0 java.lang.StackOverflowError at org.h2.message.TraceObject.<init>(TraceObject.java:27) at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:130) at org.h2.jdbcx.JdbcXAConnection$PooledJdbcConnection.<init>(JdbcXAConnection.java:484) at org.h2.jdbcx.JdbcXAConnection.getConnection(JdbcXAConnection.java:125) at org.h2.jdbcx.JdbcConnectionPool.getConnectionNow(JdbcConnectionPool.java:225) at org.h2.jdbcx.JdbcConnectionPool.getConnection(JdbcConnectionPool.java:201) at org.eclipse.dltk.internal.core.index.sql.h2.H2DbFactory.createConnection(H2DbFactory.java:146) at org.eclipse.dltk.internal.core.index.sql.SqlSearchEngine.search(SqlSearchEngine.java:66) at org.eclipse.dltk.core.index2.search.ModelAccess.findElements(ModelAccess.java:285) at org.eclipse.dltk.core.index2.search.ModelAccess.findElements(ModelAccess.java:263) at org.eclipse.dltk.core.index2.search.ModelAccess.findFields(ModelAccess.java:70) at org.eclipse.php.internal.core.model.PhpModelAccess.findFields(PhpModelAccess.java:39) at org.eclipse.php.internal.core.typeinference.evaluators.GlobalVariableReferencesEvaluator.init(GlobalVariableReferencesEvaluator.java:71) at org.eclipse.dltk.ti.GoalEngine.evaluateGoal(GoalEngine.java:220) at org.eclipse.dltk.ti.DefaultTypeInferencer.evaluateType(DefaultTypeInferencer.java:223) at org.eclipse.dltk.ti.DefaultTypeInferencer.evaluateType(DefaultTypeInferencer.java:231) at org.eclipse.php.internal.core.typeinference.PHPTypeInferenceUtils.resolveExpression(PHPTypeInferenceUtils.java:92) at org.eclipse.php.internal.core.typeinference.BindingUtility.getFunctionReturnType(BindingUtility.java:490) at org.eclipse.php.internal.core.ast.nodes.MethodBinding.getReturnType(MethodBinding.java:148) at org.eclipse.php.internal.core.typeinference.evaluators.MethodReturnTypeEvaluator.resolveReturnType(MethodReturnTypeEvaluator.java:154) at org.eclipse.php.internal.core.typeinference.evaluators.MethodReturnTypeEvaluator.init(MethodReturnTypeEvaluator.java:111) at org.eclipse.dltk.ti.GoalEngine.evaluateGoal(GoalEngine.java:220) at org.eclipse.dltk.ti.DefaultTypeInferencer.evaluateType(DefaultTypeInferencer.java:223) at org.eclipse.dltk.ti.DefaultTypeInferencer.evaluateType(DefaultTypeInferencer.java:231) at org.eclipse.php.internal.core.typeinference.PHPTypeInferenceUtils.resolveExpression(PHPTypeInferenceUtils.java:92) at org.eclipse.php.internal.core.typeinference.BindingUtility.getFunctionReturnType(BindingUtility.java:490) at org.eclipse.php.internal.core.ast.nodes.MethodBinding.getReturnType(MethodBinding.java:148) at org.eclipse.php.internal.core.typeinference.evaluators.MethodReturnTypeEvaluator.resolveReturnType(MethodReturnTypeEvaluator.java:154) at org.eclipse.php.internal.core.typeinference.evaluators.MethodReturnTypeEvaluator.init(MethodReturnTypeEvaluator.java:111) at org.eclipse.dltk.ti.GoalEngine.evaluateGoal(GoalEngine.java:220) at org.eclipse.dltk.ti.DefaultTypeInferencer.evaluateType(DefaultTypeInferencer.java:223) at org.eclipse.dltk.ti.DefaultTypeInferencer.evaluateType(DefaultTypeInferencer.java:231) at org.eclipse.php.internal.core.typeinference.PHPTypeInferenceUtils.resolveExpression(PHPTypeInferenceUtils.java:92) at org.eclipse.php.internal.core.typeinference.BindingUtility.getFunctionReturnType(BindingUtility.java:490) at org.eclipse.php.internal.core.ast.nodes.MethodBinding.getReturnType(MethodBinding.java:148) at org.eclipse.php.internal.core.typeinference.evaluators.MethodReturnTypeEvaluator.resolveReturnType(MethodReturnTypeEvaluator.java:154) at org.eclipse.php.internal.core.typeinference.evaluators.MethodReturnTypeEvaluator.init(MethodReturnTypeEvaluator.java:111) at org.eclipse.dltk.ti.GoalEngine.evaluateGoal(GoalEngine.java:220) at org.eclipse.dltk.ti.DefaultTypeInferencer.evaluateType(DefaultTypeInferencer.java:223) at org.eclipse.dltk.ti.DefaultTypeInferencer.evaluateType(DefaultTypeInferencer.java:231) at org.eclipse.php.internal.core.typeinference.PHPTypeInferenceUtils.resolveExpression(PHPTypeInferenceUtils.java:92) at org.eclipse.php.internal.core.typeinference.BindingUtility.getFunctionReturnType(BindingUtility.java:490) at org.eclipse.php.internal.core.ast.nodes.MethodBinding.getReturnType(MethodBinding.java:148) at org.eclipse.php.internal.core.typeinference.evaluators.MethodReturnTypeEvaluator.resolveReturnType(MethodReturnTypeEvaluator.java:154) at org.eclipse.php.internal.core.typeinference.evaluators.MethodReturnTypeEvaluator.init(MethodReturnTypeEvaluator.java:111) at org.eclipse.dltk.ti.GoalEngine.evaluateGoal(GoalEngine.java:220)
Still occurs with PDT Helios, I got it when opening WordPress functions.php.
Todd's bug has been fixed,please use the latest PDT release. If your log is not same as Todd's,please reopen it,and then upload the log,thanks very much!
Verified. Closing...