ruff icon indicating copy to clipboard operation
ruff copied to clipboard

new feat: Jump to source

Open linpan opened this issue 1 year ago • 2 comments

❯ ruff format .  --line-length 120 
error: Failed to parse graph/node.py:26:5: Expected 'Indent', but got 'llm'
2 files reformatted, 11 files left unchanged

click "graph/node.py:26:5" go to source, use can fix it instead find file and location line no.

linpan avatar Apr 07 '24 02:04 linpan

I think this would be a feature of your terminal rather than anything that Ruff could do. Like, in my terminal, I can right-click on graph/node.py and it will open the file in my default editor.

Do you know of similar tools that expose this, where you're seeing different behavior than for Ruff?

charliermarsh avatar Apr 07 '24 03:04 charliermarsh

one case: ruff check . haiku/api/endpoints/chat/rag.py:74:37: W292 [*] No newline at end of file can jump to code,

ruff format .  --line-length 120 
error: Failed to parse graph/node.py:26:5: Expected 'Indent', but got 'llm'
2 files reformatted, 11 files left unchanged

not do

linpan avatar Apr 08 '24 01:04 linpan

Currently, there is really not enough context to look if there is something that can be improved. Lets get this into a reproducible direction:

  • What directory are you in?
  • What terminal emulators are you using? What happens in other terminal emulators?
  • What is the minimal, reproducible output?

CommanderStorm avatar Apr 12 '24 00:04 CommanderStorm

Closing for now as it doesn't feel actionable.

charliermarsh avatar Apr 18 '24 00:04 charliermarsh