Hello Christopher, I'm using WTP 3.2 r4 or 3.1.1
I want to have Semantic Validation enabled. I think that the code analysis is wrong. I've reported both as defects. regards Przemek 2010/1/14 Christopher Jaun <[email protected]> > For the second two....Go to Preferences -> JavaScript -> Validation -> > Errors/Warnings and disable Semantic Validation using the check box at the > top of the page. > > I don't have a work around for the first problem. > > When you say latest WTP which version do you actualy mean? > > Please open defects for these three problems here: > https://bugs.eclipse.org/bugs/enter_bug.cgi?product=WTP%20Source%20Editing > > Do so against the wst.jsdt component. > > Thank you, > Chris > > > [image: Inactive hide details for Przemek Chudzinski > <[email protected]>]Przemek Chudzinski <[email protected]> > > > > *Przemek Chudzinski <[email protected]>* > Sent by: [email protected] > > 01/14/2010 03:48 AM > Please respond to > "General discussion of project-wide or architectural issues." > <[email protected]> > > > To > > [email protected] > cc > > > Subject > > [wtp-dev] wtp JS support bugs and problems > > Hi, > > I found 3 problems using the latest WTP. > > > > 1. This method: > > /** > * @param eventObject > * @return > */ > function pe_rtcx_SaveButton(eventObject) > { > switch (approvalPosition) > { > case "0": > functionalstatus.setValue(REQUEST_STATE_ZeroRTCSaved); > break; > case "1": > functionalstatus.setValue(REQUEST_STATE_FirstRTCSaved); > break; > default: > break; > } > > > if (window.parent.setLocalState) > { > window.parent.setLocalState(STATE_SAVE); > } > else > { > window.parent.application.container.close(); > } > } > > causes > Description Resource Path Location Type > Internal validation error > java.lang.NullPointerException > at > org.eclipse.wst.jsdt.internal.compiler.ast.SwitchStatement.analyseCode(SwitchStatement.java:107) > at > org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.analyseCode(MethodDeclaration.java:94) > at > org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.analyseCode(AbstractMethodDeclaration.java:112) > at > org.eclipse.wst.jsdt.internal.compiler.ast.CompilationUnitDeclaration.analyseCode(CompilationUnitDeclaration.java:161) > at > org.eclipse.wst.jsdt.internal.compiler.Compiler.process(Compiler.java:598) > at > org.eclipse.wst.jsdt.internal.compiler.Compiler.compile(Compiler.java:356) > at > org.eclipse.wst.jsdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:311) > at > org.eclipse.wst.jsdt.internal.core.builder.IncrementalImageBuilder.compile(IncrementalImageBuilder.java:306) > at > org.eclipse.wst.jsdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:248) > at > org.eclipse.wst.jsdt.internal.core.builder.IncrementalImageBuilder.build(IncrementalImageBuilder.java:134) > at > org.eclipse.wst.jsdt.internal.core.builder.JavaBuilder.buildDeltas(JavaBuilder.java:302) > at > org.eclipse.wst.jsdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:214) > at > org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:627) > at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) > at > org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170) > at > org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201) > at > org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253) > at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) > at > org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256) > at > org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:309) > at > org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:341) > at > org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140) > at > org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238) > at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) > BA_TransactionDetails.js /Siemens > CoF/src/web/com/siemens/fs/cof/baap line 0 JavaScript Problem > > > if approvalPosition will be declared as global, or if,else will be removed > then the error will be gone. > > > > > > Second thing is: > > var Definitions = > { > Literal : > { > YES : "Yes", > NO : "No", > TRUE : "true", > FALSE : "false", > UNDEFINED : "undefined" > } > } > > > And when I use. > Definitions.Literal.TRUE > > I get a warning which cant be suppressed/disabled > > Description Resource Path Location Type > The static field ___anonymous23434_23566.TRUE should be accessed in a > static way BA_TransactionDetails.js /fs/cof/baap line 278 > JavaScript Problem > > > > And third thing > > function BA_RTCX_DoTerminateRequest(iRequestPK, requestID) > { > return function(confirmReturnValue) > { > if ( confirmReturnValue != 1 ) > { > return; //hers the error > } > window.parent.application.container.close(); > }; > } > > Description Resource Path Location Type > This function must return a result of type any BA_RtcX.js > /fs/cof/baap line 524 JavaScript Problem > > > Any ideas how can I set WTP under eclipse to disable those errors. > > Regards > Przemek > _______________________________________________ > wtp-dev mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/wtp-dev > > > _______________________________________________ > wtp-dev mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/wtp-dev > >
<<graycol.gif>>
<<ecblank.gif>>
_______________________________________________ wtp-dev mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/wtp-dev
