diagnose icon indicating copy to clipboard operation
diagnose copied to clipboard

Add CI

Open BinderDavid opened this issue 3 years ago • 5 comments
trafficstars

Add a Github Action CI Build matrix for Windows + Mac + Ubuntu.

BinderDavid avatar Oct 11 '22 11:10 BinderDavid

Thanks!

I'll wait a bit before merging this PR. Given the current state of the wcwidth package on Hackage, I'd rather not include CI if it will fail for at least Windows at the moment. Hopefully we get an update soon...otherwise I'll resort to including wcwidth inside the library (in a hidden module probably) and we'll see after that!

Mesabloo avatar Oct 13 '22 14:10 Mesabloo

Our temporary fix is to add the wcwidth Github repo as an extra dependency in our stack configuration: https://github.com/duo-lang/duo-lang/pull/491

We hope to remove that workaround once wcwidth has been fixed upstream and a new version uploaded to Hackage.

BinderDavid avatar Oct 13 '22 15:10 BinderDavid

I think it might be a good idea to do the same here, and also to document it (until a new version of wcwidth is uploaded to Hackage) for other users.

However, a quick question before: from what I see in the stack.yaml file, you are using the latest commit made to wcwidth. Does it work with spaces? As far as we have discussed in https://github.com/Mesabloo/diagnose/issues/11#issuecomment-1236385494, the fix should be pretty easy but I don't see it fixed there.

Mesabloo avatar Oct 14 '22 06:10 Mesabloo

Let's merge this, but we know that currently, Windows support for wcwidth (at least the officially published package) is a bit lacking. Would you mind commenting out windows-latest in the build matrix? I'll merge this right after. Or a better solution would be to add the dependency in the stack.yaml file? Either way, I'll add a warning in the README once this is merged. Thanks!

Mesabloo avatar May 13 '23 10:05 Mesabloo

Sorry, it took me quite a while to come back to this. I have written to the maintainer of wcwidth and have asked to take over maintenance of the wcwidth package on Hackage. If that works out then I will be able to release a new version of wcwidth on Hackage, and properly fix diagnose on Windows.

BinderDavid avatar Oct 14 '23 01:10 BinderDavid