ManuelHentschel / VSCode-R-Debugger

R Debugger Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=RDebugger.r-debugger
MIT License
170 stars 11 forks source link

Different colors of print and message #98

Closed bersbersbers closed 4 years ago

bersbersbers commented 4 years ago

Describe the bug I am still trying to find out what the different colors means in the VS Code Debug Console, but I already noticed that print and message produce different colors. Is this intended? I do not see any semantic difference between the two.

To Reproduce image

Your R code

print(1)
message(1)

Your Launch config If applicable, the launch config that causes the bug. E.g.:

        {
            "type": "R-Debugger",
            "request": "launch",
            "name": "Debug R-File",
            "debugMode": "file",
            "workingDirectory": "${workspaceFolder}",
            "file": "${file}",
            "allowGlobalDebugging": true
        }

Expected behavior Identical colors (I believe)

ManuelHentschel commented 4 years ago

The specific colours are mostly controlled by VS Code, the extension has only indirect influence on the colours by using different "output channels":

Note: The specific colours probably vary depending on the selected colour theme, the ones I described above are from Dark+

bersbersbers commented 4 years ago

Oh my:

The default handler sends the message to the stderr() connection.

https://www.rdocumentation.org/packages/base/versions/3.6.2/topics/message

Related: https://stackoverflow.com/questions/25306819/send-r-diagnostic-messages-to-stdout-instead-stderr

I did not know that. Thank you and sorry for the noise.