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

[Bug]: File paths are clickable but resolve to empty screen #154

Open
1 task done
madrussa opened this issue Feb 5, 2024 · 0 comments
Open
1 task done

[Bug]: File paths are clickable but resolve to empty screen #154

madrussa opened this issue Feb 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@madrussa
Copy link

madrussa commented Feb 5, 2024

What happened?

When you make a request, and the data returns an error response with a stack trace for example, it highlights file paths as though they are clickable.

Example:

{
  "message": "Error",
  "trace": [
    {
      "file": "/var/www/app/service/TestService.php",
      "line": 30,
      "call": "App\\Service\\TestsService::test()"
    }
  ]
}

In the above example it will underline /var/www/app/service/TestService.php and when you CMD + Click or Right Click on the path it attempts to follow it, resulting in the app going blank and not showing anything. You lose all of the shell and UI.

Dev tools doesn't show anything as it gets disconnected.

Steps to reproduce?

1. Launch the app
2. Send a request that returns a file path (ideally one that doesn't exist on the host machine)
3. CMD+Click or Right Click on the file path

What did you expect to happen?

Nothing...

It's force of habit for me to CMD+Click file paths to attempt to open them in the IDE. However the file paths may or may not belong on the host machine. If the file exists it would be good to open it in Finder or my preferred editor for that file type. This would improve productivity being able to hot link files where an error occurred.

Platform

macOS

HTTPie Desktop version

2022.5.1

Relevant log output

No output available, dev tools disconnects

Code of Conduct

  • I agree to follow this project's Code of Conduct
@madrussa madrussa added the bug Something isn't working label Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant