You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 30, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 30, 2023. It is now read-only.
Java LTS is linked to 17.0.1 but actually installs 1.8 #1245
We use Oryx to dynamically install the correct languages/sdks/etc for the source code of your repo. I suspect there is a bug in how oryx is determining which version of java to install for your specific repo (will need to investigate a bit more)
joshspicer The odd thing is that a repository with no contents results in 17 being linked to JDK 8.... that's the bit that is shocking. I think it might be that the default symlink is wrong and that in cases where autodetection kicks in it works - not sure. Very odd.
Ah yes, although the update with this change is live in our default docker image (mcr.microsoft.com/vscode/devcontainers/universal:1), we haven't updated our cached version in codespaces yet (we do this caching to get people into codespaces fast).
If you run a Rebuild (Codespaces: Rebuild Container) from the vscode command palette after creating your codespace, it will pull the latest image (ignoring our cache), and you should have the latest changes we're discussing above.
That said, it looks like when oryx is analyzing your project, its deciding to install version 11.0.8 of java
(from the creation.log)
2022-01-24T16:40:24: Oryx Version: 0.2.20220120.1, Commit: 9b4b24ca97b5e87c9b8fcb65ef7adb88c6f709e6, ReleaseTagName: 20220120.1
2022-01-24T16:40:24:
2022-01-24T16:40:24: Build Operation ID: |BsTM32dNplc=.cbb8fe68_
2022-01-24T16:40:24: Repository Commit : 3ddbe548d95954f830cd824dbf71dbd3d5b4d0e5
2022-01-24T16:40:24:
2022-01-24T16:40:24: Detecting platforms...
2022-01-24T16:40:24: Detected following platforms:
2022-01-24T16:40:25: java: 11.0.8
2022-01-24T16:40:25: Version '11.0.8' of platform 'java' is not installed. Generating script to install it...
2022-01-24T16:40:25:
2022-01-24T16:40:25:
2022-01-24T16:40:25: Source directory : /workspaces/jmolecules-integrations
2022-01-24T16:40:25: Destination directory: /workspaces/jmolecules-integrations
2022-01-24T16:40:25:
2022-01-24T16:40:25:
2022-01-24T16:40:25: Downloading and extracting 'java' version '11.0.8' to '/opt/java/11.0.8'...
doing a rebuild on a non-java project (forcing an invalidation of our cached mcr.microsoft.com/vscode/devcontainers/universal), leaves us with the default version of java that we expected
Dave Syer (@dsyer) - please feel free to reopen if what i'm showing here doesn't match what you expect :)
We should be updating our cache of the docker image in the next day or so, and starting then new codespace creations will look the same as a create->rebuild (like I mentioned above).
Activity
Chuxel commentedon Jan 10, 2022
Dave Syer (@dsyer) Is this in the default codespaces image or something else?
joshspicer Can you connect with William on this? I assume its dynamic injection related.
dsyer commentedon Jan 10, 2022
I assume. All I do is open a codespace from Github in the browser. Does it remember anything about previous sessions with this repo?
Chuxel commentedon Jan 10, 2022
//cc Allison Weins (@2percentsilk) as well.
joshspicer commentedon Jan 11, 2022
It appears the repo you linked doesn't supply its own devcontainer.json with a custom image, so in that case it will use the default image.
You can also validate this by running the command
devcontainer-infoin your terminal. The "Definition ID" for the default image iscodespaces-linux.dsyer commentedon Jan 11, 2022
Why would it be any different for you?
joshspicer commentedon Jan 11, 2022
We use Oryx to dynamically install the correct languages/sdks/etc for the source code of your repo. I suspect there is a bug in how oryx is determining which version of java to install for your specific repo (will need to investigate a bit more)
Chuxel commentedon Jan 11, 2022
joshspicer The odd thing is that a repository with no contents results in 17 being linked to JDK 8.... that's the bit that is shocking. I think it might be that the default symlink is wrong and that in cases where autodetection kicks in it works - not sure. Very odd.
joshspicer commentedon Jan 21, 2022
dsyer commentedon Jan 24, 2022
How can I test this? It is still broken if I open a new codespace on that project above?
joshspicer commentedon Jan 24, 2022
Ah yes, although the update with this change is live in our default docker image (
mcr.microsoft.com/vscode/devcontainers/universal:1), we haven't updated our cached version in codespaces yet (we do this caching to get people into codespaces fast).If you run a Rebuild (
Codespaces: Rebuild Container) from the vscode command palette after creating your codespace, it will pull the latest image (ignoring our cache), and you should have the latest changes we're discussing above.That said, it looks like when oryx is analyzing your project, its deciding to install version 11.0.8 of java
(from the creation.log)
joshspicer commentedon Jan 24, 2022
doing a rebuild on a non-java project (forcing an invalidation of our cached
mcr.microsoft.com/vscode/devcontainers/universal), leaves us with the default version ofjavathat we expectedjoshspicer commentedon Jan 24, 2022
Dave Syer (@dsyer) - please feel free to reopen if what i'm showing here doesn't match what you expect :)
We should be updating our cache of the docker image in the next day or so, and starting then new codespace creations will look the same as a create->rebuild (like I mentioned above).
dsyer commentedon Jan 24, 2022
Works for me now, thanks.
joshspicer commentedon Jan 24, 2022
thank you for letting us know :)