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

Users termwinsize settings can interfere with Vimspector UI layout #228

Open
GGCristo opened this issue Aug 6, 2020 · 4 comments
Open
Labels
bug Something isn't working Severity 3+ The issue is rare or cosmetic, or unfixable
Projects

Comments

@GGCristo
Copy link

GGCristo commented Aug 6, 2020

[EDIT2: I think I found the solution, look the next comment]

Describe the bug

When I open the debugger the bottom window is too big.
Screenshot_20200806_233118

Minimal reproduciton

Please answer the following questions

  • Does your issue reproduce using vim -Nu /path/to/vimspector/support/minimal_vimrc ? [Yes/No] No
  • If you are using Neovim, does your issue reproduce using Vim? [Yes/No] Yes

List of steps to reproduce:

Call vimspector with F5 using the VISUAL_STUDIO mapping.

Expected behaviour

The windows should have the default size or at least work with the customization variables.

Actual behaviour

The windows keep the strange size.

Please include:

  • Vimspector log (~/.vimspector.log)
2020-08-06 23:35:41,975 - INFO - **** INITIALISING NEW VIMSPECTOR SESSION ****
2020-08-06 23:35:41,975 - INFO - API is: 
2020-08-06 23:35:41,975 - INFO - VIMSPECTOR_HOME = /home/cristo/.vim/plugged/vimspector
2020-08-06 23:35:41,978 - INFO - gadgetDir = /home/cristo/.vim/plugged/vimspector/gadgets/linux
2020-08-06 23:35:41,979 - INFO - User requested start debug session with {}
2020-08-06 23:35:41,979 - DEBUG - Reading gadget config: /home/cristo/.vim/plugged/vimspector/gadgets/linux/.gadgets.json
2020-08-06 23:35:41,981 - DEBUG - Reading gadget config: None
2020-08-06 23:35:41,981 - DEBUG - Reading configurations from: None
2020-08-06 23:35:41,981 - DEBUG - Reading configurations from: /home/cristo/Escritorio/Simulador/.vimspector.json
2020-08-06 23:35:41,982 - INFO - Configuration: {"adapter": "vscode-cpptools", "configuration": {"name": "<name>", "type": "cppdbg", "request": "launch", "program": "/home/cristo/Escritorio/Simulador/bin/main", "cwd": "/home/cristo/Escritorio/Simulador", "externalConsole": true, "stopAtEntry": true, "MIMode": "gdb"}}
2020-08-06 23:35:41,982 - INFO - Adapter: {"attach": {"pidProperty": "processId", "pidSelect": "ask"}, "command": ["/home/cristo/.vim/plugged/vimspector/gadgets/linux/vscode-cpptools/debugAdapters/OpenDebugAD7"], "configuration": {"args": [], "cwd": "/home/cristo/Escritorio/Simulador", "environment": [], "type": "cppdbg"}, "name": "cppdbg"}
2020-08-06 23:35:42,487 - INFO - Starting debug adapter with: {"attach": {"pidProperty": "processId", "pidSelect": "ask"}, "command": ["/home/cristo/.vim/plugged/vimspector/gadgets/linux/vscode-cpptools/debugAdapters/OpenDebugAD7"], "configuration": {"args": [], "cwd": "/home/cristo/Escritorio/Simulador", "environment": [], "type": "cppdbg"}, "name": "cppdbg"}
2020-08-06 23:35:42,647 - INFO - Debug Adapter Started
2020-08-06 23:35:42,648 - DEBUG - Sending Message: {"command": "initialize", "arguments": {"adapterID": "cppdbg", "clientID": "vimspector", "clientName": "vimspector", "linesStartAt1": true, "columnsStartAt1": true, "locale": "en_GB", "pathFormat": "path", "supportsVariableType": true, "supportsVariablePaging": false, "supportsRunInTerminalRequest": true}, "seq": 0, "type": "request"}
2020-08-06 23:35:42,663 - INFO - Server stderr: waiting for v8 protocol on stdin/stdout

2020-08-06 23:35:43,089 - DEBUG - Message received: {'type': 'response', 'request_seq': 0, 'success': True, 'command': 'initialize', 'body': {'supportsConfigurationDoneRequest': True, 'supportsFunctionBreakpoints': True, 'supportsConditionalBreakpoints': True, 'supportsEvaluateForHovers': True, 'exceptionBreakpointFilters': [], 'supportsSetVariable': True, 'additionalModuleColumns': [], 'supportedChecksumAlgorithms': []}, 'seq': 1}
2020-08-06 23:35:43,089 - DEBUG - LAUNCH!
2020-08-06 23:35:43,089 - DEBUG - Sending Message: {"command": "launch", "arguments": {"args": [], "cwd": "/home/cristo/Escritorio/Simulador", "environment": [], "type": "cppdbg", "name": "<name>", "request": "launch", "program": "/home/cristo/Escritorio/Simulador/bin/main", "externalConsole": true, "stopAtEntry": true, "MIMode": "gdb"}, "seq": 1, "type": "request"}
2020-08-06 23:35:43,233 - DEBUG - Message received: {'type': 'request', 'command': 'runInTerminal', 'arguments': {'kind': 'external', 'title': 'cppdbg: main', 'cwd': '', 'args': ['/bin/sh', '/tmp/Microsoft-MIEngine-Cmd-mnwijyeg.bft'], 'env': {}}, 'seq': 2}
2020-08-06 23:35:43,233 - DEBUG - Defaulting working directory to /home/cristo/Escritorio/Simulador
2020-08-06 23:35:43,446 - DEBUG - Sending Message: {"seq": 2, "type": "response", "request_seq": 2, "command": "runInTerminal", "body": {"processId": 4725}, "success": true}
2020-08-06 23:35:43,503 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'telemetry', 'output': 'VS/Diagnostics/Debugger/Launch', 'data': {'VS.Diagnostics.Debugger.ImplementationName': 'Microsoft.MIDebugEngine', 'VS.Diagnostics.Debugger.EngineVersion': '16.5.10325.1', 'VS.Diagnostics.Debugger.HostVersion': '16.5.10325.1', 'VS.Diagnostics.Debugger.AdapterId': 'cppdbg', 'VS.Diagnostics.Debugger.Launch.Duration': 343, 'VS.Diagnostics.Debugger.Launch.IsCoreDump': False, 'VS.Diagnostics.Debugger.VisualizerFileUsed': False, 'VS.Diagnostics.Debugger.SourceFileMappings': 0, 'VS.Diagnostics.Debugger.MIMode': None}}, 'seq': 3}
2020-08-06 23:35:43,569 - DEBUG - Message received: {'type': 'response', 'request_seq': 1, 'success': True, 'command': 'launch', 'body': {}, 'seq': 4}
2020-08-06 23:35:43,569 - DEBUG - Message received: {'type': 'event', 'event': 'initialized', 'body': {}, 'seq': 5}
2020-08-06 23:35:43,570 - DEBUG - Sending Message: {"command": "setFunctionBreakpoints", "arguments": {"breakpoints": []}, "seq": 3, "type": "request"}
2020-08-06 23:35:43,586 - DEBUG - Message received: {'type': 'response', 'request_seq': 3, 'success': True, 'command': 'setFunctionBreakpoints', 'body': {'breakpoints': []}, 'seq': 6}
2020-08-06 23:35:43,587 - DEBUG - Breakpoints at this point: {}
2020-08-06 23:35:43,587 - DEBUG - Sending Message: {"command": "configurationDone", "seq": 4, "type": "request"}
2020-08-06 23:35:43,592 - DEBUG - Message received: {'type': 'response', 'request_seq': 4, 'success': True, 'command': 'configurationDone', 'body': {}, 'seq': 7}
2020-08-06 23:35:43,593 - DEBUG - Sending Message: {"command": "threads", "seq": 5, "type": "request"}
2020-08-06 23:35:43,594 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': '=thread-group-added,id="i1"\nGNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git\nCopyright (C) 2018 Free Software Foundation, Inc.\nLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type "show copying"\nand "show warranty" for details.\nThis GDB was configured as "x86_64-linux-gnu".\nType "show configuration" for configuration details.\nPara las instrucciones de informe de errores, vea:\n<http://www.gnu.org/software/gdb/bugs/>.\nFind the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\nFor help, type "help".\nType "apropos word" to search for commands related to "word".\nWarning: Debuggee TargetArchitecture not detected, assuming x86_64.\n=cmd-param-changed,param="pagination",value="off"\n'}, 'seq': 8}
2020-08-06 23:35:43,621 - DEBUG - Message received: {'type': 'response', 'request_seq': 5, 'success': True, 'command': 'threads', 'body': {'threads': []}, 'seq': 9}
2020-08-06 23:35:43,621 - WARNING - User Msg: Server returned no threads. Is it running?
2020-08-06 23:35:43,633 - DEBUG - Message received: {'type': 'event', 'event': 'thread', 'body': {'reason': 'started', 'threadId': 4735}, 'seq': 10}
2020-08-06 23:35:43,633 - DEBUG - Sending Message: {"command": "threads", "seq": 6, "type": "request"}
2020-08-06 23:35:43,633 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': 'Detenido por el evento biblioteca compartida (no existen bibliotecas añadidas o eliminadas)\n'}, 'seq': 11}
2020-08-06 23:35:43,654 - DEBUG - Message received: {'type': 'response', 'request_seq': 6, 'success': True, 'command': 'threads', 'body': {'threads': [{'id': 4735, 'name': 'main'}]}, 'seq': 12}
2020-08-06 23:35:43,654 - DEBUG - Sending Message: {"command": "stackTrace", "arguments": {"threadId": 4735}, "seq": 7, "type": "request"}
2020-08-06 23:35:43,654 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'console', 'output': "Loaded '/lib64/ld-linux-x86-64.so.2'. Symbols loaded.\n"}, 'seq': 13}
2020-08-06 23:35:43,672 - DEBUG - Message received: {'type': 'response', 'request_seq': 7, 'success': True, 'command': 'stackTrace', 'body': {'stackFrames': [], 'totalFrames': 0}, 'seq': 14}
2020-08-06 23:35:43,901 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': '[Depuración de hilo usando libthread_db enabled]\n'}, 'seq': 15}
2020-08-06 23:35:43,902 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': 'Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".\n'}, 'seq': 16}
2020-08-06 23:35:43,957 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': '\n'}, 'seq': 17}
2020-08-06 23:35:43,971 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': 'Breakpoint 1, 0x000055555555586e in main ()\n'}, 'seq': 18}
2020-08-06 23:35:43,971 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'console', 'output': "Loaded '/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0'. Symbols loaded.\n"}, 'seq': 19}
2020-08-06 23:35:43,972 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'console', 'output': "Loaded '/usr/lib/x86_64-linux-gnu/libstdc++.so.6'. Symbols loaded.\n"}, 'seq': 20}
2020-08-06 23:35:43,985 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'console', 'output': "Loaded '/lib/x86_64-linux-gnu/libgcc_s.so.1'. Symbols loaded.\n"}, 'seq': 21}
2020-08-06 23:35:43,985 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'console', 'output': "Loaded '/lib/x86_64-linux-gnu/libc.so.6'. Symbols loaded.\n"}, 'seq': 22}
2020-08-06 23:35:43,985 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'console', 'output': "Loaded '/lib/x86_64-linux-gnu/libdl.so.2'. Symbols loaded.\n"}, 'seq': 23}
2020-08-06 23:35:43,985 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'console', 'output': "Loaded '/lib/x86_64-linux-gnu/libpthread.so.0'. Symbols loaded.\n"}, 'seq': 24}
2020-08-06 23:35:43,986 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'console', 'output': "Loaded '/lib/x86_64-linux-gnu/libm.so.6'. Symbols loaded.\n"}, 'seq': 25}
2020-08-06 23:35:43,986 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'console', 'output': 'Execute debugger commands using "-exec <command>", for example "-exec info registers" will list registers in use (when GDB is the debugger)\n'}, 'seq': 26}
2020-08-06 23:35:44,012 - DEBUG - Message received: {'type': 'event', 'event': 'stopped', 'body': {'reason': 'step', 'threadId': 4735, 'allThreadsStopped': True}, 'seq': 27}
2020-08-06 23:35:44,012 - WARNING - User Msg: Paused in thread 4735 due to step
2020-08-06 23:35:44,081 - DEBUG - Sending Message: {"command": "stackTrace", "arguments": {"threadId": 4735}, "seq": 8, "type": "request"}
2020-08-06 23:35:44,101 - DEBUG - Message received: {'type': 'response', 'request_seq': 8, 'success': True, 'command': 'stackTrace', 'body': {'stackFrames': [{'id': 1000, 'name': 'main', 'line': 0, 'column': 0}], 'totalFrames': 1}, 'seq': 28}
2020-08-06 23:35:46,488 - DEBUG - Stop debug adapter with callback : self._Reset()
2020-08-06 23:35:46,489 - DEBUG - Sending Message: {"command": "disconnect", "arguments": {}, "seq": 9, "type": "request"}
2020-08-06 23:35:46,515 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': '¿Terminar el programa que está siendo depurado? (y or n) [answered Y; input not from terminal]\n'}, 'seq': 29}
2020-08-06 23:35:46,515 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'console', 'output': "The program '/home/cristo/Escritorio/Simulador/bin/main' has exited with code 0 (0x00000000).\r\n\n"}, 'seq': 30}
2020-08-06 23:35:46,516 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'telemetry', 'output': 'VS/Diagnostics/Debugger/DebugCompleted', 'data': {'VS.Diagnostics.Debugger.ImplementationName': 'Microsoft.MIDebugEngine', 'VS.Diagnostics.Debugger.EngineVersion': '16.5.10325.1', 'VS.Diagnostics.Debugger.HostVersion': '16.5.10325.1', 'VS.Diagnostics.Debugger.AdapterId': 'cppdbg', 'VS.Diagnostics.Debugger.DebugCompleted.BreakCounter': 1}}, 'seq': 31}
2020-08-06 23:35:46,582 - DEBUG - Message received: {'type': 'response', 'request_seq': 9, 'success': True, 'command': 'disconnect', 'body': {}, 'seq': 32}
2020-08-06 23:35:46,583 - DEBUG - Setting server exit handler before disconnect
2020-08-06 23:35:46,598 - INFO - The server has terminated with status 0
2020-08-06 23:35:46,598 - DEBUG - Running server exit handler
2020-08-06 23:35:46,598 - INFO - Debugging complete.
2020-08-06 23:35:46,598 - DEBUG - Clearing down UI
2020-08-06 23:59:52,107 - INFO - User requested start debug session with {}
2020-08-06 23:59:52,108 - DEBUG - Reading gadget config: /home/cristo/.vim/plugged/vimspector/gadgets/linux/.gadgets.json
2020-08-06 23:59:52,112 - DEBUG - Reading gadget config: None
2020-08-06 23:59:52,112 - DEBUG - Reading configurations from: None
2020-08-06 23:59:52,113 - DEBUG - Reading configurations from: /home/cristo/Escritorio/Simulador/.vimspector.json
2020-08-06 23:59:52,113 - INFO - Configuration: {"adapter": "vscode-cpptools", "configuration": {"name": "<name>", "type": "cppdbg", "request": "launch", "program": "/home/cristo/Escritorio/Simulador/bin/main", "cwd": "/home/cristo/Escritorio/Simulador", "externalConsole": true, "stopAtEntry": true, "MIMode": "gdb"}}
2020-08-06 23:59:52,114 - INFO - Adapter: {"attach": {"pidProperty": "processId", "pidSelect": "ask"}, "command": ["/home/cristo/.vim/plugged/vimspector/gadgets/linux/vscode-cpptools/debugAdapters/OpenDebugAD7"], "configuration": {"args": [], "cwd": "/home/cristo/Escritorio/Simulador", "environment": [], "type": "cppdbg"}, "name": "cppdbg"}
2020-08-06 23:59:52,610 - INFO - Starting debug adapter with: {"attach": {"pidProperty": "processId", "pidSelect": "ask"}, "command": ["/home/cristo/.vim/plugged/vimspector/gadgets/linux/vscode-cpptools/debugAdapters/OpenDebugAD7"], "configuration": {"args": [], "cwd": "/home/cristo/Escritorio/Simulador", "environment": [], "type": "cppdbg"}, "name": "cppdbg"}
2020-08-06 23:59:52,795 - INFO - Debug Adapter Started
2020-08-06 23:59:52,796 - DEBUG - Sending Message: {"command": "initialize", "arguments": {"adapterID": "cppdbg", "clientID": "vimspector", "clientName": "vimspector", "linesStartAt1": true, "columnsStartAt1": true, "locale": "en_GB", "pathFormat": "path", "supportsVariableType": true, "supportsVariablePaging": false, "supportsRunInTerminalRequest": true}, "seq": 0, "type": "request"}
2020-08-06 23:59:52,810 - INFO - Server stderr: waiting for v8 protocol on stdin/stdout

2020-08-06 23:59:53,225 - DEBUG - Message received: {'type': 'response', 'request_seq': 0, 'success': True, 'command': 'initialize', 'body': {'supportsConfigurationDoneRequest': True, 'supportsFunctionBreakpoints': True, 'supportsConditionalBreakpoints': True, 'supportsEvaluateForHovers': True, 'exceptionBreakpointFilters': [], 'supportsSetVariable': True, 'additionalModuleColumns': [], 'supportedChecksumAlgorithms': []}, 'seq': 1}
2020-08-06 23:59:53,225 - DEBUG - LAUNCH!
2020-08-06 23:59:53,225 - DEBUG - Sending Message: {"command": "launch", "arguments": {"args": [], "cwd": "/home/cristo/Escritorio/Simulador", "environment": [], "type": "cppdbg", "name": "<name>", "request": "launch", "program": "/home/cristo/Escritorio/Simulador/bin/main", "externalConsole": true, "stopAtEntry": true, "MIMode": "gdb"}, "seq": 1, "type": "request"}
2020-08-06 23:59:53,369 - DEBUG - Message received: {'type': 'request', 'command': 'runInTerminal', 'arguments': {'kind': 'external', 'title': 'cppdbg: main', 'cwd': '', 'args': ['/bin/sh', '/tmp/Microsoft-MIEngine-Cmd-vgixgcba.mwk'], 'env': {}}, 'seq': 2}
2020-08-06 23:59:53,369 - DEBUG - Defaulting working directory to /home/cristo/Escritorio/Simulador
2020-08-06 23:59:53,589 - DEBUG - Sending Message: {"seq": 2, "type": "response", "request_seq": 2, "command": "runInTerminal", "body": {"processId": 5807}, "success": true}
2020-08-06 23:59:53,657 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'telemetry', 'output': 'VS/Diagnostics/Debugger/Launch', 'data': {'VS.Diagnostics.Debugger.ImplementationName': 'Microsoft.MIDebugEngine', 'VS.Diagnostics.Debugger.EngineVersion': '16.5.10325.1', 'VS.Diagnostics.Debugger.HostVersion': '16.5.10325.1', 'VS.Diagnostics.Debugger.AdapterId': 'cppdbg', 'VS.Diagnostics.Debugger.Launch.Duration': 333, 'VS.Diagnostics.Debugger.Launch.IsCoreDump': False, 'VS.Diagnostics.Debugger.VisualizerFileUsed': False, 'VS.Diagnostics.Debugger.SourceFileMappings': 0, 'VS.Diagnostics.Debugger.MIMode': None}}, 'seq': 3}
2020-08-06 23:59:53,725 - DEBUG - Message received: {'type': 'response', 'request_seq': 1, 'success': True, 'command': 'launch', 'body': {}, 'seq': 4}
2020-08-06 23:59:53,725 - DEBUG - Message received: {'type': 'event', 'event': 'initialized', 'body': {}, 'seq': 5}
2020-08-06 23:59:53,726 - DEBUG - Sending Message: {"command": "setFunctionBreakpoints", "arguments": {"breakpoints": []}, "seq": 3, "type": "request"}
2020-08-06 23:59:53,742 - DEBUG - Message received: {'type': 'response', 'request_seq': 3, 'success': True, 'command': 'setFunctionBreakpoints', 'body': {'breakpoints': []}, 'seq': 6}
2020-08-06 23:59:53,742 - DEBUG - Breakpoints at this point: {}
2020-08-06 23:59:53,742 - DEBUG - Sending Message: {"command": "configurationDone", "seq": 4, "type": "request"}
2020-08-06 23:59:53,745 - DEBUG - Message received: {'type': 'response', 'request_seq': 4, 'success': True, 'command': 'configurationDone', 'body': {}, 'seq': 7}
2020-08-06 23:59:53,745 - DEBUG - Sending Message: {"command": "threads", "seq": 5, "type": "request"}
2020-08-06 23:59:53,747 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': '=thread-group-added,id="i1"\nGNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git\nCopyright (C) 2018 Free Software Foundation, Inc.\nLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type "show copying"\nand "show warranty" for details.\nThis GDB was configured as "x86_64-linux-gnu".\nType "show configuration" for configuration details.\nPara las instrucciones de informe de errores, vea:\n<http://www.gnu.org/software/gdb/bugs/>.\nFind the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\nFor help, type "help".\nType "apropos word" to search for commands related to "word".\nWarning: Debuggee TargetArchitecture not detected, assuming x86_64.\n=cmd-param-changed,param="pagination",value="off"\n'}, 'seq': 8}
2020-08-06 23:59:53,769 - DEBUG - Message received: {'type': 'response', 'request_seq': 5, 'success': True, 'command': 'threads', 'body': {'threads': []}, 'seq': 9}
2020-08-06 23:59:53,769 - WARNING - User Msg: Server returned no threads. Is it running?
2020-08-06 23:59:53,790 - DEBUG - Message received: {'type': 'event', 'event': 'thread', 'body': {'reason': 'started', 'threadId': 5817}, 'seq': 10}
2020-08-06 23:59:53,791 - DEBUG - Sending Message: {"command": "threads", "seq": 6, "type": "request"}
2020-08-06 23:59:53,791 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': 'Detenido por el evento biblioteca compartida (no existen bibliotecas añadidas o eliminadas)\n'}, 'seq': 11}
2020-08-06 23:59:53,815 - DEBUG - Message received: {'type': 'response', 'request_seq': 6, 'success': True, 'command': 'threads', 'body': {'threads': [{'id': 5817, 'name': 'main'}]}, 'seq': 12}
2020-08-06 23:59:53,815 - DEBUG - Sending Message: {"command": "stackTrace", "arguments": {"threadId": 5817}, "seq": 7, "type": "request"}
2020-08-06 23:59:53,815 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'console', 'output': "Loaded '/lib64/ld-linux-x86-64.so.2'. Symbols loaded.\n"}, 'seq': 13}
2020-08-06 23:59:53,830 - DEBUG - Message received: {'type': 'response', 'request_seq': 7, 'success': True, 'command': 'stackTrace', 'body': {'stackFrames': [], 'totalFrames': 0}, 'seq': 14}
2020-08-06 23:59:54,055 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': '[Depuración de hilo usando libthread_db enabled]\n'}, 'seq': 15}
2020-08-06 23:59:54,056 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': 'Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".\n'}, 'seq': 16}
2020-08-06 23:59:54,112 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': '\n'}, 'seq': 17}
2020-08-06 23:59:54,127 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'stdout', 'output': 'Breakpoint 1, 0x000055555555586e in main ()\n'}, 'seq': 18}
2020-08-06 23:59:54,128 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'console', 'output': "Loaded '/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0'. Symbols loaded.\n"}, 'seq': 19}
2020-08-06 23:59:54,142 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'console', 'output': "Loaded '/usr/lib/x86_64-linux-gnu/libstdc++.so.6'. Symbols loaded.\n"}, 'seq': 20}
2020-08-06 23:59:54,142 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'console', 'output': "Loaded '/lib/x86_64-linux-gnu/libgcc_s.so.1'. Symbols loaded.\n"}, 'seq': 21}
2020-08-06 23:59:54,143 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'console', 'output': "Loaded '/lib/x86_64-linux-gnu/libc.so.6'. Symbols loaded.\n"}, 'seq': 22}
2020-08-06 23:59:54,143 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'console', 'output': "Loaded '/lib/x86_64-linux-gnu/libdl.so.2'. Symbols loaded.\n"}, 'seq': 23}
2020-08-06 23:59:54,143 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'console', 'output': "Loaded '/lib/x86_64-linux-gnu/libpthread.so.0'. Symbols loaded.\n"}, 'seq': 24}
2020-08-06 23:59:54,143 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'console', 'output': "Loaded '/lib/x86_64-linux-gnu/libm.so.6'. Symbols loaded.\n"}, 'seq': 25}
2020-08-06 23:59:54,143 - DEBUG - Message received: {'type': 'event', 'event': 'output', 'body': {'category': 'console', 'output': 'Execute debugger commands using "-exec <command>", for example "-exec info registers" will list registers in use (when GDB is the debugger)\n'}, 'seq': 26}
2020-08-06 23:59:54,154 - DEBUG - Message received: {'type': 'event', 'event': 'stopped', 'body': {'reason': 'step', 'threadId': 5817, 'allThreadsStopped': True}, 'seq': 27}
2020-08-06 23:59:54,154 - WARNING - User Msg: Paused in thread 5817 due to step
2020-08-06 23:59:54,221 - DEBUG - Sending Message: {"command": "stackTrace", "arguments": {"threadId": 5817}, "seq": 8, "type": "request"}
2020-08-06 23:59:54,241 - DEBUG - Message received: {'type': 'response', 'request_seq': 8, 'success': True, 'command': 'stackTrace', 'body': {'stackFrames': [{'id': 1000, 'name': 'main', 'line': 0, 'column': 0}], 'totalFrames': 1}, 'seq': 28}
  • Output from any or all UI diagnostic tabs (Server, etc.)

Environemnt

NOTE: NeoVim is supported only on a best-effort basis. Please check the README
for limitations of neovim. Don't be offended if I ask you to reproduce issues in
Vim.

NOTE: Windows support is experimental and best-efrort only. If you find an
issue related to Windows or windows-isms, consider sending a PR or
discussing on Gitter rather than raising an issue.

  • Version of Vimspector: (e.g. output of git rev-parse HEAD if cloned or the
    name of the tarball used to install otherwise)

  • Output of vim --version or nvim --version

Screenshot_20200806_234620

  • Output of which vim or which nvim:
    Screenshot_20200806_234818

  • Output of :py3 print( __import__( 'sys' ).version ):

Screenshot_20200806_234903

  • Output of :py3 import vim:

There is no output

  • Output of :py3 import vimspector:

There is no output

  • For neovim: output of :checkhealth

Using Vim

  • Operating system: and version

Screenshot_20200806_235625

Declaration

Please complete the following declaration. If this declaration is not completed, your issue may be closed without comment.

Additional information

If I use let g:vimspector_bottombar_height = 5 (or any value)
it works but after one second it return to the same strange size.
EDIT: The terminal windows work fine, so it looks its only a bottom window problem.

In the minimal configuration everything its ok, so I will try to debug my .vimrc, anyway I open the issues so can help people in the future, or maybe someone already can suppose where the problem is.

@GGCristo
Copy link
Author

GGCristo commented Aug 6, 2020

I found the problem.
This line in my .vimrc:

set termwinsize=20x0

Please tell me if you can reproduce it.

EDIT: This is a problem I had since the moment I installed this plugin (a long time ago), maybe this can help you to find a fix.

@puremourning
Copy link
Owner

I think your setting is forcing the terminal to be 20 lines. Which means vim has to resize the window below to fill the space.

Not obvious how to resolve this one as I doubt temporarily changing termwinsize will always work. I’ll take a look perhaps. But you should be able to fix this with the VimspectorTerminalOpened autocommand right?

@GGCristo
Copy link
Author

GGCristo commented Aug 7, 2020

Yes , that could fix it (https://www.gitmemory.com/issue/puremourning/vimspector/195/657140265), anyway I personally dont use the Vim's terminal so I just deleted that line.
You can close the issue if you want.

@puremourning
Copy link
Owner

I think I can work around it so I'll leave it open. I tried a simple change but while it worked it wasn't perfect.

@puremourning puremourning changed the title Wrong windows size Users termwinsize settings can interfere with Vimspector UI layout Sep 20, 2020
@puremourning puremourning added bug Something isn't working Severity 3+ The issue is rare or cosmetic, or unfixable labels Oct 9, 2020
@puremourning puremourning added this to Low priority in Fix issues Mar 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Severity 3+ The issue is rare or cosmetic, or unfixable
Projects
Fix issues
  
Low priority
Development

No branches or pull requests

2 participants