Comments (38)
@adam-wypych You are correct. After adding the keyword.robot file to the project, it opens without any issues. This occurs only when .robot file is not associated with the robot project. Thanks Adam for identifying the cause and the solution.
from red.
I was able to reproduce Your issue mainly the problem is connected to for-item
like lines which has in first argument values belongs to pattern: <variable><space><any_character_not_whitespace>
or <variable><any_character_not_whitespace>
. To ilustrate problem occurs for .robot
file like below:
*** Test Cases ***
Test1
| | \ | ${s} a
Next problem file:
*** Test Cases ***
Test1
| | \ | ${s}a
As I see the problem do not appear for separators, which base on tabulator or double spaces. The possible workaround for this situation can be change pipe separator to be tabulators/double spaces or to change creation of text to ${${s} a}
it should be the same to normal text set ${s} a
.
Stack trace:
Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.ArrayList.elementData(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at org.robotframework.ide.eclipse.main.plugin.tableeditor.source.Rules.hasVariablesToAssign(Rules.java:346)
at org.robotframework.ide.eclipse.main.plugin.tableeditor.source.Rules.access$1(Rules.java:326)
at org.robotframework.ide.eclipse.main.plugin.tableeditor.source.Rules$8.evaluate(Rules.java:295)
from red.
This fix will be shipped with nearest RED release.
from red.
Hi,
The issue is not connected to file format (supported encode format for both RF and RED is UTF-8
).
We are able to reproduce the issue, if we drag and drop file outside RED workspace without include it inside any eclipse project. This functionality is not supported currently, so please put or create eclipse symbolic link Your file inside RED project.
Best Regards,
-Adam.
from red.
Thanks.
This happens despite generated .robot file is part of Robot project. So this is not related to drag and drop.
from red.
Please try to refresh project after You will generate .robot
files and then open from Project Explorer
.
from red.
Did You manage to check if refresh solve Your problem?
Thanks.
from red.
@vikubel - can you share update?
from red.
Apologies for the delayed response.
Refresh didn't work either.
Thanks
Vivek
On Tue, May 31, 2016 at 5:09 PM, Krzysztof Jozefowicz <
[email protected]> wrote:
@vikubel https://github.com/vikubel - can you share update?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#21 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AFMLYwcksCUp1yswK8hjQKEloac0tef5ks5qHB3lgaJpZM4IlUF1
.
From: Vivek A. Kulkarni
from red.
@vikubel Thanks for update.
Could you clarify:
- how
.robot
files are placed in Your RED project - is done automatically by Your program or You are doing it manually? - what method do you use to open those
.robot
files - is double click, open from context menu or other option? - what kind of OS do you use and which distribution and version of Eclipse?
from red.
- Robot files are copied manually to eclipse workspace location through
Windows Explorer. Then I refresh the eclipse workspace. - Double click to open the files in project navigator or explorer window
On Wed, Jun 1, 2016 at 2:31 PM, adam-wypych [email protected]
wrote:
@vikubel https://github.com/vikubel Thanks for update.
Could you clarify:
- how .robot files are placed in Your RED project - is done
automatically by Your program or You are doing it manually?- what method do you use to open those .robot files - is double click,
open from context menu or other option?—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#21 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AFMLYyi9WGAqRjBp3HELgZLx56MQJOvZks5qHUppgaJpZM4IlUF1
.
From: Vivek A. Kulkarni
from red.
- which eclipse version do you use I mean is Eclipse for Java Developer, SDK or J2EE?
- could You attach content of
.log
file located inside Your workspace?
from red.
- Eclipse Version:
Version: Mars (4.5)
Build id: I20150603-2000 - I see many logs. Please can you specify which log or location I need to
copy the log file?
Thanks
Vivek
On Thu, Jun 2, 2016 at 12:41 PM, adam-wypych [email protected]
wrote:
@vikubel https://github.com/vikubel
- which eclipse version do you use I mean is Eclipse for Java Developer,
SDK or J2EE?- could You attach content of .log file located inside Your workspace?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#21 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AFMLY4YiIyXg99q6a92XnRff8XSLf-31ks5qHoIbgaJpZM4IlUF1
.
From: Vivek A. Kulkarni
from red.
Re-read the question : I have J2EE version.
from red.
@vikubel
You need to copy content of .log
file located inside workspace, where project to which you copy file exists.
from red.
Attaching the log file from the workspace.
On Thu, Jun 2, 2016 at 2:16 PM, adam-wypych [email protected]
wrote:
@vikubel https://github.com/vikubel
You need to copy content of .log file located inside workspace, where
project to which you copy file exists.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#21 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AFMLY60zMg4WsanYnCSFde5gE0lgOIx8ks5qHph8gaJpZM4IlUF1
.
From: Vivek A. Kulkarni
from red.
@vikubel can You attach content of file? GitHub seems to do not accept attachements.
Which RED version do You use?
from red.
Sent it as mail attachment.
Log file is huge by ~9k lines . Is there a way I can attach the file? Or shall I paste the contents.
from red.
RED - Robot Editor ver. 0.5.0
from red.
please put content as lines here - sorry for inconvince.
from red.
Uploaded at gist for convenience: https://gist.github.com/vikubel/c4b47127406db074023871c976a52c72#file-eclipse-log
Hope it works.
from red.
Thanks it works I will check it :) I will be back to You when I will found reason - hope soon.
from red.
Really, appreciate the quick responses.
On Thu, Jun 2, 2016 at 2:33 PM, adam-wypych [email protected]
wrote:
Thanks it works I will check it :) I will be back to You when I will found
reason - hope soon.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#21 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AFMLYxlV33f_HXsbW2_tYQUJ2DM4uUVRks5qHpxhgaJpZM4IlUF1
.
From: Vivek A. Kulkarni
from red.
Hi, please upgrade RED to version 0.6.5-pre from GitHub releases, your issue should be fixed.
from red.
@vikubel sorry for interrupt You, but can You check with 0.6.5-pre if it works?
from red.
@KrzysztofJozefowicz Could reproduce this on elclipse mars again with latest update today, post updating RED to 0.7
org.robotframework.ide.eclipse.main.plugin.tableeditor.RobotFormEditor$IllegalRobotEditorInputException: Unable to open editor: unrecognized input of class: org.eclipse.ui.ide.FileStoreEditorInput
at org.robotframework.ide.eclipse.main.plugin.tableeditor.RobotFormEditor.setInput(RobotFormEditor.java:151)
at org.eclipse.ui.forms.editor.FormEditor.init(FormEditor.java:128)
at org.robotframework.ide.eclipse.main.plugin.tableeditor.RobotFormEditor.init(RobotFormEditor.java:109)
at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:361)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:319)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:898)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:879)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:121)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:345)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:264)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:104)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:73)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:55)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:129)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:971)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:640)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:746)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$0(PartRenderingEngine.java:717)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(PartRenderingEngine.java:711)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:695)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$1.handleEvent(PartServiceImpl.java:99)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:40)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:186)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:145)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4633)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:211)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:36)
at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:85)
at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:59)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:572)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:536)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:724)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1163)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3252)
at org.eclipse.ui.internal.WorkbenchPage.access$25(WorkbenchPage.java:3167)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:3149)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3144)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3108)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3089)
at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1159)
at org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run(OpenLocalFileAction.java:97)
at org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run(OpenLocalFileAction.java:70)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:247)
at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:228)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4481)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1329)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3819)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3430)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:694)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:606)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
at org.eclipse.equinox.launcher.Main.main(Main.java:1488)
from red.
Hi,
Do this issue occure with following file:
*** Test Cases ***
Test1
| | \ | ${s} a
If not please provide .log
file.
from red.
Yes, it occurs with your sample format as well.
Here is a sample file I am using:
I am using tab seperation
*** Settings ***
Library some.package.UserMgmtUtils
*** Keywords ***
modifyUser_r
[Arguments] ${arg0} ${arg1} ${arg2}
Some.package.UserManagementUtils.modifyUser ${arg0} ${arg1} ${arg2}
deleteUsers_r
[Arguments] ${arg0} ${arg1}
some.package.UserManagementUtils.deleteUsers ${arg0} ${arg1}
createUser_r
[Arguments] ${arg0}
${String} some.package.createUser ${arg0}
[Return] ${String}
from red.
Which version or RED do You currently using RED 0.7.2?
Can You add .log
file?
from red.
Yes.
0.7.2.2.201610210837 to be precise.
from red.
I think .log
will help to investigate the issue because the file attached by You works perfectly on 0.7.2.2.201610210837
version.
from red.
Appreciate if you could tell me how to get the log file, I will share now
from red.
You can add it to gist like last time and it should be inside workspace\.metadata
directory
from red.
https://gist.github.com/vikubel/971fada1240a91585cdd1b278230f7b4#file-logfile
See if you can access this.
from red.
Yes thanks I will check it.
from red.
Sure, thanks Adam
from red.
From the log it shows that it seems to be open outside of the project.
from red.
I checked it on linux MINT and seems that the problem occures only on Your machine. Additionally it is verry strange how the log about error is wrote. In my machine it begins like below:
!SESSION 2016-12-05 08:39:53.555 -----------------------------------------------
eclipse.buildId=4.5.2.M20160212-1500
java.version=1.8.0_74
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=pl_PL
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -data file:/home/red-test/workspace/ -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.jee.product
!ENTRY org.eclipse.ui 4 4 2016-12-05 08:57:58.879
!MESSAGE Unable to create part
!SUBENTRY 1 org.eclipse.ui 4 0 2016-12-05 08:57:58.879
!MESSAGE Unable to open editor
!STACK 0
org.robotframework.ide.eclipse.main.plugin.tableeditor.RobotFormEditor$IllegalRobotEditorInputException: Unable to open editor: unrecognized input of class: org.eclipse.ui.ide.FileStoreEditorInput
at org.robotframework.ide.eclipse.main.plugin.tableeditor.RobotFormEditor.setInput(RobotFormEditor.java:151)
at org.eclipse.ui.forms.editor.FormEditor.init(FormEditor.java:128)
from red.
Related Issues (20)
- eclipse+RED Robot Editor,False positive error HOT 1
- Cannot find RED.exe or any .exe files in RED master. Perhaps I'm the fool but it's really not clear to me how to go about installing RED without an executable file. HOT 1
- any plan to support robot framework 4.0? HOT 2
- Successfully imported python library does not see its keyword in run HOT 1
- Cannot use Undo in Eclipse HOT 4
- Guideline for Developer : How to build and debug Red Plugin source code HOT 2
- An internal error occurred during: "Looking for Python installations". HOT 2
- How to rerunfailedsuites using maven plugin
- With latest version of Robot Framework i am unable to get assistance calls HOT 1
- RED can not support adding library by pyc files
- How can I configure the working directory for a test execution? HOT 4
- 'Building' has encountered a problem. An internal error occurred during. "Building" HOT 5
- Unable to communicate with XML-RPC server HOT 2
- Missing requirement: org.eclipse.equinox.app 1.4.400.v20191212-0743 requires 'osgi.ee; (&(osgi.ee=JavaSE)(version=1.7))' but it could not be found
- does RED editor support Robot framework 5? HOT 2
- Library not being recognized using Red HOT 3
- Error while building new Project
- Unable to open .robot files after RED installation in Eclipse: Unable to initialize Suite editor HOT 3
- Is Eclipse and RED supporting Robotframework 6.0?(Project is not building in Eclipse with RED "https://sourceforge.net/projects/red-robot-editor/files/repository/0.9.1/)
- Library specification generation problem HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from red.