positron
positron copied to clipboard
Cannot run code in Working Tree
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:
- Open git backed repository
- Make a change (add
1 + 1) - Open it in (Working Tree)
- 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')
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
Also I don't see any popups / issues in your actual video, is something missing?
very bottom right, you might need to move your cursor away from the video for the "menu" to disappear
Also to note, the editor actions doesn't have the run button.