@ChickenCoderYt Ok, soooo... I already had a short look at it and it seems to works for me. I build the server using
./gradlew sarosServer. I build the Eclipse plugin using
./gradlew sarosEclipse and simply moved the four jar files to the dropin folder of an Eclipse installation. The connection worked without an issue (well the clients still ran into a NPE concerning the multi-user chat, but that doesn't hurt the main functionality; still weird though). I did not have any issues with xStream exceptions.
Update while writing: Apparently "uninstall" doesn't mean uninstall for Eclipse plugins? You can have a look at their FAQ. So you should (probably after making backups first; I don't want to be at fault when stuff breaks :wink:) probably go ahead and delete the Saros directories from the Eclipse plugin directory. Also, as stated in the last sentence of the first section, you could also have to clear the meta-data...
But I am not familiar with the Eclipse plugin stuff, so I am not 100% sure on any of this.
End of update.
So the issue might be that the Eclipse installation still retained the old Saros version. My advice would be to remove the dropin and ensure that the plugin is really uninstalled (no "Saros" entry in the menu bar and not listed as an installed plugin). Then, re-add the drop in and see if it loads correctly. (If not, look at the error log.) If you still have the same problems at that point, there are different ways of checking/ensuring that you are running the correct version to make sure that the problem really isn't caused by the version mismatch. But we can talk about that once it comes to it.
But, as a general note, the usability of the Server is questionable (and not really that well explained on our website; this is the first time I am using the Server as well).
As stated on the website, you can specify a workspace using
-Dsaros.server.workspace=. The thing is, if the workspace is empty initially (which it is by default if you haven't specified a workspace), the session will be created empty. This is the reason the invitation does not ask for a local project to use for the session as there aren't any projects that are being shared.
Instead, to share a project in a fresh session, a participant of the session has to share a project first by right-clicking a project in the project view and selecting the option "Add to Saros session" (or right-clinging the word "Session" in the Saros view and selecting the option "Add projects..."). This then adds the project to the session, leading to it being shared.
I don't know how the server handled existing projects in the workspace, but from my limited testing, it seems like they are shared automatically.
First of all thanks for this detailed explanation. I think i know what the mistake could be. When I builded saros i only got 3 files saros.core saros.eclipse and saros.whiteboard
But those are the important ones. The fourth one for me was the STF, our testing framework, which is not important for the main plugin functionality whatsoever. So me mentioning that there were 4 jars was probably more confusing than helpful. Sorry.
Just using the build jars should work. modifying an old bundled plugin should not be necessary.
You could also try a clean eclipse install and see if it works there. That would remove the possibility of interactions with previous installations.
This time it worked with the three files but i still get that nullpointer exception becouse of No such field saros.negotiation.ProjectNegotiationData.additionalProjectOptions
@ChickenCoderYt I have now also tried it on Windows 10 using a build created on Windows, so I really can't recreate your issue. Have you tried using a clean Eclipse installation (just downloading a fresh eclipse zip, unpacking it and adding the dropins)?
Uploading files to Gitter doesn't work on my system, but I can post a zipped version of the drop in jars and the server jar that work on my system later this evening.
Another question appeared
Is it normal that i can invite someone only once and after that i have to restart the server becouse
ERROR 17:16:52,647 [main] (InviteCommand.java:47) Error inviting users
java.lang.IllegalArgumentException: JID is not resource qualified: DeinNutzerName@saros-con.imp.fu-berlin.de
Could you provide the Saros log? It can be found in the workspace of the project:
Also, are you using any other IDE plugins (especially ones adding support for other programming languages; those have caused trouble in the past) in combination with Saros?