cd and ls crash when passed a non-directory link
まだ誰も着手していません。
評価
調査の方向性
Cmdline.java で、スタックトレースによって特定された cd と ls のエントリポイントから始め、次にディレクトリではないリンクまたはファイルを使って Interpreter から両方の呼び出しを再現します。各パスがどのように検証されるかを追跡し、ディレクトリではないリンクの意図された扱いを確認します。どちらのコマンドもクラッシュせず、報告されたケースが一貫して動作すれば完了です。
索引モデルが 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 はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
EngineHub/CommandHelper のほかの issue
-
discussion wanted documentation
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
EngineHub/CommandHelper#1403 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
EngineHub/CommandHelper#1370 · コメント 1 件 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
EngineHub/CommandHelper#1354 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
EngineHub/CommandHelper#1349 · コメント 3 件 ·
-
bug
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
EngineHub/CommandHelper#1341 · コメント 2 件 ·
EngineHub/CommandHelper の issue をすべて見る
似ている issue
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
apache/flink-agents#1152 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
jenkinsci/blueocean-plugin#5417 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
objectionary/eo-graphs#75 ·