Skip to content

Panic when running raw command #3533

@xenomote

Description

@xenomote

Description of the problem or steps to reproduce

when I attempt to run the > raw I encounter this panic:

Micro encountered an error: runtime.errorString runtime error: invalid memory address or nil pointer dereference
runtime/panic.go:260 (0x55ca73edf8d6)
runtime/panic.go:259 (0x55ca73edf8a6)
github.com/zyedidia/micro/internal/action/rawpane.go:37 (0x55ca7434cb33)
github.com/zyedidia/micro/internal/action/tab.go:254 (0x55ca7434df18)
github.com/zyedidia/micro/internal/action/tab.go:136 (0x55ca7434d85c)
github.com/zyedidia/micro/cmd/micro/micro.go:445 (0x55ca743731a7)
github.com/zyedidia/micro/cmd/micro/micro.go:382 (0x55ca74372c12)
runtime/proc.go:250 (0x55ca73ecc353)
runtime/asm_amd64.s:1594 (0x55ca73efae41)
 
If you can reproduce this error, please report it at https://github.com/zyedidia/micro/issues

this bug ceases to occur if I remove the "autosave": 1 value from my settings.json

Specifications

settings.json

{
    "autosave": 1
}

version

$ micro -version
Version: 2.0.11

system

$ neofetch --stdout
---
OS: Debian GNU/Linux 12 (bookworm) x86_64 
Host: Z390 D 
Kernel: 6.1.0-26-amd64 
Uptime: 1 hour, 26 mins 
Packages: 2265 (dpkg), 14 (flatpak) 
Shell: bash 5.2.15 
Resolution: 1920x1080 
DE: Plasma 5.27.5 
WM: KWin 
WM Theme: Breeze 
Theme: [Plasma], Breeze [GTK2/3] 
Icons: [Plasma], breeze-dark [GTK2/3] 
Terminal: konsole 
CPU: Intel i5-9600K (6) @ 4.600GHz 
GPU: AMD ATI Radeon RX 5600 OEM/5600 XT / 5700/5700 XT 
Memory: 2962MiB / 15800MiB 

installed via APT

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions