positron icon indicating copy to clipboard operation
positron copied to clipboard

Cannot run code in Working Tree

Open EmilHvitfeldt opened this issue 1 year ago • 4 comments

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')

EmilHvitfeldt avatar Sep 30 '24 19:09 EmilHvitfeldt

I think we should probably throw a better error, but I'm not sure I really like the idea of running code in the Working Tree view. I think you should go to the "real" file

DavisVaughan avatar Sep 30 '24 19:09 DavisVaughan

Also I don't see any popups / issues in your actual video, is something missing?

DavisVaughan avatar Sep 30 '24 19:09 DavisVaughan

very bottom right, you might need to move your cursor away from the video for the "menu" to disappear

EmilHvitfeldt avatar Sep 30 '24 20:09 EmilHvitfeldt

Also to note, the editor actions doesn't have the run button.

timtmok avatar Oct 02 '24 14:10 timtmok