Closed cdamus closed 2 years ago
The builds are now all broken by the removal of the Orbit repository.
Hi @cdamus!
With #199 I updated the targetplatform to use the current Eclipse release 2022-03
. So at least the Jenkins Build should succeed again. With the GitHub action builds there are issues we should investigate (see also #200).
But if the local and Jenkins builds succeed we are good to go for now I'd say (although this is not too nice of course). I will have a look at your PR today :eyes:
Hi, @ndoschek. Commit 484e92509f5f47da94875b7dd5c0aa7887479ee1 makes a bunch of changes to streamline the API and example application, pursuant to off-line discussion:
CodecSubscriptionListener
class as EObjectSubscriptionListener
EClass
from the clientAbcToEObjectSubscriptionListener
classes as subclasses of EObjectSubscriptionListener
APIVersion
parsing and convenience constantsJsonPatch
and CCommandExecutionResult
variants of the incremental updateecore
pseudo-format for subscriptions in the example client as an optional "as eobject" command argument
get
commandedit(...)
method with EditContext
web-socket that was never implemented on the server endCommit e66317f267bfb8ef65e65c10ea21fb4753414ba8 fixes the copyright headers in the generated code (Eclipse code folding FTW!) and removes the superfluous constructor argument in the TypedSubscriptionListener
class. While I was in there, I thought I should add some doc comments.
Regenerating the model also fixed an inconsistency in the generated code's metadata for the stringValue()
operation that originally had been named valueString()
but which at some point I had renamed as stringValue()
. But in that refactoring exercise I had neglected to regenerate the package metadata. So, happily that is now fixed.
@ndoschek there are still two Checkstyle problems in the EMF-generated doc comments in XyzImpl
classes. It is strange because
@generated NOT
. Oddly, not on that annotated method. This cannot be a coincidenceThis is surprising and unnecessary because in general I would ignore Checkstyle on generated code. What shall I do about this?
@cdamus AFAIK the modelserver.edit
package should already exclude generated sources from checkstyle checks. At least at the current master: https://github.com/eclipse-emfcloud/emfcloud-modelserver/blob/7fc1da39770697e93993ff8310ad6ead0c7472e2/bundles/org.eclipse.emfcloud.modelserver.edit/.checkstyle#L14
I guess we should make sure that the maven checkstyle check also excludes the src-gen directories.
(see the glsp-server maven config as a reference)
Thanks @tortmayr . It looks like this .checkstyle
config is already trying to exclude the src-gen folder:
<file-match-pattern match-pattern="src-gen" include-pattern="false"/>
I suppose that isn't working? Or it's used only by the Eclipse Checkstyle plug-in?
I suppose that isn't working? Or it's used only by the Eclipse Checkstyle plug-in?
It is working but only for the Eclipse checkstyle plugin. The maven plugin needs be configured separately. e.g:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${checkstyle.plugin}</version>
<configuration>
<configLocation>emfcloud-checkstyle-8.44.xml</configLocation>
<consoleOutput>true</consoleOutput>
<excludes>**/src-gen/**/*.java</excludes>
</configuration>
...
</plugin>
Well, for whatever reason, no variation of <excludes>
configuration that I tried actually caused Checkstyle to skip the files in the src-gen/
tree:
<excludes>**/src-gen/**/*.java</excludes>
<excludes>**/src-gen/**/*</excludes>
<excludes>src-gen/**/*</excludes>
<excludes>**/src-gen/**</excludes>
<excludes>src-gen/**</excludes>
So, in commit aacddfb108cf7d7b37e9bcbe13a2ba779d64b8f7 I resorted to a suppression filter to skip Javadoc checks on these files that it seems Checkstyle just insists on checking.
Add/refine the Java client for API v2 endpoints that correspond to API v1, but of course with their additional capabilities, especially JSON Patch for editing. This specifically excludes a client API for the
api/v2/transaction
endpoint which is intended for use only by the modelserver-node layer.EObject
s, which enables Java-friendly access to the JSON Patch model update notificationsFixes #172.
Contributed on behalf of STMicroelectronics.