-
Notifications
You must be signed in to change notification settings - Fork 3
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
Remove duplicate entries for auto-completion suggestions and sort #70
Conversation
e6c6f8f
to
a319605
Compare
- Prefer package local names over global names - Sort local names before global name in textual and diagram editor Fixes #66
a319605
to
c0075c7
Compare
@harmen-xb I'm facing an issue with Windows on this one. Maybe you could help me out here since I don't have a Windows machine to try. It must have something to do with the paths not properly recognizing that one URI is not a child of another. |
@martin-fleck-at I finally got the debugging to work (i had the same issue on linux when running a single test). It had to do with the 'outFiles' being set to an empty array apparantly. I ran the unit tests of the uri-util class and I noticed a relavant difference in the posifxPath.relative function. See the relative result in linux: See how in Windows the result is prefixed with [UPDATE] I checked the uri-utils, what would happen if we only use nodePath and not the posix variant if it's available and then all tests on the uri-utils succeed on linux and on windows. Also I see the relative command working. I think this is because the unit tests only use posix paths, so there is no file:\C:\some\path as an example. It does however not solve the label issue (I can't find where the label is constructed in the code). |
That sounds good! So if I understand you correctly, not using the posix-path yields better result and for the test URIs we should use Windows-style paths on Windows and Unix-style paths on Unix and then it should work, is that correct? I do not really remember anymore why we had to do the posix-specific behavior tbh. |
The uri-utils tests do succeed on windows when you remove the usage of posix. But as I said, I think this is mainly because there is no test with a real Windows path starting with a drive. It might fail at that point, didn't have time to test this yet. Maybe we can have a look at the code where the label of an object is constructed and debug it there. Cause on Windows it's stil not prefixed with the system node (like in Linux).. |
Updated test utils to use posix join to force using forward slash.
@harmen-xb The latest update made the CI happy so I think we can merge this, what do you think? Feel free to approve if you agree ;-) |
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.
Changes look good!
Fixes #66