-
Notifications
You must be signed in to change notification settings - Fork 209
feat (codespaces) - Added initial support for codespaces. #865
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Thanks for raising this! I'll take a look now. |
@@ -4,6 +4,11 @@ $ErrorActionPreference = 'Stop' | |||
$webappServerUrl = 'http://localhost:44100' | |||
|
|||
Write-Host "Opening new window for initial wait" -ForegroundColor White | |||
Start-Process powershell -ArgumentList "-File `"$PSScriptRoot/run/wait.ps1`"" | |||
|
|||
if ($IsWindows) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably don't have to check, we can just require it to be pwsh
on Windows as well, or get whatever is the current shell (should be some built-in constant somewhere, or worst case command line[0]).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pwsh
is only applicable for PowerShell-Core. The PowerShell that bundles with Windows does not executable pwsh
. If we make pwsh
here, then we need to make it mandatory for contributors install PowerShell-Core
, which I don't think is needed, as things can work with legacy PowerShell as well on windows.
FROM mcr.microsoft.com/vscode/devcontainers/dotnet:0-${VARIANT} | ||
|
||
# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10 | ||
ARG NODE_VERSION="none" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, we do have a node version requirement (for WebApp).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RC_SNIPPET_ALREADY_ADDED=${RC_SNIPPET_ALREADY_ADDED}\n\ | ||
ZSH_ALREADY_INSTALLED=${ZSH_ALREADY_INSTALLED}" > "${MARKER_FILE}" | ||
|
||
echo "Done!" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, can this script be a submodule or otherwise downloaded dynamically?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it will be there in the repository for codespaces. It's added by codespaces itself, so not sure!
One question I got one error for one the project can't remember the name actually, that the projects require .NET SDK 3.1 but found installed .NET SDK 5.0.100 (as this is what global.json says). Do we need both SDK to be installed as part of building SharpLab!? (right now we are installing both 3.1 and 5 SDK in the codespaces machine). |
…to codespaces-support
1. Added extensions for C# and Vue development. 2. Added some most used omnisharp settings for better experiance! 3. Changed dockerfile to 5.0.
I checked the log for web assets, seems like mirrrorsharp error.
|
Thanks for raising those. Azurite should be installed by the latest |
ahh, no worries. We can go slow based on priority. No problem at all! I will check azurite, and let you know about it! |
Running
bash sl.sh setup
in terminal successfully built the entire repository.WIP