Replies: 3 comments 3 replies
-
For the popup it is very easy to fix. Yannick |
Beta Was this translation helpful? Give feedback.
-
You can find a new temporary version https://github.com/ThalesGroup/xsmp-modeler-core/releases/download/v1.1.0-rc3_tmp/xsmp-modeler-v1.1.0-rc3_tmp.vsix In Eclipse we have a per project configuration with a list of enabled generators. When a xsmpcat file is saved the configured generator are automatically run in background. Maybe we could have the same mechanism in VSCode instead or running each generator separately. I have no idea on how to create a project wizard or snippet for now |
Beta Was this translation helpful? Give feedback.
-
Hello @jvallade We just finalized the rc6. The Eclipse installation should be fixed. The vscode extension has been improved :
The conversion of smpcat files to xsmpcat files is not yet supported -> to be done in Eclipse. The C++ build with xsmp-sdk profile should works with default cmake configuration |
Beta Was this translation helpful? Give feedback.
-
I start a new thread as a discussion, to see if we can reach a complete workflow using VSCode (no Eclipse install 😄).
I've succeeded in installing the extension using the provided vsix file. I'm also able to create a simple xsmp file.
A first minor issue I've noticed (that should probably be a proper Github issue): each time the syntax is wrong (e.g during the definition of a new attribute / operation / etc), an error is issued by the LSP server and a pop-up appears. I'm not really familiar with the LSP protocol but it should be possible to return the fact that the syntax is wrong, without having this pop-up (that usually appear only when the extension crashed).
Now, about the workflow. I've created a xsmp file, but I'm a bit stuck. As far as I understand, the support in VSCode stops here anyway at the moment. My first intuition is to try and use the CLI for the rest of the workflow. Sadly, I was not able to find the jar file mentioned in the documentation... Maybe it could be part of the releases somehow ? (as it seems to me that it could also be another solution beside the Eclipse plugin and the VSCode extension).
One of the suggestions I have in mind for the VSCode integration is to make use of the VSCode commands to integrate with the rest of the workflow. Commands to generate smpcat file, C++ code, unit tests could be created. Maybe even to initialize a new project with the proper project layout.
I know I'm pushing in a direction that was not really foreseen when you started the project, but I'm convinced that having a complete VSCode support will greatly help targeting more people, especially people like me that have not used Eclipse for several years and don't really want to come back 😄. Also, if I find the time (which is far from sure), I would love to contribute a bit, but at the moment I feel like I miss too much information on the architecture of the product to know where to start. Again, if you want, I'm available to make a small call that might speed up a bit the on-boarding 😉
Beta Was this translation helpful? Give feedback.
All reactions