Arch linux visual studio code

Содержание
  1. Arch Linux User Repository
  2. Search Criteria
  3. Package Details: visual-studio-code-insiders-bin 1616574691-1
  4. Package Actions
  5. Dependencies (12)
  6. Required by (0)
  7. Sources (6)
  8. Pinned Comments
  9. dcelasun commented on 2021-05-29 23:02
  10. Latest Comments
  11. Henry-ZHR commented on 2021-09-22 05:36
  12. dcelasun commented on 2021-05-29 23:11
  13. Beomond commented on 2021-05-29 23:10
  14. dcelasun commented on 2021-05-29 23:02
  15. dcelasun commented on 2021-05-01 06:58
  16. noobarchboi commented on 2021-05-01 05:18
  17. dcelasun commented on 2021-04-20 11:53
  18. fishnet37222 commented on 2021-04-20 11:51
  19. Arch Linux User Repository
  20. Search Criteria
  21. Package Details: visual-studio-code-bin 1.61.0-1
  22. Package Actions
  23. Dependencies (15)
  24. Required by (14)
  25. Sources (7)
  26. Pinned Comments
  27. dcelasun commented on 2017-11-15 06:20
  28. Visual Studio Code (Русский)
  29. Contents
  30. Установка
  31. Использование
  32. Конфигурация
  33. Встроенный терминал
  34. Внешний терминал
  35. Решение проблем
  36. Глобальное меню не работает в KDE Plasma
  37. Невозможно переместить объект в корзину
  38. Невозможно отладить C#
  39. Невозможно открыть .csproj с сервером OmniSharp, ошибка расположения Microsoft.Common.props
  40. OmniSharp не может обнаружить MSBuild
  41. «Повторить попытку в режиме Sudo» не работает
  42. remote-containers.openFolder не найдена
  43. VS Live Share missing API
  44. Visual Studio Code
  45. Contents
  46. Installation
  47. Usage
  48. Configuration
  49. Integrated Terminal
  50. External terminal
  51. Running natively under Wayland
  52. Troubleshooting
  53. Global menu not working in KDE/Plasma
  54. Unable to move items to trash
  55. Unable to debug C#
  56. Unable to open .csproj with OmniSharp server, invalid Microsoft.Common.props location
  57. Error from OmniSharp that MSBuild cannot be located
  58. Saving with «Retry as Sudo» does not work
  59. Keyboard variants or keymappings do not map
  60. Command «. » not found
  61. VS Live Share missing API
  62. Command ‘remote-containers.openFolder’ not found
  63. Command ‘GitHub Pull Requests: Configure Remotes. ‘ resulted in an error (command ‘pr.configureRemotes’ not found)
  64. Git: ssh_askpass: exec(/usr/lib/ssh/ssh-askpass): No such file or directory
  65. No extensions found
  66. Cutoff characters in integrated Terminal
  67. Blurry text under Wayland
  68. No such interface“org.freedesktop.Secret.Collection”
  69. Authentification with Github failed while using VSCodium

Arch Linux User Repository

Search Criteria

Package Details: visual-studio-code-insiders-bin 1616574691-1

Package Actions

Git Clone URL: https://aur.archlinux.org/visual-studio-code-insiders-bin.git (read-only, click to copy)
Package Base: visual-studio-code-insiders-bin
Description: Editor for building and debugging modern web and cloud applications (insiders version)
Upstream URL: https://code.visualstudio.com/
Licenses: custom: commercial
Submitter: dcelasun
Maintainer: dcelasun
Last Packager: dcelasun
Votes: 12
Popularity: 0.66
First Submitted: 2020-11-17 19:53
Last Updated: 2021-03-24 10:27

Dependencies (12)

  • gcc-libs (fastgcc, gcc-libs-multilib-git, gcc-libs-git)
  • glibc (glibc-git, glibc-force-mmap, lib32-glibc-force-mmap, glibc-minimal-git, glibc-linux4, glibc-dso)
  • gnupg (gnupg-clavator, gnupg-large-rsa, gnupg-large-secmem, gnupg-minimal-git, gnupg-largekeys, gnupg-git)
  • gtk3 (gtk3-adwaita-3-32-git, gtk3-git, gtk3-ubuntu, gtk3-no_deadkeys_underline, gtk3-classic, gtk3-patched-filechooser-icon-view, gtk3-typeahead)
  • libnotify (libnotify-gtk2, libnotify-id-git, libnotify-id)
  • libsecret
  • libxkbfile
  • libxss
  • lsof (lsof-git)
  • nss (nss-hg)
  • glib2 (glib2-clear, glib2-quiet, glib2-selinux, glib2-nodocs-git, glib2-git, glib2-patched-thumbnailer) (optional) – Needed for move to trash functionality
  • libdbusmenu-glib (libdbusmenu-glib-ubuntu) (optional) – Needed for KDE global menu

Required by (0)

Sources (6)

Pinned Comments

dcelasun commented on 2021-05-29 23:02

This package always installs the latest insiders build so don’t flag it as out-of-date, just rebuild and you’ll get the latest version.

Latest Comments

Henry-ZHR commented on 2021-09-22 05:36

It seems that you don’t move the bash and zsh completions into the right place

I think this should be helpful

dcelasun commented on 2021-05-29 23:11

No worries, I’ve stickied a comment for future reference 🙂

Beomond commented on 2021-05-29 23:10

Sorry, my bad flagging.

dcelasun commented on 2021-05-29 23:02

This package always installs the latest insiders build so don’t flag it as out-of-date, just rebuild and you’ll get the latest version.

dcelasun commented on 2021-05-01 06:58

You are not using the latest PKGBUILD, the package doesn’t use that domain anymore.

noobarchboi commented on 2021-05-01 05:18

I tried updating via makepkg but received this error

I thought @dcelasun already fixed it? Do I have to manually configure something?

dcelasun commented on 2021-04-20 11:53

Yeah, I just removed the flag.

fishnet37222 commented on 2021-04-20 11:51

Somebody flagged this package as out of date without realizing it automatically pulls in the latest version. Is there a way to remove that flag?

Источник

Arch Linux User Repository

Search Criteria

Package Details: visual-studio-code-bin 1.61.0-1

Package Actions

Git Clone URL: https://aur.archlinux.org/visual-studio-code-bin.git (read-only, click to copy)
Package Base: visual-studio-code-bin
Description: Visual Studio Code (vscode): Editor for building and debugging modern web and cloud applications (official binary version)
Upstream URL: https://code.visualstudio.com/
Licenses: custom: commercial
Conflicts: code
Provides: code
Submitter: dcelasun
Maintainer: dcelasun
Last Packager: dcelasun
Votes: 1098
Popularity: 21.65
First Submitted: 2017-12-18 19:14
Last Updated: 2021-10-07 22:31

Dependencies (15)

  • gcc-libs (fastgcc, gcc-libs-multilib-git, gcc-libs-git)
  • glibc (glibc-git, glibc-force-mmap, lib32-glibc-force-mmap, glibc-minimal-git, glibc-linux4, glibc-dso)
  • gnupg (gnupg-clavator, gnupg-large-rsa, gnupg-large-secmem, gnupg-minimal-git, gnupg-largekeys, gnupg-git)
  • gtk3 (gtk3-adwaita-3-32-git, gtk3-git, gtk3-ubuntu, gtk3-no_deadkeys_underline, gtk3-classic, gtk3-patched-filechooser-icon-view, gtk3-typeahead)
  • libnotify (libnotify-gtk2, libnotify-id-git, libnotify-id)
  • libsecret
  • libxkbfile
  • libxss
  • lsof (lsof-git)
  • nss (nss-hg)
  • shared-mime-info (shared-mime-info-git)
  • xdg-utils (mimi-git, sx-open, busking-git, xdg-utils-git, linopen, xdg-utils-mimeo, xdg-utils-handlr, xdg-utils-slock, mimi-bachoseven-git, mimejs-git)
  • glib2 (glib2-clear, glib2-quiet, glib2-selinux, glib2-nodocs-git, glib2-git, glib2-patched-thumbnailer) (optional) – Needed for move to trash functionality
  • libdbusmenu-glib (libdbusmenu-glib-ubuntu) (optional) – Needed for KDE global menu
  • org.freedesktop.secrets (keepassxc-kde-fix, gnome-keyring-git, pass-secrets-git, keepassxc-git, bitw-git, kwallet-secrets, gnome-keyring, keepassxc) (optional) – Needed for settings sync

Required by (14)

  • azure-sphere-sdk (requires code) (optional)
  • code-features (requires code)
  • code-features-insiders (requires code)
  • code-icons (requires code)
  • code-marketplace (requires code)
  • code-nautilus-git (requires code) (optional)
  • eda-meta (requires code)
  • neopo-git(optional)
  • nwscript-code (requires code)
  • rust-analyzer-vscode-git (requires code)
  • stm32pio (requires code) (optional)
  • unity-editor(optional)
  • unity-editor-beta(optional)
  • unity-editor-lts(optional)

Sources (7)

Pinned Comments

dcelasun commented on 2017-11-15 06:20

FREQUENTLY ASKED QUESTIONS (read before flagging or commenting!)

  • What is the difference between this package and the one in the community repo?

This is the official binary distribution from Microsoft. The one in the community repo is an unofficial build made from source. Beyond the license difference and branding, there are some proprietary features not available in the open source version.

  • There is a new version out, why is the package not updated?

Please check this page before flagging as out-of-date. If there is no new version on that page, it’s not yet released. A tag on Github is NOT a release! If you can see the new version on the updates page but the AUR package is still not updated, flag it and give it time. It’s usually done within a day or two.

  • I’m using an AUR helper (yay, yaourt etc.) and I can’t install it. Why?

Sometimes AUR helpers do weird things. Download the tarball and install it manually with makepkg -si . If that works, report the problem to your AUR helper’s upstream, not here.

  • When I install this package xdg-open uses vscode, not my file manager! How do I fix this?
  • Why is $X a dependency? I don’t like it.

Just because $X is not required to open the app, doesn’t mean there is nothing that depends on it. Always search the comment history on AUR to see if that dependency has been previously discussed before writing your own comment. Still nothing? Then use namcap to make sure it’s really not needed. If namcap doesn’t complain, please leave a comment here and I’ll investigate.

  • Something is broken with the app, where do I report it?

The problem might be a packaging issue (wrong paths, dependencies, icons), so please write a comment here first. If you don’t get a reply, or if someone says it’s an upstream issue, you can report it on Github.

  • I have a problem with this package, can I email you?

No, you won’t get a reply. Please stop doing this. Leave a comment here instead and be patient.

Читайте также:  Windows 10 проводник изображения

Источник

Visual Studio Code (Русский)

Перевод этой статьи или раздела не отражает оригинальное содержание.

Visual Studio Code — кроссплатформенный, бесплатный и свободный (используется лицензия MIT) текстовый редактор, разрабатываемый Microsoft. Он использует фреймворк Electron и поддерживает расширения, список которых можно найти на странице магазина расширений или в самом редакторе. Несмотря на то, что проект является открытым, Microsoft также распространяет проприетарные сборки с пользовательским соглашением (EULA), см. объяснение в репозитории GitHub.

Contents

Установка

Редактор VSCode доступен для установки с помощью следующих пакетов:

  • code — свободная сборка
  • visual-studio-code-binAUR — проприетарная сборка Microsoft
  • visual-studio-code-insiders-binAUR — проприетарная сборка Microsoft с ежедневными обновлениями
  • code-gitAUR — свободная сборка (нестабильная версия для разработчиков)
  • vscodium-binAUR — свободная сборка со стандартной конфигурацией, поддерживаемой сообществом

Утилита ptvsd (Python Tools for Visual Studio Debug) предоставляется пакетом python-ptvsd AUR .

Использование

Запустите командой code ( code-git для пакета code-git AUR ).

Если требуется запустить несколько экземпляров приложения, добавьте ключ -n без параметров.

Конфигурация

Пакет code хранит конфигурацию в файле

Пакет visual-studio-code-bin AUR хранит конфигурацию в файле

Встроенный терминал

Меню Вид > Терминал или Ctrl + ` открывает встроенный терминал. По умолчанию используется Bash без каких-либо параметров, но настройки, указанные далее позволяют изменить данное взаимодействие.

  • terminal.integrated.shell.linux устанавливает терминал по умолчанию
  • terminal.integrated.shellArgs.linux устанавливает передаваемые в терминал аргументы

Например, установить по умолчанию fish с параметрами.

Вы можете столкнуться со странными запросами при установке встроенного терминала, удалением некоторых строк, поэтому рекомендуется либо не использовать аргументы, либо использовать внешний терминал.

Внешний терминал

Если вы используете Terminator как терминал по умолчанию, у вас могут возникнуть проблемы в VS Code с ошибками вида: Unable to launch debugger worker process (vsdbg) through the terminal. spawn truecolor ENOENT , поэтому следует сменить терминал на другой, например, gnome-terminal .

Строка настроек «terminal.external.linuxExec»: «имя терминала» установит терминал на требуемый. Пример установки gnome-terminal :

Решение проблем

Глобальное меню не работает в KDE Plasma

Visual Studio Code использует D-Bus для меню, поэтому для него следует установить пакет libdbusmenu-glib .

Невозможно переместить объект в корзину

По умолчанию все приложения, использующие Electron, используют gio (из пакета glib2 ) для удаления. Конфигурирование утилиты происходит через установку переменной окружения ELECTRON_TRASH .

Однако, в новых версиях Electron поддерживает и kioclient5 , и kioclient , и trash-cli , и gio (по умолчанию), и gvfs-trash (отмечен устаревшим). Смотрите также страницу environment-variables в GitHub репозитории Electron.

Невозможно отладить C#

Для отладки приложений на C# (платформа .NET) испольуется расширение OmniSharp, которое требует проприетарный компонент .NET Core Debugger (смотри пакеты в разделе установка). Смотри также объяснение в репозитории GitHub.

Если вы используете свободный пакет, отладка упадёт почти незаметно, лишь оставив в консоли сообщение:

Для отладки в свободном пакете можно использовать пакет netcoredbg AUR . Чтобы использовать его для отладки проектов, требуется в настройке проекта указать соответствующую конфигурацию, например:

Невозможно открыть .csproj с сервером OmniSharp, ошибка расположения Microsoft.Common.props

Требуется сменить путь к SDK. Вот, как выглядит файл до изменений.

Вот, как выглядит файл после изменения.

OmniSharp не может обнаружить MSBuild

На странице OmniSharp introduction в GitHub написано, что пользователям Arch Linux требуется установить mono-msbuild . Ошибка, которая появляется при отсутствии пакета:

Читайте также:  Postgresql для windows системные требования

Возможно, потребуется собрать пакет самостоятельно.

«Повторить попытку в режиме Sudo» не работает

К сожалению, пакет code не поддерживает эту функцию в полной мере, так как официально Microsoft не поддерживает пакет для Arch Linux. Смотри также FS#61516 или тикет на GitHub.

remote-containers.openFolder не найдена

Для решения проблемы требуется открыть VS Code со включённым API remote-containers (см. баг FS#63374)

VS Live Share missing API

Пакет code не имеет некоторых API, которые нужны для работы расширения Live Share. Вот ошибка, которая появляется при такой проблеме:

Следуя инструкции на Microsoft Docs, есть разные решения:

Источник

Visual Studio Code

Visual Studio Code is a cross-platform proprietary text editor (licensed under an End-User License Agreement) developed by Microsoft, built on top of a free and open-source project named Codium (licensed under the MIT License), written in JavaScript and TypeScript – the relationship between Codium and Visual Studio Code is more or less the same as the one between Chromium and Google Chrome; for an explanation of the mixed licensing, see this GitHub comment. Visual Studio Code is built on the Electron framework and is extensible using extensions, which can be browsed on the web or from within the text editor itself.

Contents

Installation

The following packages provide VSCode:

  • code (open-source release)
  • code-gitAUR (in-development open-source version)
  • visual-studio-code-binAUR (Microsoft-branded release)
  • visual-studio-code-insiders-binAUR (Microsoft-branded release, updated daily)
  • vscodium-binAUR (community-driven fully open-source version of VSCode, with all Microsoft telemetry stripped out — latest release, binary package)
  • vscodiumAUR (community-driven fully open-source version of VSCode, with all Microsoft telemetry stripped out — latest release, git build)
  • vscodium-gitAUR (community-driven fully open-source version of VSCode, with all Microsoft telemetry stripped out — latest commit on branch master, git build)

The Microsoft ptvsd (Python Tools for Visual Studio Debug) server/module is available at python-ptvsd AUR .

Usage

Run code to start the application (or if you are using other releases, run code-git for code-git AUR or codium for vscodium-bin AUR / vscodium AUR / vscodium-git AUR ).

If for any reason you wish to launch multiple instances of Visual Studio Code, the -n flag can be used.

Configuration

code stores settings in

vscodium AUR and related packages store their settings in

When migrating from Code to Codium (or vice versa), the settings directory can be copied or moved, since they share most of their codebase, the settings are compatible.

Integrated Terminal

View > Integrated Terminal or Ctrl + ` opens up an integrated terminal. By default, Bash is used with no additional arguments, although this can be changed. terminal.integrated.shell.linux sets the default shell to be used and terminal.integrated.shellArgs.linux sets the arguments to be passed to the shell.

You might face weird prompts after setting the integrated shell arguments with external terminal, remove the line to solve the problem or use an external terminal.

External terminal

If you are using Terminator as default terminal for Arch and you have an error on Visual Studio Code: Unable to launch debugger worker process (vsdbg) through the terminal. spawn truecolor ENOENT , you can change the terminal that will be used by Visual Studio to another terminal (e.g. gnome-terminal ).

«terminal.external.linuxExec»: «Your alternative terminal» sets the default terminal to be used for exec debug.

Running natively under Wayland

If you are using a Wayland-based WM or DE, you can force Visual Studio Code to run natively under Wayland (instead of under XWayland) by adding command-line options —enable-features=UseOzonePlatform —ozone-platform=wayland . For example, you can try launching VSCode using

These options can be automatically applied every time Visual Studio Code is launched by adding them to the file $/electron-flags.conf . (See Wayland#Electron.)

Troubleshooting

Visual Studio Code uses DBus to pass the menu to Plasma, try installing libdbusmenu-glib .

Unable to move items to trash

By default, Electron apps use gio to delete files. kioclient5 is automatically selected instead if Plasma is detected. Different trash implementations can be used by setting the ELECTRON_TRASH environment variable.

For example, for deleting files using trash-cli :

At the time of writing, Electron supports kioclient5 , kioclient , trash-cli , gio (default) and gvfs-trash (deprecated). More info is available at this documentation page.

Unable to debug C#

If you want to debug C#.NET (using the OmniSharp extension) then you need to install the Microsoft branded release (from the AUR). This is apparently because the .NET Core debugger is only licensed to be used with official Microsoft products — see this github discussion.

When using the open-source package, debugging fails fairly quietly. The debug console will just show the initial message:

For debugging with the open-source package netcoredbg AUR can be used. To run it in VS Code, add this configuration to .NET Core launch configuration of the project:

Unable to open .csproj with OmniSharp server, invalid Microsoft.Common.props location

You have to switch from mono to proper SDK version props.

Modify import to look like this:

Читайте также:  Амми админ для линукса

Error from OmniSharp that MSBuild cannot be located

It is noted in the OmniSharp introduction that Arch Linux users should install the mono-msbuild package. Without it, you might get an error like:

You might be able to build anyway (possibly depending whether you have mono installed too).

Omnisharp ships with its own mono version, so, if it is unable to locate the installed one, if you want to tell omnisharp to look for a «global» mono installed in your machine, put this in your settings.json:

Saving with «Retry as Sudo» does not work

This feature does not work in the code package, because Microsoft does not support the way the Arch package is packaged (native instead of bundled Electron). See FS#61516 and the upstream bug report for more information.

The binary release visual-studio-code-bin AUR does not have this issue, and the feature works there.

Keyboard variants or keymappings do not map

Switching keyboard layouts under some Linux window managers does not result in a change in the low level X window APIs VS Code uses to read the current keyboard layout. This means that VS Code ends up sometimes reading one of the other configured keyboard layouts and not the current active one. PR welcome.

Per the wiki, there are two possible solutions:

  1. make sure setxkbmap -query returns as the first keyboard layout the one you want to work with in VS Code.
  2. use «keyboard.dispatch»: «keyCode» in your settings and restart VS Code. This will prevent VS Code from trying to determine your keyboard layout whatsoever.

Command «. » not found

In the official build of VS Code, a product.json file lists the extensions that are allowed to use certain proposed APIs accessed by extensions. However, the product.json is absent in the OSS build code . [1]

In the related issues below, some flags may be required to enable certain APIs. [2] You may either run code with these flags, or you can add the relevant entries to the extensionAllowedProposedApi section in the product.json file ( code installs this to /usr/lib/code/product.json ).

This can also be resolved by installing the code-features AUR package, which installs a pacman hook that patches the file on every package update. Alternatively, you may also consider installing the Microsoft branded packages: visual-studio-code-bin AUR , visual-studio-code-insiders-bin AUR .

VS Live Share missing API

Use either the solution above by editing the product.json , or open VS Code with:

Command ‘remote-containers.openFolder’ not found

Open VS Code enabling remote-containers API as commented in FS#63374:

Command ‘GitHub Pull Requests: Configure Remotes. ‘ resulted in an error (command ‘pr.configureRemotes’ not found)

Open VS Code with:

Git: ssh_askpass: exec(/usr/lib/ssh/ssh-askpass): No such file or directory

This error is a result of an encrypted ssh-key, and can be solved by installing a dialogue provider like SSH keys#x11-ssh-askpass or the alternatives listed there like ksshaskpass for KDE.

One thing to note is that for e.g. ksshaskpass you would need to link it from /usr/lib/ssh/ssh-askpass to get VSCode to find it:

No extensions found

There exist several differences between «vscode» (open-source) and «Visual Studio Code» (Microsoft product based on vscode), see: Differences between the repository and Visual Studio Code. The usage of Microsoft marketplace for extensions is restricted to products of the Visual Studio Code’s family. Consequently, it cannot be used by vscode (see FS#67780). The code and vscodium-bin AUR / vscodium AUR / vscodium-git AUR packages are configured to use the Open VSX registry instead of the Microsoft one. This explains why some extensions are missing from the vscode explorer while they appear to be listed online.

The workaround is to either install the visual-studio-code-bin AUR package instead, manually download and install the .vsix file from the web marketplace page, or ask the maintainer to upload its extension to OpenVSX.

Technically, one could also edit the product.json as shown in this Github comment, but that would not comply with the Microsoft Marketplace Terms of Use. Additionally, the changes would be overwritten during package update. This can be overcome by installing code-marketplace AUR / vscodium-bin-marketplace AUR / vscodium-marketplace AUR package, which installs a pacman hook that patches the file on every package update.

Cutoff characters in integrated Terminal

Characters that are too wide can end up clipping. For example the italic bold text of Deno stack-traces.

This can be avoided by setting «terminal.integrated.rendererType» to «experimentalWebgl».

Blurry text under Wayland

Visual Studio Code defaults to run under XWayland, which may cause blurry text if you are using HiDPI screens. To fix this issue, try forcing Electron to run under Wayland—see #Running natively under Wayland.

No such interface“org.freedesktop.Secret.Collection”

Authentification with Github failed while using VSCodium

When connecting a Github account, change «vscodium» to «vscode» in the URL as seen in this comment. Then copy the identification token into VSCodium. Should it still fail, install a keyring like gnome-keyring or create a new keyring as mentioned here in the Visual Studio Code docs and here on Github.

Источник

Оцените статью