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

🐛 make file in biome output clickable for webstorm/jetbrains/intellij #4874

Open
1 task done
Andrew-Chen-Wang opened this issue Jan 11, 2025 · 1 comment
Open
1 task done
Labels
S-Needs triage Status: this issue needs to be triaged

Comments

@Andrew-Chen-Wang
Copy link

Andrew-Chen-Wang commented Jan 11, 2025

Environment information

latest webstorm ide version. Eslint works fine.

biome rage
CLI:
  Version:                      1.9.4
  Color support:                true

Platform:
  CPU Architecture:             aarch64
  OS:                           macos

Environment:
  BIOME_LOG_PATH:               unset
  BIOME_LOG_PREFIX_NAME:        unset
  BIOME_CONFIG_PATH:            unset
  NO_COLOR:                     unset
  TERM:                         "xterm-256color"
  JS_RUNTIME_VERSION:           "v20.10.0"
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         unset

Biome Configuration:
  Status:                       Loaded successfully
  Formatter disabled:           false
  Linter disabled:              false
  Organize imports disabled:    false
  VCS disabled:                 true

Workspace:
  Open Documents:               0

What happened?

This issue where you can click a file path in the console output of biome check should have resolved IntelliJ (in my case webstorm) files being clickable in terminal output. Unfortunately, they aren't.

#1815

It could be an IDE issue though. I cannot get it to work even using echo or an absolute file path using echo. I am using NextJS and they have hyper links that are clickable in webstorm just fine.

Expected result

Be able to click the file path and the file opens.

Code of Conduct

  • I agree to follow Biome's Code of Conduct
@Andrew-Chen-Wang Andrew-Chen-Wang added the S-Needs triage Status: this issue needs to be triaged label Jan 11, 2025
@Andrew-Chen-Wang
Copy link
Author

Andrew-Chen-Wang commented Jan 11, 2025

I have managed to make it work on jetbrains via echo:

echo " at ./.gitignore:1:1"
 at ./.gitignore:1:1

This also works on Cursor IDE which is basically VSCode, and on Pycharm. Let me know how I can contribute this Making a PR now

Unf

echo " at ./.gitignore
  at ./.gitignore

does nothing on all jetbrains ides!

Interestingly:

echo "file:///.gitignore"
file:///.gitignore

is the only way to make it work when there are no column/row markers, but clicking on it requires an absolute path on all jetbrains IDEs

a little more discovery:

echo "/Users/andrew/Work/Code/projects/hi.ts\n   34:25  error"
/Users/andrew/Work/Code/projects/hi.js
   34:25  error

the 34:25 error is clickable, but this only applies to webstorm and VSCode. On PyCharm this doesn't work. This line was taken from eslint

however this is something that works on pycharm

(venv) andrew@Mac django-rest-framework-simplejwt % echo rest_framework_simplejwt/serializers.py:1:1
rest_framework_simplejwt/serializers.py:1:1
# Note the :1:1 -> Only up to the first `1` is actually clickable
(venv) andrew@Mac django-rest-framework-simplejwt % echo ./rest_framework_simplejwt/serializers.py:1
./rest_framework_simplejwt/serializers.py:1

unbelievable

ref: https://youtrack.jetbrains.com/issue/IJPL-101350/Producing-clickable-file-paths-in-the-embedded-terminal#focus=Comments-27-9026636.0-0

@Andrew-Chen-Wang Andrew-Chen-Wang changed the title 🐛 make file in diagnostic clickable for webstorm 🐛 make file in biome output clickable for webstorm/jetbrains/intellij Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-Needs triage Status: this issue needs to be triaged
Projects
None yet
1 participant