posit-dev / posit-dev/positron

Cannot run code in Working Tree

Open
#4,850 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: console area: core enhancement
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 (Universal) build 77
Code - OSS Version: 1.93.0
Commit: 9b6f7c066546a4c7f104368fc769fb3768b08bfd
Date: 2024-09-23T02:43:50.589Z
Electron: 30.4.0
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Darwin arm64 24.0.0

Interpreter details:

R 4.4.0

Describe the issue:

When you try to run a line of code in a Working tree, you get the following error: Cannot read properties of undefined (reading 'scheme')

I don't remember if you were able to do this before or not. But It would be lovely if you could

Steps to reproduce the issue:

  1. Open git backed repository
  2. Make a change (add 1 + 1)
  3. Open it in (Working Tree)
  4. Try to execute lines

https://github.com/user-attachments/assets/ba653202-8155-40b8-ab36-73c07de943f1

Expected or desired behavior:

That working tree behavior would be identical or at least similar to original ducument.

Were there any error messages in the UI, Output panel, or Developer Tools console?

UI pop-up: Cannot read properties of undefined (reading 'scheme')

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 issue in a git-backed repository by editing a file in Working Tree and trying to execute a line. Start with the UI error and inspect the Developer Tools console or Output panel; done means edited code executes in Working Tree without the undefined scheme error and behaves like the original document.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, r, typescript
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.