Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error reporting #3162

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Conversation

johnpryan
Copy link
Contributor

This adds support for displaying Dart or Flutter error messages in console and lets you drag to adjust the size. If an error message has been received since the user last cleared the console, we show that. If there's only normal output, we show that.

One potential issue with this approach: If there's an error being displayed, you can't go back to view view console output until you clear the console. We could add a tab bar to switch between the two, but this was the best I could do without adding extra UI components that take up space.

fixes #3008
fixes #3148

dartpad-errors 2025-02-28 16_10_01

@johnpryan johnpryan requested review from devoncarew and parlough March 1, 2025 00:12
Copy link

github-actions bot commented Mar 1, 2025

PR Health

Breaking changes ✔️
Package Change Current Version New Version Needed Version Looking good?
Changelog Entry ✔️
Package Changed Files

Changes to files need to be accounted for in their respective changelogs.

Coverage ✔️
File Coverage

This check for test coverage is informational (issues shown here will not fail the PR).

API leaks ✔️

The following packages contain symbols visible in the public API, but not exported by the library. Export these symbols or remove them from your publicly visible API.

Package Leaked API symbols
License Headers ✔️
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
Files
no missing headers

All source files should start with a license header.

Unrelated files missing license headers
Files
pkgs/dartpad_ui/lib/enable_gen_ai.dart
pkgs/samples/lib/brick_breaker.dart
pkgs/samples/lib/fibonacci.dart
pkgs/samples/lib/google_ai.dart
pkgs/samples/lib/hello_world.dart
pkgs/samples/lib/main.dart
pkgs/samples/lib/sunflower.dart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant