I was working in a module of my solution and changed a bunch of code. Most of it in methods. Tried to run it in Debugclient and it hung. Tried to run it again after restarting Servoy but same thing but also an empty window.
To make a long story short, I can’t activate the module anymore, nor can I open the forms (using the project explorer).
When I try to activate the module I get this error:
[attachment=0]module_activation.png[/attachment]
And I get the following error if I try to open the form via the Project Explorer view:
Could not open the editor: com.servoy.eclipse.designer.editor.VisualFormEditor does not support input class org.eclipse.ui.part.FileEditorInput
Same I get when I try to open the valuelist editor.
Other modules work just fine and I can’t really see any difference in the files. Even SVN tells me nothing has changed in those forms so I guess it’s some Eclipse metadata issue.
Apart from how this could happen does anyone have any ideas how to fix this ?
robert shouldnt see a .stp folder because he uses svn so thats .svn folders instead of .stp
Robert is it possible that i can have a look at your current workspace? for example can you 7zip it and send it over to me?
Else what are the errors in the 2 logs (servoy log but also the eclipse log in the .metadata dir of your workspace)
Okay, I found that this issue is of my own making.
I changed a variableType in my form variables (of only 1 form) to 39. But that was wrong. I needed 93 (DATETIME).
By using the wrong variableType Servoy didn’t wanted to activate the module anymore nor open any objects using the Servoy editors (Form/Valuelist).
Also solutions that linked this module stopped showing any modules connected in the modules node.
Perhaps Servoy can do a sanity check on these variableType’s like when saving the .js file or so ?
I know I could have used the “create form variable” dialog and make sure the type is set to DateTime but typing it in the editor is for me so much faster so I need to set the type myself when I want something else than the default MEDIA type I get.
Anyway, consider this as a BIG heads-up for tinkering with the variableType.
i fixed it, if you type something illegal there (which you shouldnt touch anyway ) then i will revert to the previous value.
(i am not going to program some fuzzy logic and use brainwave interception to figure out what you really wanted)