posit-dev / positron

Positron, a next-generation data science IDE
https://positron.posit.co
Other
2.57k stars 79 forks source link

Should PROBLEMS be displayed from an untitled file? #3228

Open jennybc opened 5 months ago

jennybc commented 5 months ago

Here I am in the source of an R package, but I have some code in Untitled-3 that I'm fiddling around with (it's copy/pasted from some R code inside ark). It feels like PROBLEMS shouldn't scrutinize the contents of Untitled-3 the same way that it does actual files within the project.

Screenshot 2024-05-21 at 4 01 44 PM
olivroy commented 2 weeks ago

Is there a way to disable showing problems in the file tab, like not have the file name be of a different color?

i.e. here, not have tapp.R colored in yellow Image

Most problems are usually false positive anyway.

On startup, I get these problems, but it is just because packages are not yet loaded Image

jennybc commented 2 weeks ago

I get these problems, but it is just because packages are not yet loaded

We are tracking that elsewhere, i.e. the need to do some static analysis of the workspace. See #2649 and #2252.