Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content assist does not work in Windows environment #50

Closed
xkr47 opened this issue Mar 7, 2013 · 4 comments
Closed

Content assist does not work in Windows environment #50

xkr47 opened this issue Mar 7, 2013 · 4 comments
Labels
Milestone

Comments

@xkr47
Copy link
Member

xkr47 commented Mar 7, 2013

(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

Caused by: java.net.URISyntaxException: Relative path in absolute URI
at com.nitorcreations.robotframework.eclipseide.editors.ResourceManager.uriForPath(ResourceManager.java:129)

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.

@xkr47
Copy link
Member Author

xkr47 commented Mar 7, 2013

This issue is possibly related to #48

@xkr47
Copy link
Member Author

xkr47 commented Mar 8, 2013

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

@xkr47
Copy link
Member Author

xkr47 commented Mar 13, 2013

Fixed in d9b4a8f (log message mentions wrong bug)

@xkr47 xkr47 closed this as completed Mar 13, 2013
@xkr47
Copy link
Member Author

xkr47 commented Mar 28, 2013

Included in release 1.1.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant