Link package URIs in terminal output
See original GitHub issueStacktrace 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:
- Created 4 years ago
- Reactions:2
- Comments:14 (8 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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!
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.