Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't re-enter normal mode from terminal mode #205

Closed
GiorgosXou opened this issue Jan 11, 2023 · 1 comment
Closed

Can't re-enter normal mode from terminal mode #205

GiorgosXou opened this issue Jan 11, 2023 · 1 comment

Comments

@GiorgosXou
Copy link

Issue

Whenever I start typing in the integrated terminal I get this error which is mentioned bellow

Error

Error executing lua callback: ...ck/packer/opt/nvim-dap-ui/lua/dapui/elements/console.lua:30: Vim(normal):Can't re-enter normal mode from terminal mode
stack traceback:
        [C]: in function 'cmd'
        ...ck/packer/opt/nvim-dap-ui/lua/dapui/elements/console.lua:30: in function <...ck/packer/opt/nvim-dap-ui/lua/dapui/elements/console.lua:28>
Press ENTER or type command to continue

dap_ui_issue_Peek 2023-01-11 06-38

Versions

DAP-UI version: b0612c9

NVIM v0.8.2
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by builduser

Config

["rcarriga/nvim-dap-ui"] = {
  config = function()
    require "configs.dapui" -- run default astronvim dap config
    local dap = require "dap"
    -- dap.defaults.fallback.force_external_terminal = true
    dap.defaults.fallback.external_terminal = {
      command = "/usr/bin/alacritty",
      args    = { "-e" },
    }
    dap.configurations.python = {
      {
        -- The first three options are required by nvim-dap
        type    = "python", -- the type here established the link to the adapter definition : `dap.adapters.python`
        request = "launch",
        name    = "Launch file",
        -- Options below are for debugpy, see https://github.com/microsoft/debugpy/wiki/Debug-configuration-settings for supported options
        console    = "integratedTerminal",
        program    = "${file}", -- This configuration will launch the current file if used.
        pythonPath = "/usr/bin/python"
      },
    }
  end,
},

(I use astronvim which uses packer [I am pretty noob, sorry if i missed anything])

@GiorgosXou GiorgosXou changed the title Vim(normal):Can't re-enter normal mode from terminal mode Can't re-enter normal mode from terminal mode Jan 11, 2023
rcarriga added a commit that referenced this issue Jan 11, 2023
@rcarriga
Copy link
Owner

Thanks for the report! Was introduced in the last commit, should be working now 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants