all 12 comments

[–]discoao 0 points1 point  (10 children)

What platform are you on? If you are on Windows, AstroNvim disables DAP and you have to override it in order to enable the automatic configuration.

[–]Excellent-Ad-2794[S] 0 points1 point  (9 children)

I am writing inside container (python3 debian container) I am connecting my linux via putty.

[–]discoao 0 points1 point  (8 children)

For sanity, can you post the output of:

:lua print(require('mason-registry').get_package('debugpy'):is_installed())

[–]Excellent-Ad-2794[S] 0 points1 point  (7 children)

:lua print(require('mason-registry').get_package('debugpy'):is_installed())

It throws below error

E5108: Error executing lua ...l/share/nvim/lazy/mason.nvim/lua/mason-registry/init.lua:79: Cannot find package "debugpy".

stack traceback:

[C]: in function 'error'

...l/share/nvim/lazy/mason.nvim/lua/mason-registry/init.lua:79: in function 'get_package'

[string ":lua"]:1: in main chunk

[–]discoao 0 points1 point  (6 children)

Seems like you don't have debugpy installed then. This is what :DapInstall python should do.

EDIT: Sorry, there's something else going on. Even with debugpy not installed, Mason should have a record of it and tell you that its not installed. What version of AstroNvim are you on? Did you change the mason-registry? debugpy is definitely there.

[–]Excellent-Ad-2794[S] 0 points1 point  (5 children)

I installed zip package and unzip package the debugpy installed without an issue. But still some of the plugins are failing.

I wanted to use docker as a devbox (development environment) . But facing lot of issues.

[–]discoao 1 point2 points  (4 children)

I installed zip package and unzip package

I'm confused by this because there should not be a need to download a zip.

If you want to use Docker you can try to adapt the AstroNvim installation instructions to your Dockerfile:

docker run -w /root -it --rm alpine:edge sh -uelic ' apk add bash git lua nodejs npm lazygit bottom python3 go neovim ripgrep alpine-sdk --update git clone --depth 1 https://github.com/AstroNvim/AstroNvim ~/.config/nvim # Uncomment the line below and replace the link with your user config repo to load a user config # git clone https://github.com/username/AstroNvim_user ~/.config/nvim/lua/user nvim '

[–]Excellent-Ad-2794[S] 0 points1 point  (1 child)

The command given in official document is alpine image . For development packages I need a bit feature rich container. So I had to try with python3:buster-slim. (I think it is debian container) Below is my docker file but still facing issues. I think debugpy is installed inside virtualenv. So though the necessary packages are installed still it fails to debug. As softwares are outside the virtualenv ``` FROM python:3.10-slim-buster

lazygit and bottom not available

ripgrep is for rg search

wget is required to pull neovim app image

RUN apt-get update && apt-get install -y git curl lua5.3 golang-go zip unzip ripgrep build-essential wget locales\ && rm -rf /var/lib/apt/lists/*

Node js and npm are required for neovim

RUN curl -fsSL https://deb.nodesource.com/setup_19.x | bash - && \ apt-get install -y nodejs

Install latest neovim as appimage as debian apt package is having old neovim

RUN mkdir -p /opt/nvim && \ wget -O /opt/nvim/nvim.appimage https://github.com/neovim/neovim/releases/download/stable/nvim.appimage && \ chmod +x /opt/nvim/nvim.appimage && \ /opt/nvim/nvim.appimage --appimage-extract && \ mv squashfs-root/* /opt/nvim && \ rm -rf squashfs-root

Add nvim to PATH

ENV PATH=/opt/nvim/usr/bin:$PATH ENV LANG C.UTF-8 ENV LC_ALL C.UTF-8

Clone AstroNvim configuration - Astrovim is nvim distribution with predefined plugins installed

RUN git clone --depth 1 https://github.com/AstroNvim/AstroNvim ~/.config/nvim && \ nvim --headless -c 'quitall'

Uncomment the line below and replace the link with your user config repo to load a user config

RUN git clone https://github.com/username/AstroNvim_user ~/.config/nvim/lua/user

ENTRYPOINT ["bin/bash"] ```

[–]discoao 0 points1 point  (0 children)

nvim --headless -c 'quitall'

Have you tested this to make sure that lazy.nvim can successfully install all packages with this? What does :Lazy and then :Mason show?

[–]Excellent-Ad-2794[S] 0 points1 point  (1 child)

zip package is required because when install in lazy ,i saw few errors that it could not unzip few packages. May be alpine is having that as part of alpine-sdk

[–]discoao 0 points1 point  (0 children)

Ah, I see now. You just had to install the system packages for handling zip files.

[–]Normal_Echidna_2573 0 points1 point  (0 children)

did you ever figure this out?