eclipse-cdt-cloud / cdt-cloud-blueprint

CDT Cloud Blueprint is a template for building custom web-based C/C++ tools. It is made up of existing open source components and can be easily downloaded and installed on all major operating system platforms.
MIT License
25 stars 11 forks source link

Switch to `FileUri.fsPath` #50

Closed planger closed 1 year ago

planger commented 1 year ago

What it does

As we've updated Theia, we can now rely on FileUri.fsPath and URI to compute file paths. This should also avoid OS-specific issues across Linux, Windows and Mac (e.g. #49).

Fixes https://github.com/eclipse-cdt-cloud/cdt-cloud-blueprint/issues/49 Contributed on behalf of STMicroelectronics.

How to test

  1. Open CDT Cloud Blueprint and open an empty workspace folder.
  2. Generate an example from the welcome page on Linux and Windows.
  3. Check that the example has been generated in to the workspace folder.
planger commented 1 year ago

@vinodappu Could you please test this PR and verify that the generation of examples also works for you with this change? Thank you!

planger commented 1 year ago

@vinodappu confirmed it works on Windows too! See https://github.com/eclipse-cdt-cloud/cdt-cloud/discussions/29#discussioncomment-4923298