-
Notifications
You must be signed in to change notification settings - Fork 185
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
KOGITO-3718: Importing DMN as Included Model in VS Code on Windows #391
Conversation
@danielzhe can you please help us test this? |
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.
It's fixed. Thank you!
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.
We should contribute also unit test to this
@jomarko Thanks for the review! VS Code does not provide an easy way for us to unit-test it, so we would have to rely on heavy mocking to write them at the moment. We're researching what's the best way to approach unit tests for our VS Code Extension yet, but so far we don't have anything in place. This is something very important that will be addressed as soon as we have the resources to do so. |
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.
Found new issue during review
Next I decided to prepare an automated test
I listed PRs that block from merging it. Please Prioritize them.
* KOGITO-3846: Added notifications api to kogito tooling * KOGITO-3846: Upgrade version to 0.8.3 * Importing DMN as Included Model in VS Code on Windows (#391) * KOGITO-3846: Added notifications api to kogito tooling * Update Editors to 7.50.0-SNAPSHOT-20210203.151532 Co-authored-by: Jan Stastny <jstastny@redhat.com> Co-authored-by: Tiago Bento <1584568+tiagobento@users.noreply.github.com> Co-authored-by: Kogito Tooling Bot (kiegroup) <kietooling@gmail.com>
Prepare master branch for the next version iteration. See: https://issues.redhat.com/browse/KOGITO-1946 Signed-off-by: spolti <fspolti@redhat.com>
After analysing this issue more carefully, the issue was that, on Windows, the extension was not correctly identifying the current directory of the open file, and it was always falling back to the root of the Workspace.
A workaround for this issue is to always work on the root folder of the Workspace. Keep in mind that even after this fix, only DMNs on the same folder can be used as Included Models.