color style of banner in Python Console arouse ambiguity #85841

Closed
opened 2021-02-21 12:32:36 +01:00 by cadtofu · 16 comments

System Information
version: version: 2.92.0 Beta, branch: master, commit date: 2021-02-14 19:51, hash: 2d3b29de4f, type: Release
build date: 2021-02-14, 23:41:19
and history versions, at least since Blender 2.80
platform: Windows

Short description of error
Python Console use so-called "OUTPUT" color style for its banner info, which arouse ambiguity with real OUTPUT scrollback messages.
This issue has nothing to do with User Preferences >Themes.

Exact steps for others to reproduce the error
step 1. Open a Python Console, then banner info is displayed.
step 2. Send some output message to Python Console.
fsc_2021-02-21_184656_g.jpg

Suggestion:
Change banner style from "OUTPUT" to "INFO".
File: "..\scripts\modules\console_python.py"
Line: 356

    for line in message:
        #rv-  add_scrollback(line, 'OUTPUT')
        add_scrollback(line, 'INFO')  #rv+

fsc_2021-02-21_184757_g.jpg

**System Information** version: version: 2.92.0 Beta, branch: master, commit date: 2021-02-14 19:51, hash: 2d3b29de4fc7, type: Release build date: 2021-02-14, 23:41:19 and history versions, at least since Blender 2.80 platform: Windows **Short description of error** Python Console use so-called "OUTPUT" color style for its banner info, which arouse ambiguity with real OUTPUT scrollback messages. This issue has nothing to do with User Preferences >Themes. **Exact steps for others to reproduce the error** step 1. Open a Python Console, then banner info is displayed. step 2. Send some output message to Python Console. ![fsc_2021-02-21_184656_g.jpg](https://archive.blender.org/developer/F9825044/fsc_2021-02-21_184656_g.jpg) Suggestion: Change banner style from "OUTPUT" to "INFO". File: "..\scripts\modules\console_python.py" Line: 356 ``` for line in message: #rv- add_scrollback(line, 'OUTPUT') add_scrollback(line, 'INFO') #rv+ ``` ![fsc_2021-02-21_184757_g.jpg](https://archive.blender.org/developer/F9825056/fsc_2021-02-21_184757_g.jpg)
Author

Added subscriber: @cadtofu

Added subscriber: @cadtofu

Added subscriber: @mont29

Added subscriber: @mont29

@cadtofu please do not set release goals yourself, only active developers should be in charge of that.

@cadtofu please do not set release goals yourself, only active developers should be in charge of that.
Author

In #85841#1121668, @mont29 wrote:
@cadtofu please do not set release goals yourself, only active developers should be in charge of that.

Sorry, I misunderstood that tag indicates affected version.
Now, I see.
Thant you, Bastien.

> In #85841#1121668, @mont29 wrote: > @cadtofu please do not set release goals yourself, only active developers should be in charge of that. Sorry, I misunderstood that tag indicates affected version. Now, I see. Thant you, Bastien.

Added subscriber: @ideasman42

Added subscriber: @ideasman42

This seems like a reasonable change, although I don't have a strong opinion.

This seems like a reasonable change, although I don't have a strong opinion.
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

In #85841#1153293, @ideasman42 wrote:
This seems like a reasonable change, although I don't have a strong opinion.

Will confirm then.

@cadtofu : might seem bureaucratic for such a small change, but could you submit your patch through https://developer.blender.org/differential/diff/create/ ?

> In #85841#1153293, @ideasman42 wrote: > This seems like a reasonable change, although I don't have a strong opinion. Will confirm then. @cadtofu : might seem bureaucratic for such a small change, but could you submit your patch through https://developer.blender.org/differential/diff/create/ ?
Member

Added subscriber: @Harley

Added subscriber: @Harley
Member

@cadtofu - if you are unsure of next steps, feel free to contact me .

@cadtofu - if you are unsure of next steps, feel free to [contact me ](https://developer.blender.org/p/harley/).
Author

@philipp-14 Oeser (lichtwerk)
@Harley Acheson (harley)
Thank you guys. I never used git before. I struggled several times, but failed to submit the diff result.
Error promt:
https://developer.blender.org/differential/diff/create/ ?

Unhandled Exception ("AphrontQueryException")
#1048: Column 'filename' cannot be null

Diff result based on: blender 3.0 alpha (2021-10-22 daily build)
blender-3.0.0-alpha+master.ab1909fe06b0-windows.amd64-release.zip
Platform: Windows x64
File:[blender]\3.0\scripts\modules\console_python.py


diff --git a/from/console_python.py b/to/console_python.py
index 3cc38bd..cdc3e09 100644
--- a/from/console_python.py
+++ b/to/console_python.py
@@ -351,7 +351,7 @@ def banner(context):
     )
 
     for line in message:
-        add_scrollback(line, 'OUTPUT')
+        add_scrollback(line, 'INFO')
 
     sc.prompt = PROMPT
@philipp-14 Oeser (lichtwerk) @Harley Acheson (harley) Thank you guys. I never used git before. I struggled several times, but failed to submit the diff result. Error promt: https://developer.blender.org/differential/diff/create/ ? > Unhandled Exception ("AphrontQueryException") > #1048: Column 'filename' cannot be null > Diff result based on: blender 3.0 alpha (2021-10-22 daily build) blender-3.0.0-alpha+master.ab1909fe06b0-windows.amd64-release.zip Platform: Windows x64 File:[blender]\3.0\scripts\modules\console_python.py **** ``` diff --git a/from/console_python.py b/to/console_python.py index 3cc38bd..cdc3e09 100644 --- a/from/console_python.py +++ b/to/console_python.py @@ -351,7 +351,7 @@ def banner(context): ) for line in message: - add_scrollback(line, 'OUTPUT') + add_scrollback(line, 'INFO') sc.prompt = PROMPT ```
Author

Added subscriber: @philipp-14

Added subscriber: @philipp-14
Philipp Oeser removed the
Interest
User Interface
label 2023-02-10 09:23:36 +01:00

Hello @cadtofu, I made a pull request from your suggestion.

Hello @cadtofu, I made a pull request from your suggestion.

Closing as this is working as intended and not a bug.

Closing as this is working as intended and not a bug.
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2023-03-01 00:49:16 +01:00
Author

Hello @cadtofu, I made a pull request from your suggestion.

Thank you. @PiloeGAO very much. I confirmed just now, your patch work as I expected in Blender 3.6.2.

> Hello @cadtofu, I made a pull request from your suggestion. Thank you. @PiloeGAO very much. I confirmed just now, your patch work as I expected in Blender 3.6.2.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
6 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#85841
No description provided.