Closed xkr47 closed 11 years ago
This issue is possibly related to #48
Reproduced:
Caused by: java.lang.RuntimeException: java.net.URISyntaxException: Relative path in absolute URI: file:C:/Users/xkr47/workspace/runtime-1/Foo/res1.txt
at com.nitorcreations.robotframework.eclipseide.editors.ResourceManager.uriForPath(ResourceManager.java:131)
at com.nitorcreations.robotframework.eclipseide.editors.ResourceManager.getBestFileForLocation(ResourceManager.java:112)
at com.nitorcreations.robotframework.eclipseide.editors.ResourceManager.getRelativeFile(ResourceManager.java:94)
at com.nitorcreations.robotframework.eclipseide.internal.util.LineFinder.processLinkableFile(LineFinder.java:139)
at com.nitorcreations.robotframework.eclipseide.internal.util.LineFinder.acceptResourceFile(LineFinder.java:121)
at com.nitorcreations.robotframework.eclipseide.internal.util.LineFinder.acceptMatches(LineFinder.java:75)
at com.nitorcreations.robotframework.eclipseide.internal.util.DefinitionFinder.acceptMatches(DefinitionFinder.java:73)
at com.nitorcreations.robotframework.eclipseide.internal.assistant.ProposalGenerator.computeCompletionProposals(ProposalGenerator.java:326)
at com.nitorcreations.robotframework.eclipseide.internal.assistant.ProposalGenerator.addKeywordCallProposals(ProposalGenerator.java:305)
at com.nitorcreations.robotframework.eclipseide.internal.assistant.RobotContentAssistant.computeCompletionProposals(RobotContentAssistant.java:122)
at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1839)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:566)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$16(CompletionProposalPopup.java:563)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup$14.run(CompletionProposalPopup.java:1569)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.incrementalComplete(CompletionProposalPopup.java:1563)
at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions(ContentAssistant.java:1664)
at org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java:932)
at org.eclipse.ui.texteditor.ContentAssistAction$1.run(ContentAssistAction.java:82)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.texteditor.ContentAssistAction.run(ContentAssistAction.java:80)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
... 53 more
Caused by: java.net.URISyntaxException: Relative path in absolute URI: file:C:/Users/xkr47/workspace/runtime-1/Foo/res1.txt
at java.net.URI.checkPath(Unknown Source)
at java.net.URI.<init>(Unknown Source)
at java.net.URI.<init>(Unknown Source)
at com.nitorcreations.robotframework.eclipseide.editors.ResourceManager.uriForPath(ResourceManager.java:129)
... 75 more
Fixed in d9b4a8f7628b255a288dae1ad353f397e6610444 (log message mentions wrong bug)
Included in release 1.1.1.
(user report) Hello, I'm using RobotFramework-EclipseIDE in Eclipse-Juno on Windows 7 platform. Was having Content Assist problems so I created 2 simple files one which pulled in the other under Setting --> Resource. Both files in same folder. When I try for content assist I get error
Path to file shows absolute path with exception of '/' instead of '\'
To clarify When I reduced everything down, the two files concerned were in the same folder and there was NO use of variables.