It would be nice to have things like autocomplete and having swift preinstalled on gitpod
There's a bit more that needs to be done, e.g. install swift.
Would be great if someone could write a guide for the documentation.
This seems to be a good starting point: https://github.com/PerfectlySoft/PerfectDocs/blob/master/guide/gettingStarted.md
To clarify, what's required here is:
[ ] Write a Dockerfile based on FROM gitpod/workspace-full that installs swift, to produce a base image for Gitpod workspaces
[ ] Find good VS Code extension(s) for Swift, and install them in Gitpod
Yea
Hey, can I help make the Dockerfile?
@JesterOrNot Yes please! That would be awesome. 馃挴
I think the first step would be to set up a demo Swift project, with a .gitpod.yml that points to a Dockerfile installing Swift, and that also installs the appropriate VS Code extension(s).
I'm happy to help if you have any questions. 馃槃
Here is the repo so that you can check on it and stuff
https://github.com/JesterOrNot/Gitpod-Swift
Thanks for setting up a repo, @JesterOrNot! 馃槃
I went ahead and ran gp init and also installed Swift in the Dockerfile: https://github.com/JesterOrNot/Gitpod-Swift/pull/1
Nice! Now I'll get the stuff for the lang server together if you look in sources.txt I have some extensions that I found
@jankeromnes alright, I just got an error Activating extension Maintained Swift Development Environment failed: Cannot read property 'replace' of undefined. any ideas? you can reproduce it by opening the repo
EDIT: Nevermind I got it! Take a look at the repository.
@JesterOrNot So cool! Many thanks for the great work on this. 馃檹 Is there any good Swift sample project I can use to test the language support?
https://github.com/groue/GRDB.swift seems pretty cool!
Were you able to test the lang server?
I tried https://github.com/svenefftinge/Kitura-Sample but there is an issues with the vscode extension. https://github.com/eclipse-theia/theia/issues/6329
I sent a PR try it again
What now do we PR?
@JesterOrNot Your repo seems to work well! I tried cloning https://github.com/groue/GRDB.swift and https://github.com/svenefftinge/Kitura-Sample into it, and played with various Swift files.
I didn't know how to compile the Swift projects though (I've never worked with Swift before). Basic syntax highlighting seemed to work, as well as Go to Definition (at least within the same file), but I wasn't able to Rename Symbol. Also, a few external symbols didn't seem to be recognized by the language server (maybe some extra configuration is needed, or dependencies should be installed).
In any case, I think the next steps would be to make a PR adding this Gitpod set-up to a "real" Swift project, e.g. GRDB.swift or Kitura-Sample. That way it becomes easier to test Swift support in Gitpod, because you can directly open real Swift files and (hopefully) build & run the project. That would make a really cool demo, which we could feature in our language docs. 馃槃
Thanks again for adding so many new languages to Gitpod! 馃挴 I find it hard to keep up. 馃槄
In any case, I think the next steps would be to make a PR adding this Gitpod set-up to a "real" Swift project, e.g. GRDB.swift or Kitura-Sample.
Oh, sorry, I totally missed that you already did that: https://github.com/svenefftinge/Kitura-Sample/pull/1 Thanks a lot!
@svenefftinge please take a look at the pull request when you have time. 馃檪
https://github.com/JesterOrNot/Gitpod-Swift/pull/4
Take a look at the dockerfile @jankeromnes
Most helpful comment
https://github.com/JesterOrNot/Gitpod-Swift/pull/4
Take a look at the dockerfile @jankeromnes