ruff-pycharm-plugin icon indicating copy to clipboard operation
ruff-pycharm-plugin copied to clipboard

(🐞) Exception when 'pyproject.toml' file contains a syntax error

Open KotlinIsland opened this issue 2 years ago • 2 comments

Caused by: The following command was executed:

C:\Users\AMONGUS\AppData\Local\pypoetry\Cache\virtualenvs\test-NzGwdVyt-py3.11\Scripts\ruff.exe --exit-zero --no-cache --force-exclude --no-fix --format json --stdin-filename AMONGUS.py -

The exit code: 2
The error output of the command:


ruff failed
  Cause: TOML parse error at line 58, column 1
   |
58 | <<<<<<< HEAD
   | ^
invalid key


Error Running Ruff
	at com.koxudaxi.ruff.RuffKt.runCommand(Ruff.kt:191)
	at com.koxudaxi.ruff.RuffKt.runCommand(Ruff.kt:137)
	at com.koxudaxi.ruff.RuffKt.runRuff(Ruff.kt:243)
	at com.koxudaxi.ruff.RuffExternalAnnotator.doAnnotate(RuffExternalAnnotator.kt:54)
	at com.koxudaxi.ruff.RuffExternalAnnotator.doAnnotate(RuffExternalAnnotator.kt:22)
	at com.intellij.codeInsight.daemon.impl.ExternalToolPass.doAnnotate(ExternalToolPass.java:207)
	... 37 more

KotlinIsland avatar Aug 08 '23 23:08 KotlinIsland

Sorry for the late confirmation. The latest version seems to have resolved the issue, so I will close it.

koxudaxi avatar Mar 24 '24 16:03 koxudaxi

@koxudaxi, I am on 0.0.31, and I am still experiencing the issue

KotlinIsland avatar Mar 27 '24 00:03 KotlinIsland