https://bugs.kde.org/show_bug.cgi?id=474722

            Bug ID: 474722
           Summary: prettier.resolveConfig.sync is not a function
    Classification: Applications
           Product: kate
           Version: 23.08.1
          Platform: Manjaro
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: k...@mah69k.net
  Target Milestone: ---

SUMMARY
Hello! It's a strange situation that depends on how I edit the document. If I
open a document through Dolphin, through the context menu, the "Open with"
item, and then edit the document - I save it fine. But if I open Kate and then
open the document, I get an error when I save:

[11:33:06  Format Ошибка] TypeError: prettier.resolveConfig.sync is not a
function
    at Socket. (/tmp/kate.nEChzR:48:30)
    at Socket.emit (node:events:514:28)
    at addChunk (node:internal/streams/readable:343:12)
    at readableAddChunk (node:internal/streams/readable:312:11)
    at Readable.push (node:internal/streams/readable:253:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)

This is HTML document. My document also exceeds the "Line Length Limit"
parameter, perhaps this has some effect.

Before this I installed npm-10.1.0-1, prettier-3.0.3-1, yarn-1.22.19-1,
nodejs-20.6.1-1 (Kate was saying that it was missing these packages before it
started displaying this error).


STEPS TO REPRODUCE
1. Open Kate.
2. Open HTML-document.
3. Edit.
4. Ctrl-S.


SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to