diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e7620291..0d9cf611d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to the "robotcode" extension will be documented in this file +## v0.24.4 (2023-01-24) +### Fix +* **debugger:** Show error/warning messages of python logger in debug console ([`665a3ff`](https://github.com/d-biehl/robotcode/commit/665a3ffd22f28ef73bb48aa63ceaeb831b6f4ffe)) + ## v0.24.3 (2023-01-23) ### Fix * Set env and pythonpath erlier in lifecycle to prevent that sometime analyses fails because of python path is not correct ([`4183391`](https://github.com/d-biehl/robotcode/commit/41833917d2311b33effa1dc2e8f654b0982c439c)) diff --git a/package.json b/package.json index 69253ab7d..10b3af022 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "RobotFramework support for Visual Studio Code", "icon": "images/icon.png", "publisher": "d-biehl", - "version": "0.24.3", + "version": "0.24.4", "author": { "name": "Daniel Biehl", "url": "https://github.com/d-biehl/" diff --git a/pyproject.toml b/pyproject.toml index 491397e62..6ccabd64d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "robotcode" -version = "0.24.3" +version = "0.24.4" description = "Language server, debugger and tools for Robot Framework" authors = ["Daniel Biehl "] homepage = 'https://github.com/d-biehl/robotcode' diff --git a/robotcode/__version__.py b/robotcode/__version__.py index a304c3734..2743a504c 100644 --- a/robotcode/__version__.py +++ b/robotcode/__version__.py @@ -1 +1 @@ -__version__ = "0.24.3" +__version__ = "0.24.4" diff --git a/robotcode/debugger/debugger.py b/robotcode/debugger/debugger.py index 3d4979e7b..5c055161d 100644 --- a/robotcode/debugger/debugger.py +++ b/robotcode/debugger/debugger.py @@ -1040,8 +1040,14 @@ def log_message(self, message: Dict[str, Any]) -> None: ) def message(self, message: Dict[str, Any]) -> None: - if self.output_messages: - level = message["level"] + level = message["level"] + current_frame = self.full_stack_frames[0] if self.full_stack_frames else None + if ( + self.output_messages + or current_frame is not None + and current_frame.type != "KEYWORD" + and level in ["FAIL", "ERROR", "WARN"] + ): msg = message["message"] self.send_event( @@ -1050,7 +1056,7 @@ def message(self, message: Dict[str, Any]) -> None: body=OutputEventBody( output=f"\u001b[38;5;237m{message['timestamp'].split(' ', 1)[1]}" f" {self.MESSAGE_COLORS.get(level, '')}{level}\u001b[0m: {msg}\n", - category="messages", + category=OutputCategory.CONSOLE, ) ), )