invalid escape sequence error when opening micro under root on Debian

オープン
#4,259 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
debian, go
領域
cli

調査の方向性

The error names a main chunk at line 26, column 33, near a \. sequence, which points to a Lua file (likely a plugin or runtime script) loaded from the root user's config directory rather than the Go code itself. Start by finding which main.lua has a \. escape at that line, then reproduce by running micro as root with the same config. Done when micro starts as root without the escape error.

索引モデルが issue の本文から書いたものです。

説明

bug triage
Description

Whenever I go to open up Micro from the command line simply by typing micro, I get an escape sequence error but only when logged in as root

main line:26(column:33) near '\.':   Invalid escape sequence


Press enter to continue

Unfortunately I don't have much more information right now than the error that it gives me immediately upon hitting Enter after typing in micro. Once I hit Enter to continue, it opens up the text editor and I can use it as normal. Let me know of any information, logs, or whatever I can gather to help pinpoint what's going on here

Environment
  • Version: 2.0.14
  • OS: Debian 13
  • Terminal: ssh in through Termux
主要言語
Go
スター
29.8k
フォーク
1.4k
平均マージ
1日 12時間
マージ済み PR(30日)
2

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

micro-editor/micro のほかの issue

micro-editor/micro の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。