lustre-labs / dev-tools

Lustre's CLI and development tooling: zero-config dev server, bundling, and scaffolding.
55 stars 18 forks source link

Add warning for Windows users that they need elevated privileges to run dev tools commands. #18

Closed hayleigh-dot-dev closed 2 days ago

hayleigh-dot-dev commented 8 months ago

Some Windows users were reporting problems running anything from our dev tools. They were getting a file I/O error. After a user did some digging it turns out that this is a rebar thing whereby it's creating symlinks for any dep that has a priv/ directory.

Creating symlinks needs elevated privileges so your editor (or terminal) needs to be in admin mode or you will always get an error like:

Error: File input/output error

An error occurred while trying to link this file:

    C:\projects\gleam\lustre\examples\05-http-requests\build\dev\erlang\gleam_package_interface\priv

The error message from the file I/O library was:

    The client does not have the required rights. (operating system error 1314)

This isn't really our problem but we can absolutely warn Windows users ahead of time so they're not scratching their head or thinking we're the ones at fault!

hayleigh-dot-dev commented 2 days ago

The gleam compiler now produces an error message itself for this scenario, so we don't need to handle it!