Skip to content
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

Path display on Windows is not consistent #367

Open
ilg-ul opened this issue Nov 6, 2019 · 2 comments
Open

Path display on Windows is not consistent #367

ilg-ul opened this issue Nov 6, 2019 · 2 comments
Assignees

Comments

@ilg-ul
Copy link
Contributor

ilg-ul commented Nov 6, 2019

While updating the CMSIS Packs, the console displays some paths with POSIX syntax, and some with Windows syntax.

An initial check showed that the code correctly uses getCanonicalPath() which should generate the POSIX path, but, for unknown reasons, sometimes this does not work.

@ilg-ul ilg-ul self-assigned this Nov 6, 2019
@TommyMurphyTM1234
Copy link

TommyMurphyTM1234 commented Nov 6, 2019

Apologies if this might be slightly off topic but isn't there a strong argument for making "/" the default path separator regardless of OS since it's compatible/portable across Windows, linuxes, Mac?

Edit: I may have misunderstood. On reflection it looks like canonical (using "/") paths is already the intention here?

However I meant using such paths everywhere but maybe that's not totally within the control of the GME/xPack plugins as some may be controlled by CDT, Eclipse or other plugins?

@ilg-ul
Copy link
Contributor Author

ilg-ul commented Nov 6, 2019

Yes, during the latest changes to improve the CMSIS Pack updates, I also updated all code displaying lines on the console to using getCanonicalPath(), expecting to see only nice POSIX paths in the output.

For reasons beyond my understanding, some lines still show back-slashes, and I'm a bit confused by this, I don't know what I did wrong.

Can you confirm that this happens on your Eclipses too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants