posit-dev / posit-dev/positron

Invalid input run from editor does not produce error in console (is not executed)

Open
#4,594 10 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: console enhancement lang: r support
Dominant language
TypeScript
Stars
4.3k
Forks
184
Avg merge
1d 9h
Merged PRs (30d)
195

Description

System details:

Positron and OS details:

Positron Version: 2024.09.0 (system setup) build 1
Code - OSS Version: 1.92.0
Commit: f37f4f5044a2a619e73d5db61a31e37fbd3faf18
Date: 2024-09-03T02:35:34.573Z
Electron: 30.1.2
Chromium: 124.0.6367.243
Node.js: 20.14.0
V8: 12.4.254.20-electron.0
OS: Windows_NT x64 10.0.22631

Interpreter details:

R 4.4.1 or

Describe the issue:

Steps to reproduce the issue:

  1. Write rnorm(1000, 1. 2) into an editor
  2. Run the code using Ctrl+Enter

This prints the invalid code-line into the console, but does not run the code and consequently, no error is printed.

Expected or desired behavior:

The code is run and an error msg in the console.

See video: correct code is immediately run and a result printed to the console. Invalid code is just printed to the console and only run once I switch to the console and hit "Enter".

https://github.com/user-attachments/assets/01b9266f-02ba-469a-b8b1-c98c1b026683

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

Start by reproducing the Ctrl+Enter workflow in Positron with the R expression shown in the issue, comparing valid and invalid input in the editor and console. Trace the editor-to-console execution path; done means invalid input is executed and its error appears in the console without manually pressing Enter.

Written by the indexing model from the issue text.

Assessment

Tech stack
r, typescript
Domain
desktop, developer-experience
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.