Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

cd and ls crash when passed a non-directory link

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

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

評価

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

調査の方向性

Cmdline.java で、スタックトレースによって特定された cd と ls のエントリポイントから始め、次にディレクトリではないリンクまたはファイルを使って Interpreter から両方の呼び出しを再現します。各パスがどのように検証されるかを追跡し、ディレクトリではないリンクの意図された扱いを確認します。どちらのコマンドもクラッシュせず、報告されたケースが一貫して動作すれば完了です。

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

説明

bug good first issue
    Uh oh! You've found an error in Core.
    This happened while running your code, so you may be able to find a workaround, but is ultimately an issue in Core.
    The following code caused the error:
    ls('file.zip')
    on or around Interpreter:1.
    Please report this to the developers, and be sure to include the version numbers:
    Server version: SHELL;
    MethodScript version: 3.3.4;
    Loaded extensions and versions:
    Core (3.3.4)
    Here's the stacktrace:
    java.lang.NullPointerException
            at com.laytonsmith.core.functions.Cmdline$ls.exec(Cmdline.java:1699)
            at com.laytonsmith.core.Script.eval(Script.java:409)
            at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:2818)
            at com.laytonsmith.tools.Interpreter$4.run(Interpreter.java:832)
            at java.lang.Thread.run(Thread.java:748)
    
    Uh oh! You've found an error in Core.
    This happened while running your code, so you may be able to find a workaround, but is ultimately an issue in Core.
    The following code caused the error:
    cd('file.zip')
    on or around Interpreter:1.
    Please report this to the developers, and be sure to include the version numbers:
    Server version: SHELL;
    MethodScript version: 3.3.4;
    Loaded extensions and versions:
    Core (3.3.4)
    Here's the stacktrace:
    java.lang.IllegalArgumentException: File provided to SetRootFolder must be a folder, not a file. (.\Downloads\2656-netstat-ipv6.PID.zip was found.)
            at com.laytonsmith.core.environments.GlobalEnv.SetRootFolder(GlobalEnv.java:209)
            at com.laytonsmith.core.functions.Cmdline$cd.exec(Cmdline.java:1648)
            at com.laytonsmith.core.Script.eval(Script.java:409)
            at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:2818)
            at com.laytonsmith.tools.Interpreter$4.run(Interpreter.java:832)
            at java.lang.Thread.run(Thread.java:748)
主要言語
Java
スター
128
フォーク
70
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

EngineHub/CommandHelper のほかの issue

EngineHub/CommandHelper の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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