Extension 'ms-vscode.remote-explorer' CAN

NOT use API proposal: localization. Its package.json#enabledApiProposals-property declares: contribViewsRemote, extensionsAny but NOT localization. The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-vscode.remote-explorer

 

가끔씩 서버를 이전해서 하다보면 이렇게 vscode에 있는 remote 를 사용할려면 생긱는 문제가 있다 .

Error의 의미는 pakage.json에 있는 contribViewesRemote등 API의 위치가 안맞다는 문제로 파악이 되어진다. 해결방안은 Proposal를 더해주고 Extension development mode로 실행시기거나 아니면 --enable-proposed-api ms-vscode.remote-explorer를 변경해주어라는데.. 어떻게 하는건지 보자. 

 

 

container를 담당하는 container에 들어가보자

우선적으로 해당하는 곳에서 설치가 제대로 따라서 헀는지 확인해본다.

 

To get started, follow these steps:

  • Install VS Code or VS Code Insiders and this extension.
  • Install and configure Docker for your operating system.
    • Windows / macOS:
      1. Install Docker Desktop for Mac/Windows.
      2. If not using WSL2 on Windows, right-click on the Docker task bar item, select Settings / Preferences and update Resources > File Sharing with any locations your source code is kept. See tips and tricks for troubleshooting.
      3. To enable the Windows WSL2 back-end: Right-click on the Docker taskbar item and select Settings. Check Use the WSL2 based engine and verify your distribution is enabled under Resources > WSL Integration.
      Linux:
    • Follow the official install instructions for Docker CE/EE. If you use Docker Compose, follow the Docker Compose install directions.
    • Add your user to the docker group by using a terminal to run: sudo usermod -aG docker $USER Sign out and back in again so this setting takes effect.

 

1,2의 경우는 당연히 되었을것이고 linux에서는 호옥시나 ... docker를 sudo 에 넣어주지 않아서 그렇지 않을까라는 생각을 해본다. 

그러기위해서는 처음 SSH의 접속을 했을떄 log파일을 보자. 

 

로그를 보면 딱 permission denied가 뜬다.. !!!

 

그렇담.. 일단 docker에 sudo그룹을 넣어주자. 

이건 친절하게 docker docs에 적혀있다.

밑의 그림처럼 sudo를 넣어주고 하면.

https://docs.docker.com/engine/install/linux-postinstall/

 

똭 나오게 되어진다.

이제 해당하는 container에서 작업하면된다.. 

 

이렇게 보니 결국 log와 docker를 잘 보면 결국 답은 그 안에 있다.. !!

반응형

+ Recent posts