Skip to content

Conversation

@nrayburn-tech
Copy link
Collaborator

@nrayburn-tech nrayburn-tech commented Jun 12, 2025

JetBrains terminals don't work reliably with relative paths to hyperlink to the file. Outputting the full file URL instead works consistently.

Fixes #8444.

This seems to work, but there is some cleanup that probably needs to be done by somebody more experienced. Left some inline comments for this.

Current
image

With this change in a JetBrains terminal (IntelliJ in this case)
image

With this change in a regular macOS terminal
image

@github-actions github-actions bot added A-linter Area - Linter C-bug Category - Bug labels Jun 12, 2025
@codspeed-hq
Copy link

codspeed-hq bot commented Jun 12, 2025

CodSpeed Instrumentation Performance Report

Merging #11619 will not alter performance

Comparing nrayburn-tech:fix-8444 (a9bff36) with main (17e0898)

Summary

✅ 38 untouched benchmarks

@nrayburn-tech
Copy link
Collaborator Author

@camc314 this isn't very high priority, but it would be a pretty good improvement for JetBrains IDEs if it was resolved. Gave it my best attempt, but I don't know very much Rust.

Copy link
Contributor

@camc314 camc314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@camc314 this isn't very high priority, but it would be a pretty good improvement for JetBrains IDEs if it was resolved. Gave it my best attempt, but I don't know very much Rust.

thank you for working on this, this is great!
I pushed a new commit removing the url dependency, and the output appears to be the same?

do you mind testing this and letting me know if it still looks ok?

@camc314 camc314 marked this pull request as ready for review June 13, 2025 12:36
@nrayburn-tech
Copy link
Collaborator Author

I should be able to test later this morning and let you know.

@nrayburn-tech
Copy link
Collaborator Author

do you mind testing this and letting me know if it still looks ok?

On macOS the tests still fail when running through a JetBrains terminal. The tests pass through a regular macOS terminal. The output from the CLI looks fine when running through a JetBrains terminal.
I don't have anything "weird" with my file paths and I'm not using Windows though, so none of what Sysix mentioned as concerns was tested.

@nrayburn-tech nrayburn-tech marked this pull request as draft June 15, 2025 06:32
@nrayburn-tech nrayburn-tech marked this pull request as ready for review June 16, 2025 23:40
@nrayburn-tech
Copy link
Collaborator Author

I don't have a Windows device to test on until a release is made, but the macOS changes still look fine to me.

Copy link
Member

@Sysix Sysix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could not test it, LGTM

Copy link
Contributor

@camc314 camc314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

…rminals

JetBrains terminals don't work reliably with relative paths to hyperlink to the file. Outputting the full file URL instead works consistently.
@camc314 camc314 merged commit 1e88dba into oxc-project:main Jun 27, 2025
24 checks passed
This was referenced Jun 30, 2025
@nrayburn-tech nrayburn-tech deleted the fix-8444 branch July 10, 2025 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-linter Area - Linter C-bug Category - Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make links in Jetbrains products clickable

3 participants