microsoft / microsoft/vscode-java-debug

Launching a Java class should not execute what is typed in the terminal

Open
#1,439 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ai-triaged bug external
Dominant language
TypeScript
Stars
591
Forks
429
Avg merge
1d 9h
Merged PRs (30d)
19

Description

Type: Bug

If you type rm -rf something in the terminal and forget to press enter before launching a Java class, then your project is deleted.

image image

Expected:

The project should never be deleted, nor should anything typed in the terminal be executed

Extension version: 0.56.0
VS Code version: Code 1.86.1 (Universal) (31c37ee8f63491495ac49e43b8544550fbae4533, 2024-02-07T09:09:01.236Z)
OS version: Darwin arm64 23.3.0
Modes:

System Info
Item Value
CPUs Apple M1 Max (10 x 24)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) 25, 24, 28
Memory (System) 64.00GB (1.37GB free)
Process Argv --crash-reporter-id 3c06e13f-ed9a-4182-a8b6-41057b478757
Screen Reader no
VM 0%

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the reported case by typing a destructive command in the terminal without pressing Enter, then launch a Java class. Trace how launching the class interacts with the terminal input and ensure the typed command is neither executed nor able to delete project files; verify the behavior on the listed VS Code and extension versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.