Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 79024 invoked from network); 16 Nov 2010 13:07:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Nov 2010 13:07:03 -0000 Received: (qmail 24601 invoked by uid 500); 16 Nov 2010 13:07:35 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 24573 invoked by uid 500); 16 Nov 2010 13:07:35 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 24566 invoked by uid 99); 16 Nov 2010 13:07:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Nov 2010 13:07:35 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Nov 2010 13:07:33 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oAGD7Deq004148 for ; Tue, 16 Nov 2010 13:07:13 GMT Message-ID: <10362360.107561289912833357.JavaMail.jira@thor> Date: Tue, 16 Nov 2010 08:07:13 -0500 (EST) From: =?utf-8?Q?Nicolas_Lalev=C3=A9e_=28JIRA=29?= To: notifications@ant.apache.org Subject: [jira] Commented: (IVYDE-243) IvyDE Autocompletion problem - doesn't support XML "includes" and $properties properly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IVYDE-243?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D12932= 450#action_12932450 ]=20 Nicolas Lalev=C3=A9e commented on IVYDE-243: --------------------------------------- I looked closer to how the completion work. Effectively the include is not = supported at all. The list of configuration is obtained from some pattern m= atching in the file (see IvyModuleDescriptorFile.java). This would may need= some major change. > IvyDE Autocompletion problem - doesn't support XML "includes" and $proper= ties properly > -------------------------------------------------------------------------= ------------- > > Key: IVYDE-243 > URL: https://issues.apache.org/jira/browse/IVYDE-243 > Project: IvyDE > Issue Type: Bug > Components: ivy editor > Affects Versions: 2.0.0.final > Environment: Linux, Eclipse 3.5, Ivy 2.1, IvyDE 2.0 > Reporter: Eugene Sajine > > Please note that in all described cases the ivyDE plugin and Ivy itself a= re parsing existing files ok and resolving dependencies correctly. > IvyDE editor doesn't know how to parse XML includes and $properties while= ivy=20 > itself does that with no problem. > I mean that we have ivy.settings which doesn't have repositories listed i= n=20 > chain resolver directly in the file, but includes the file with this=20 > information: > =20 > or even something like this: > =20 > We also *don't* use direct addresses in patterns like: > > > pattern=3D/some/shared/folder/[organisation]/[module]/[revision]/[artifac= t]-[revision].[ext]/> > > but we use=20 > > > pattern=3D${IVYREPO}/[organisation]/[module]/[revision]/[artifact]-[revis= ion].[ext]/> > > As i said - Ivy works with this fine, but IVYDE Editor doesn't and here a= re the issues I'm having with it > 1. Configuration autocompletion. > our configurations file which we include into the ivy.xml has configurati= ons defined like that (example): > a= pi(default);compile->api(default);runtime->runtime(default)"> > > > > > in ivy.xml we have it included > > > > 2 problems here: > The only way i can get IVyDE autocomplete to work with configurations is = to specify them directly in the file. In addition to that the only acceptab= le format is *without* default mapping. The default mapping causes autocomp= lette to show only "*" and "default" as possible conf values, when i should= see *, api, compile and runtime. > Secondly, the include is not supported for editor even direct. When i'm u= sing it autocomplete gives me only "*" > 2. org and rev. > With my current set up when I'm hitting CTRL+Space to get autocomplete fo= r or I'm getting a NullPointerException. Please, see the stack = trace in the end of the mail. > 3. When I'm hitting Ctrl+Space for I'm actually getting a list of = artifacts! and I believe i see artifacts from all of our repos...=20 > Hope that helps! > Thanks, > Eugene > here is the exception for p.2 > java.lang.NullPointerException > at=20 > org.apache.ivyde.common.model.IvyTag.getPossibleValuesForAttribute(IvyTag= .java:163) > at=20 > org.apache.ivyde.common.ivyfile.IvyModuleDescriptorModel$12.getPossibleVa= luesForAttribute(IvyModuleDescriptorModel.java:268) > at=20 > org.apache.ivyde.common.completion.IvyCodeCompletionProcessor.computeValu= eProposals(IvyCodeCompletionProcessor.java:129) > at=20 > org.apache.ivyde.common.completion.IvyCodeCompletionProcessor.computeComp= letionProposals(IvyCodeCompletionProcessor.java:50) > at=20 > org.apache.ivyde.eclipse.ui.editors.xml.IvyContentAssistProcessor.compute= CompletionProposals(IvyContentAssistProcessor.java:70) > at=20 > org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionPr= oposals(ContentAssistant.java:1832) > at=20 > org.eclipse.jface.text.contentassist.CompletionProposalPopup.computePropo= sals(CompletionProposalPopup.java:556) > at=20 > org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$16(Co= mpletionProposalPopup.java:553) > at=20 > org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(Comple= tionProposalPopup.java:488) > at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) > at=20 > org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposal= s(CompletionProposalPopup.java:482) > at=20 > org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleComplet= ions(ContentAssistant.java:1660) > at=20 > org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java:= 835) > at=20 > org.eclipse.ui.texteditor.ContentAssistAction$1.run(ContentAssistAction.j= ava:82) > at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) > at=20 > org.eclipse.ui.texteditor.ContentAssistAction.run(ContentAssistAction.jav= a:80) > at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) > at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:185) > at=20 > org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandl= erWrapper.java:109) > at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476) > at=20 > org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(Paramete= rizedCommand.java:508) > at=20 > org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerSer= vice.java:169) > at=20 > org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKe= yboard.java:470) > at=20 > org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.ja= va:824) > at=20 > org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchK= eyboard.java:880) > at=20 > org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(= WorkbenchKeyboard.java:569) > at=20 > org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard= .java:510) > at=20 > org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(= WorkbenchKeyboard.java:125) > at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) > at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1467) > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1175) > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1200) > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1185) > at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1212) > at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:706) > at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:2837) > at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:7= 03) > at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1570) > at org.eclipse.swt.widgets.Control.windowProc(Control.java:4587) > at org.eclipse.swt.widgets.Display.windowProc(Display.java:4191) > at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method) > at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:7588) > at org.eclipse.swt.widgets.Display.eventProc(Display.java:1185) > at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Metho= d) > at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1860) > at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3110) > at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405) > at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369) > at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221) > at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500) > at=20 > org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:3= 32) > at=20 > org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:49= 3) > at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) > at=20 > org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplicati= on.java:113) > at=20 > org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.ja= va:194) > at=20 > org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplicati= on(EclipseAppLauncher.java:110) > at=20 > org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Eclips= eAppLauncher.java:79) > at=20 > org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:3= 68) > at=20 > org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:1= 79) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at=20 > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java= :39) > at=20 > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:592) > at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559) > at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514) > at org.eclipse.equinox.launcher.Main.run(Main.java:1311) --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.