eclipse-plugins icon indicating copy to clipboard operation
eclipse-plugins copied to clipboard

Path display on Windows is not consistent

Open ilg-ul opened this issue 5 years ago • 2 comments

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 avatar Nov 06 '19 09:11 ilg-ul

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?

TommyMurphyTM1234 avatar Nov 06 '19 16:11 TommyMurphyTM1234

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?

ilg-ul avatar Nov 06 '19 17:11 ilg-ul