오류 처리도

10992 단어 sublime_diagram_plugin

묘사

내가 example.wsd의 예시도에서 그것을 실행할 때, 나는 컨트롤러에서 이것을 얻었다.고쳤어요.https://github.com/evandroforks/PlantUmlDiagrams/commit/7a89dee334ad7f902c3bc1f55647f41610f9b408, 하지만 현재 차트가 표시되지 않습니다.무슨 잘못인지 내가 어떻게 알아?
Rendering [(<PlantUmlDiagrams.diagram.plantuml.PlantUMLProcessor object at 0x05F347D0>, ['\nComponent diagram 1\n\n@startuml\n\nskinparam componentStyle uml2\n\ncloud "GoogleDocs" {\n  [GDOC docs]\n}\n\n[GDOC docs] --> [DOCX docs] : Download\n[DOCX docs] --> [MD parts] : DocConvert\n[MD parts] --> [Drupal feed] : book-parts-to-feed\n[MD parts] --> [MD eBook] : book-join\n[MD parts] --> [HTML parts] : pandoc\n[MD eBook] --> [HTML eBook] : pandoc\n[MD eBook] --> [FB2 eBook] : calibre\n[MD eBook] --> [EPUB eBook] : calibre\n[MD eBook] --> [MOBI eBook] : calibre\n\n@enduml\n\n----------------------------------------------------------\n\nComponent diagram 2\n\n@startuml\n\nskinparam component {\n  Style uml2\n  BackgroundColor #FEFECE\n}\nnode "Database Server" {\n  database "MSSQL / ORA \\n " {\n    [DB] as DB\n  }\n}\nnode "Business Logic Server" {\n  frame "Windows Service Host" {\n    package "GUIService" {\n      [GuiService] as GuiService\n    }\n    package "ExtService" {\n      [ExtService] as ExtService\n    }\n  }\n}\nnode "Update Server \\n (can be hosted on \\n BL Server)" {\n  folder "Remote Storage" {\n    [System Storage] as UpdateStorage\n  }\n}\nnode "Client Computer" {\n  folder "Local Storage" {\n    [System Client] as Client\n  }\n}\ncloud "External Systems" {\n  [External Systems] as ExtSystem\n}\n\ncloud "Service Locator" {\n  [Service Locator] as ServiceLocator\n}\ncloud "OSSBSS Services" {\n  [OSSBSS Services] as OSSBSS\n}\ncloud "Security \\n (Authority \\n Service)" {\n  [OSSBSS Security] as Security\n}\n[Client]          --> [GuiService]      : WCF HTTP/TCP\n[ExtSystem]       --> [ExtService]      : WCF HTTP\n[GuiService]      --> [DB]              : OSSBSS.DbAccessLayer\n[GuiService]      --> [UpdateStorage]   : SMB\n[GuiService]      --> [Security]        : WCF\n[GuiService]      --> [ServiceLocator]  : WCF\n[ServiceLocator]  --> [OSSBSS]          : WCF\n[ExtService]      --> [DB]              : OSSBSS.DbAccessLayer\n[ExtService]      ..> [GuiService]      : inproc\n\n@enduml\n\n--------------------------------------------------------------------------------\n\nState diagram\n\n@startuml\n\n[*]       --> proposed  : external \\n request \\n registered in \\n host system\nproposed  --> active    : request \\n accepted\nproposed  --> rejected  : operator \\n rejected \\n request\nproposed  --> cancelled : request \\n cancelled \\n by external \\n system\nactive    --> resolved  : new data \\n assigned\nactive    --> proposed  : request \\n reverted\nactive    --> cancelled : request \\n cancelled \\n by external \\n system \\n or by \\n power-user, \\n data \\n reverted\nactive    --> rejected  : no tech \\n capability\nresolved  --> completed : assigned data \\n confirmed\nresolved  --> active    : in case of correction\nresolved  --> cancelled : assigned data \\n reverted\ncompleted --> [*]\nrejected  --> [*]\ncancelled --> [*]\n\nproposed  : New\nactive    : In Work\nresolved  : Processed\ncompleted : Confirmed\ncancelled : Cancelled\nrejected  : Rejected\n\n@enduml'])]
Rendering diagram for block: '\nComponent diagram 1\n\n@startuml\n\nskinparam componentStyle uml2\n\ncloud "GoogleDocs" {\n  [GDOC docs]\n}\n\n[GDOC docs] --> [DOCX docs] : Download\n[DOCX docs] --> [MD parts] : DocConvert\n[MD parts] --> [Drupal feed] : book-parts-to-feed\n[MD parts] --> [MD eBook] : book-join\n[MD parts] --> [HTML parts] : pandoc\n[MD eBook] --> [HTML eBook] : pandoc\n[MD eBook] --> [FB2 eBook] : calibre\n[MD eBook] --> [EPUB eBook] : calibre\n[MD eBook] --> [MOBI eBook] : calibre\n\n@enduml\n\n----------------------------------------------------------\n\nComponent diagram 2\n\n@startuml\n\nskinparam component {\n  Style uml2\n  BackgroundColor #FEFECE\n}\nnode "Database Server" {\n  database "MSSQL / ORA \\n " {\n    [DB] as DB\n  }\n}\nnode "Business Logic Server" {\n  frame "Windows Service Host" {\n    package "GUIService" {\n      [GuiService] as GuiService\n    }\n    package "ExtService" {\n      [ExtService] as ExtService\n    }\n  }\n}\nnode "Update Server \\n (can be hosted on \\n BL Server)" {\n  folder "Remote Storage" {\n    [System Storage] as UpdateStorage\n  }\n}\nnode "Client Computer" {\n  folder "Local Storage" {\n    [System Client] as Client\n  }\n}\ncloud "External Systems" {\n  [External Systems] as ExtSystem\n}\n\ncloud "Service Locator" {\n  [Service Locator] as ServiceLocator\n}\ncloud "OSSBSS Services" {\n  [OSSBSS Services] as OSSBSS\n}\ncloud "Security \\n (Authority \\n Service)" {\n  [OSSBSS Security] as Security\n}\n[Client]          --> [GuiService]      : WCF HTTP/TCP\n[ExtSystem]       --> [ExtService]      : WCF HTTP\n[GuiService]      --> [DB]              : OSSBSS.DbAccessLayer\n[GuiService]      --> [UpdateStorage]   : SMB\n[GuiService]      --> [Security]        : WCF\n[GuiService]      --> [ServiceLocator]  : WCF\n[ServiceLocator]  --> [OSSBSS]          : WCF\n[ExtService]      --> [DB]              : OSSBSS.DbAccessLayer\n[ExtService]      ..> [GuiService]      : inproc\n\n@enduml\n\n--------------------------------------------------------------------------------\n\nState diagram\n\n@startuml\n\n[*]       --> proposed  : external \\n request \\n registered in \\n host system\nproposed  --> active    : request \\n accepted\nproposed  --> rejected  : operator \\n rejected \\n request\nproposed  --> cancelled : request \\n cancelled \\n by external \\n system\nactive    --> resolved  : new data \\n assigned\nactive    --> proposed  : request \\n reverted\nactive    --> cancelled : request \\n cancelled \\n by external \\n system \\n or by \\n power-user, \\n data \\n reverted\nactive    --> rejected  : no tech \\n capability\nresolved  --> completed : assigned data \\n confirmed\nresolved  --> active    : in case of correction\nresolved  --> cancelled : assigned data \\n reverted\ncompleted --> [*]\nrejected  --> [*]\ncancelled --> [*]\n\nproposed  : New\nactive    : In Work\nresolved  : Processed\ncompleted : Confirmed\ncancelled : Cancelled\nrejected  : Rejected\n\n@enduml'
chdir to: F:\SublimeText\Data\Packages\PlantUmlDiagrams\samples
Error Processing Diagram:
Here are some complex examples

----------------------------------------------------------

Component diagram 1

@startuml

skinparam componentStyle uml2

cloud "GoogleDocs" {
  [GDOC docs]
}

[GDOC docs] --> [DOCX docs] : Download
[DOCX docs] --> [MD parts] : DocConvert
[MD parts] --> [Drupal feed] : book-parts-to-feed
[MD parts] --> [MD eBook] : book-join
[MD parts] --> [HTML parts] : pandoc
[MD eBook] --> [HTML eBook] : pandoc
[MD eBook] --> [FB2 eBook] : calibre
[MD eBook] --> [EPUB eBook] : calibre
[MD eBook] --> [MOBI eBook] : calibre

@enduml

----------------------------------------------------------

Component diagram 2

@startuml

skinparam component {
  Style uml2
  BackgroundColor #FEFECE
}
node "Database Server" {
  database "MSSQL / ORA \n " {
    [DB] as DB
  }
}
node "Business Logic Server" {
  frame "Windows Service Host" {
    package "GUIService" {
      [GuiService] as GuiService
    }
    package "ExtService" {
      [ExtService] as ExtService
    }
  }
}
node "Update Server \n (can be hosted on \n BL Server)" {
  folder "Remote Storage" {
    [System Storage] as UpdateStorage
  }
}
node "Client Computer" {
  folder "Local Storage" {
    [System Client] as Client
  }
}
cloud "External Systems" {
  [External Systems] as ExtSystem
}

cloud "Service Locator" {
  [Service Locator] as ServiceLocator
}
cloud "OSSBSS Services" {
  [OSSBSS Services] as OSSBSS
}
cloud "Security \n (Authority \n Service)" {
  [OSSBSS Security] as Security
}
[Client]          --> [GuiService]      : WCF HTTP/TCP
[ExtSystem]       --> [ExtService]      : WCF HTTP
[GuiService]      --> [DB]              : OSSBSS.DbAccessLayer
[GuiService]      --> [UpdateStorage]   : SMB
[GuiService]      --> [Security]        : WCF
[GuiService]      --> [ServiceLocator]  : WCF
[ServiceLocator]  --> [OSSBSS]          : WCF
[ExtService]      --> [DB]              : OSSBSS.DbAccessLayer
[ExtService]      ..> [GuiService]      : inproc

@enduml

--------------------------------------------------------------------------------

State diagram

@startuml

[*]       --> proposed  : external \n request \n registered in \n host system
proposed  --> active    : request \n accepted
proposed  --> rejected  : operator \n rejected \n request
proposed  --> cancelled : request \n cancelled \n by external \n system
active    --> resolved  : new data \n assigned
active    --> proposed  : request \n reverted
active    --> cancelled : request \n cancelled \n by external \n system \n or by \n power-user, \n data \n reverted
active    --> rejected  : no tech \n capability
resolved  --> completed : assigned data \n confirmed
resolved  --> active    : in case of correction
resolved  --> cancelled : assigned data \n reverted
completed --> [*]
rejected  --> [*]
cancelled --> [*]

proposed  : New
active    : In Work
resolved  : Processed
completed : Confirmed
cancelled : Cancelled
rejected  : Rejected

@enduml
<PlantUmlDiagrams.diagram.sublime3.Sublime3Viewer object at 0x05B5B110> viewing []

토론 #1

응...더 좋은 로그 기록을 추가해야 할 것 같습니다.그것은 이 도표들을 정확하게 식별한 것 같았지만, 왠지 그것을 보여 주지 못했다.아마도 PlantUML을 실행하는 것이 문제일 것입니다.나는 정말로 Windows에서 테스트한 것이 아니기 때문에 이것은 경로 처리 오류일 수도 있다.다음 주에 나는 이 문제를 깊이 연구하여 찾을 수 있는지 없는지를 볼 것이다.만약 당신이 추가 오류 기록을 추가하고 싶다면, 나는 기꺼이 패치를 통합할 것이다.

토론 #2

나는 stderr를 버리지 않고 내 fork를 고정시킨다.https://github.com/evandrocoan/PlantUmlDiagrams/blob/8f74601c03f8d485916030c821916fb5de00ba87/diagram/plantuml.py#L131그런 다음 PlantUML에서 오류 메시지가 표시되도록 처리합니다.
그리고 나서, 나는 위의 도표 컴파일 오류를 복구했다https://github.com/evandrocoan/PlantUmlDiagrams/commit/cfc2440eebff5b72440c6ad0853f77d1f306aefa그런데 왜 이러는지 모르겠어요.아마도 PlantUML의 오류일 것입니다.

토론 #셋

Perhaps bug on PlantUML?


그래.
package "ExtService" {
  [ExtService] as ExtService
}
이름 바꾸기 시도 package "EXTService" ...

좋은 웹페이지 즐겨찾기