REditorSupport / REditorSupport/vscode-R

`aa = keras::layer_input()` breaks the global environment viewer

Open
#1,460 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
1.2k
Forks
139
Avg merge
2h 46m
Merged PRs (30d)
5

Description

Describe the bug
The title is clear enough.

To Reproduce
Steps to reproduce the behavior:

  1. command palette -> create r terminal
  2. library(keras)
  3. aa = layer_input(shape=c(2,3))
  4. the assignment succeeds, but environment viewer will not update hereafter
  5. every command hereafter will trigger a "Missing value where TRUE/FALSE needed" output in the R console.
  6. Call rm(aa), everything goes back to normal.

Can you fix this issue by yourself? (We appreciate the help)

No

Environment (please complete the following information):

  • OS: Windows 10 and ubuntu 22.04
  • VSCode Version: Any will do
  • R Version: anything above 4.1
  • vscode-R version: 2.8.2

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 failure in a VS Code R terminal with library(keras) and aa = layer_input(shape=c(2,3)); start by tracing the environment viewer update after that assignment. Done means the viewer continues updating and subsequent commands no longer report "Missing value where TRUE/FALSE needed", with rm(aa) still restoring normal behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
keras, r
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.