-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kie-issues#469: Static Validation for DMN and BPMN Editors on VS Code extensions - Part 1 #2165
Conversation
8950383
to
e4277e9
Compare
e4277e9
to
d8cfe44
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Josephblt hello, thank you for this new extension extended-services-vscode-extension
. From the ticket description it seems to be very important and useful, however I would like to ask few questions about its usage.
- Once it is installed into VS Code, are validation messages automatically shown to the user?
- Or does use need to do any additional setting?
- Does user needs to open some specific panel in VS Code?
- Does user need to start validation by some command?
- Is user prompted to install this new extension once old
DMN
orBPMN
extension is installed and the new is not detected?
Hello @jomarko.
|
754415f
to
6474002
Compare
Nice catch. This is fixed now. |
After some tinkering, I managed to reproduce this error using WSL. I changed the way the process is started and finished. This is fixed now. |
Hello @jomarko. Nice catch. According to an old bug reported in the VS Code repository, it is possible to get stale data from tracked textDocuments. The last commit fixes that. |
I found an issue regarding the "02 Restart extended-services", reported before: if you click to disable the extended-service and don't wait for it to disable and click again in the icon at the right bottom of the VSCode, the extended-service doesn't come back live again, being necessary to kill the process manually in task manager. In my opinion, I don't see why the user would like to completely disable it. Maybe just an option to "ignore the errors" instead of disable and enable? I don't know. |
Hello @danielzhe. I got an idea of what could be causing this. I'll let you know when I fix this. Thanks. |
Kogito Bundle KIE Business Automation Bundle
Custom editor only detect changes after saving 2 times. Changes from outside sources were not detected
Removed pretier configuration from settings.
… a error happens during the validation.
Changed description for connect/disconnect commands.
Fix for wrong status bar visibility on extension activation.
edf066b
to
da1b4aa
Compare
Hello @danielzhe. All done. I could only reproduce the issue you reported by fast clicking the status bar icon. This last commit fix that issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Josephblt thank you for updates. I think the points I raised during my previous review are addressed now. I have one more question. I tried to run extended services externally, I mean I set Automatically run a local instance of the service as false. It worked fine, I was doing updates for the dmn file and the problems tab was updated correctly, however then when I stopped that external extended service, the VS Code displayed this, an error message and the livenes indicator as live. Not sure, just asking, if this is intended behavior, or the extended services vscode extension should automatically detect the external extended service is offline and change the indicator to offline?
Hello @jomarko. To update the liveness indicator we use a heartbeat check. When the connection is lost the check fails, all diagnostics are cleared, the icon changes, and the following error appears: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, thank you @Josephblt , this PR is fine for me, I will get in touch in private channel with you to chat a little bit about the documentation for this extension.
Part 1 of: incubator-kie-issues/issues/469.
All functionality implemented. A new VS Code extension project was created. It is possible to validate BPMN and DMN files. You can connect to any Extended-Service or choose to locally run one.
A separate PR will be sent with tests for all features that this one introduced.