PKGBUILD reports pkgdesc='Unblock some features in VSCodium'
Ok, nice, but what are these features exactly?
- Is there a list of them?
- Can you update the PKGBUILD to include the main ones if they are too many?
Git Clone URL: | https://aur.archlinux.org/vscodium-bin-features.git (read-only, click to copy) |
---|---|
Package Base: | vscodium-bin-features |
Description: | Unblock some features in VSCodium |
Upstream URL: | https://github.com/microsoft/vscode |
Licenses: | unknown |
Conflicts: | vscodium-bin-features |
Provides: | vscodium-bin-features |
Submitter: | sperg512 |
Maintainer: | None |
Last Packager: | silverhikari |
Votes: | 18 |
Popularity: | 0.94 |
First Submitted: | 2021-05-10 18:00 (UTC) |
Last Updated: | 2023-10-08 13:10 (UTC) |
PKGBUILD reports pkgdesc='Unblock some features in VSCodium'
Ok, nice, but what are these features exactly?
@silverhikari : yes, it worked (as expected). But, why change "serverApplicationName" to code-server in the first place? What is the reason behind that since the original remote-ssh extension by microsoft seems to be not working at all on vscodium, even patched ? Well, at least, it is something written on the vscodium github wiki, not sure if with some more hack, that i am not aware of, you can use the ms' remote-ssh.
ms' remote-ssh extension downloads an archive on the remote machine whose url is based on a commit hash that it gets from local code's product.json. obviously it fails when the extension is on host's vscodium with untouched product.json:"commit".
Something like https://update.code.visualstudio.com/commit:%{COMMIT_HASH}/server-linux-x64/stable
to get vscode-server-linux-x64.tar.gz
I've tried to put on my vscodium's product.json:
"nameShort": "Code",
"nameLong": "Visual Studio Code",
"commit": "eaa41d57266683296de7d118f574d0c2652e1fc4",
with that commit taken from vanilla code installation but no luck in using vscodium + ms's remote-ssh.
it give me [<unknown>][c721d762] Unauthorized client refused.
Back to the question: what is the purpose of changing "serverApplicationName" to "code-server" if ms' remote-ssh doesnt want to run here at all?
Gonna try code-features' patch.json when i will get some spare time.
@fooryo can you go to /opt/vscodium-bin/resources/app/product.json and edit this line ""serverApplicationName": "code-server"" to codium-server to see if that fixes your issue?
Got bunch of warnings, anything important? :
2024-08-12 21:52:52.160 [warning] Via 'product.json#extensionEnabledApiProposals' extension 'ms-vscode.vscode-selfhost-test-provider' wants API proposal 'testMessageContextValue' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
2024-08-12 21:52:52.185 [warning] Via 'product.json#extensionEnabledApiProposals' extension 'ms-python.python' wants API proposal 'envShellEvent' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
2024-08-12 21:52:52.185 [warning] Via 'product.json#extensionEnabledApiProposals' extension 'ms-python.python' wants API proposal 'saveEditor' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
2024-08-12 21:52:52.186 [warning] Via 'product.json#extensionEnabledApiProposals' extension 'ms-dotnettools.dotnet-interactive-vscode' wants API proposal 'languageConfigurationAutoClosingPairs' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
2024-08-12 21:52:52.187 [warning] Via 'product.json#extensionEnabledApiProposals' extension 'github.vscode-pull-request-github' wants API proposal 'readonlyMessage' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
2024-08-12 21:52:52.187 [warning] Via 'product.json#extensionEnabledApiProposals' extension 'github.copilot-chat' wants API proposal 'handleIssueUri' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
2024-08-12 21:52:52.188 [warning] Via 'product.json#extensionEnabledApiProposals' extension 'github.copilot-chat' wants API proposal 'interactiveUserActions' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
2024-08-12 21:52:52.188 [warning] Via 'product.json#extensionEnabledApiProposals' extension 'github.copilot-chat' wants API proposal 'terminalContextMenu' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
2024-08-12 21:52:52.189 [warning] Via 'product.json#extensionEnabledApiProposals' extension 'github.copilot-chat' wants API proposal 'chatSlashCommands' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
2024-08-12 21:52:52.190 [warning] Via 'product.json#extensionEnabledApiProposals' extension 'github.copilot-chat' wants API proposal 'readonlyMessage' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
EDIT: and errors after installing python extensions:
2024-08-12 22:07:17.500 [error] Extension 'ms-python.debugpy CANNOT USE these API proposals 'portsAttributes, contribIssueReporter, debugVisualization'. You MUST start in extension development mode or use the --enable-proposed-api command line flag
2024-08-12 22:07:17.500 [error] Extension 'ms-python.python' appears in product.json but enables LESS API proposals than the extension wants.
package.json (LOSES): contribEditorContentMenu, quickPickSortByLabel, testObserver, quickPickItemTooltip, terminalDataWriteEvent, terminalExecuteCommandEvent, contribIssueReporter, terminalShellIntegration
product.json (WINS): contribEditorContentMenu, quickPickSortByLabel, portsAttributes, testObserver, quickPickItemTooltip, terminalDataWriteEvent
2024-08-12 22:07:17.564 [error] [ms-python.debugpy]: issue/reporter is a proposed menu identifier. It requires 'package.json#enabledApiProposals: ["contribIssueReporter"]' and is only available when running out of dev or with the following command line switch: --enable-proposed-api ms-python.debugpy
2024-08-12 22:07:17.565 [error] [ms-python.python]: issue/reporter is a proposed menu identifier. It requires 'package.json#enabledApiProposals: ["contribIssueReporter"]' and is only available when running out of dev or with the following command line switch: --enable-proposed-api ms-python.python
Is there a way to install this "add-on" on the flatpak version of VSCodium?
It seems that this packages breaks a bit the ssh functionality provided by vscodium and its open remote ssh extension github.com/jeanp413/open-remote-ssh
There is a bash script in open-remote-ssh that will be executed on the remote machine everytime someone wants to connect to it. Such script ( you can look at it here https://github.com/jeanp413/open-remote-ssh/blob/30ee42c18b2abd6ef68867f7078b4eb79c4b9790/src/serverSetup.ts#L204 ) downloads an archive (example https://github.com/VSCodium/vscodium/releases/download/1.91.1.24193/vscodium-reh-linux-x64-1.91.1.24193.tar.gz) that contains the server executable and this executable is called codium-server.
This vscodium-bin-features package, tho, patches a field in product.json that is "serverApplicationName":"code-server".
The before-mentioned script will look at product.json to get the filename of the server to run on the remote machine via serverApplicationName, but it will get code-server, not codium-server.
But there is no executable called code-server, it is called codium-server.
A simple workaround is to create a code-server
link that points to codium-server
on the remote machine, that means that at every update you need to remember that and recreate the link.
$HOME/.vscode-server/bin/<somehash>/bin/code-server -> $HOME/.vscode-server/bin/<somehash>/bin/codium-server
OR write "code-server" in remote.SSH.experimental.serverBinaryName field of i-dont-know-which file (defaultSettings.json? seems to be non existant and to be hardcoded somewhere) as shown in https://github.com/jeanp413/open-remote-ssh/blob/30ee42c18b2abd6ef68867f7078b4eb79c4b9790/src/serverConfig.ts#L28 const customServerBinaryName = vscode.workspace.getConfiguration('remote.SSH.experimental').get<string>('serverBinaryName', '');
Is it possible to patch such field in the same manner of this aur package?
@silverhikari After testing with product.json
, changing "nameShort": "Code"
to "nameShort": "VSCodium"
and "dataFolderName": ".vscode"
to "dataFolderName": ".vscode-oss"
fixes the issue.
It seems that nameShort
represents the name of the config directory inside ~/.config
and dataFolderName
the extensions directory inside ~
.
@Justbispo i did not know that would change as this patch.json is copied from code-features though the reason for this described in the comment sounds reasonable so i do not know if i should modify it
Is VSCodium supposed to now use the .vscode folder instead of .vscode-oss? I know that code-features warns about that change but I'm not sure if this package is supposed to use this change too.
It also seems that since updating this package, VSCodium also uses ~/.config/Code
instead of ~/.config/VSCodium
.
@BachoSeven thank you for the diff!
Pinned Comments
silverhikari commented on 2023-01-28 15:24 (UTC) (edited on 2023-01-28 18:50 (UTC) by silverhikari)
if you are having problems with the installation step with it giving a decoder error, you need to uninstall and reinstall vscodium-bin and vscodium-bin-marketplace. then try to install this package again.