question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Link package URIs in terminal output

See original GitHub issue

Stacktrace is printed out to Test Output as plain text. It would be useful if we could click on specific line and navigate to related code.

case:

e.g. test fails with such output in Test Output window:

ERROR: NoSuchMethodError: The method 'call' was called on null.
Receiver: null
Tried calling: call()
dart:core                                                                       Object.noSuchMethod
test/service/geocode_repository_mock.dart 12:7                                  MockGeocodeRepository.locationsFromCoordinates
package:mypackage/src/feature/location_picker/bloc/location_picker_bloc.dart 32:29
<...>

expectation:

clicking package:mypackage/src/feature/location_picker/bloc/location_picker_bloc.dart 32:29 navigates to location_picker_bloc.dart 32

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
DanTupcommented, Sep 15, 2020

@maks that seems like a different issue (this one here is tracking the Terminal, but that’s the Debug Console). I’ve opened https://github.com/Dart-Code/Dart-Code/issues/2794 for it. Thanks!

0reactions
makscommented, Sep 15, 2020

hi @DanTup I’m trying option #3 - running tests inside VSC using the “Dart: Run all tests” command palette entry and the lookign a the output of a failed test in Debug console but I don’t get the any linking to src of the lines in the stack trace inside the Debug Console as per screenshot below. I’ve got the commit that causes the error in my repo if you wanted to try it out yourself.

Screenshot 2020-09-15 at 10 20 16

Read more comments on GitHub >

github_iconTop Results From Across the Web

Load raw link contents into terminal
If you're using command that include URL or URI (for instance get foo.html or get https://example.com ) you can use this:
Read more >
How to "put some 'source' URIs in your sources.list"?
Uncomment the deb-src lines in /etc/apt/sources.list : sudo sed -i 's/# deb-src/deb-src/' /etc/apt/sources.list sudo apt update.
Read more >
Real working hyperlinks in the terminal with Rich
The easiest way to output hyperlinks is via console markup. Here's a simple example: >>> from rich import print >>> print( ...
Read more >
Error :: You must put some 'source' URIs in your sources.list
In Linux Mint (I am on version 18) you can go to Software Sources (search for it in the start menu or open...
Read more >
Download file from URL on Linux using command line
The bit of output near the top of the terminal is just wget's attempt to connect to the server to download the file....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found