Recent

Author Topic: Jedi code formatter missing from Tools menu  (Read 3533 times)

jl

  • Full Member
  • ***
  • Posts: 178
Jedi code formatter missing from Tools menu
« on: June 06, 2021, 08:05:05 pm »
I was using it previously on my old laptop, but after it crashed, I installed Lazarus 2.0.12 r64642 FPC 3.2.0 x86_64-win64-win32/win64 and now the option is missing.  I also tried using Ctrl-D but it doesn't work.  Can anyone please tell me how to get it back?  Thanks.

ccrause

  • Hero Member
  • *****
  • Posts: 856
Re: Jedi code formatter missing from Tools menu
« Reply #1 on: June 06, 2021, 09:08:07 pm »
You probably have to install the package: Click on Package -> Install/Uninstall Packages, then select jcfidelazarus 2.0 in the Available for installation list, click Install selection button, then click on the Save and rebuild IDE button.

jl

  • Full Member
  • ***
  • Posts: 178
Re: Jedi code formatter missing from Tools menu
« Reply #2 on: June 07, 2021, 08:34:04 am »
Thanks, I tried that, but doesn't appear to work.  Please check attached screens.

Code: Pascal  [Select][+][-]
  1. <?xml version="1.0" ?>
  2. <JediCodeFormatSettings>
  3.     <WriteVersion> 2.44 </WriteVersion>
  4.     <WriteDateTime> 44354.5018849074 </WriteDateTime>
  5.     <Description> format settings for use with Lazarus </Description>
  6.     <ConfirmFormat> True </ConfirmFormat>
  7.   <Obfuscate>
  8.       <Enabled> False </Enabled>
  9.       <Caps> 1 </Caps>
  10.       <RemoveComments> True </RemoveComments>
  11.       <RemoveWhiteSpace> True </RemoveWhiteSpace>
  12.       <RemoveIndent> True </RemoveIndent>
  13.       <RebreakLines> True </RebreakLines>
  14.   </Obfuscate>
  15.   <Clarify>
  16.       <OnceOffs> 0 </OnceOffs>
  17.       <Warnings> True </Warnings>
  18.       <WarnUnusedParams> False </WarnUnusedParams>
  19.       <IgnoreUnusedParams> Sender </IgnoreUnusedParams>
  20.       <FileExtensions> dpr,lpr,pas,pp </FileExtensions>
  21.   </Clarify>
  22.   <Indent>
  23.       <IndentationSpaces> 2 </IndentationSpaces>
  24.       <FirstLevelIndent> 0 </FirstLevelIndent>
  25.       <HasFirstLevelIndent> False </HasFirstLevelIndent>
  26.       <IndentBeginEnd> False </IndentBeginEnd>
  27.       <IndentbeginEndSpaces> 2 </IndentbeginEndSpaces>
  28.       <IndentLibraryProcs> True </IndentLibraryProcs>
  29.       <IndentProcedureBody> False </IndentProcedureBody>
  30.       <KeepCommentsWithCodeInGlobals> True </KeepCommentsWithCodeInGlobals>
  31.       <KeepCommentsWithCodeInProcs> True </KeepCommentsWithCodeInProcs>
  32.       <KeepCommentsWithCodeInClassDef> True </KeepCommentsWithCodeInClassDef>
  33.       <KeepCommentsWithCodeElsewhere> True </KeepCommentsWithCodeElsewhere>
  34.       <IndentElse> False </IndentElse>
  35.       <IndentCaseElse> True </IndentCaseElse>
  36.       <IndentNestedTypes> False </IndentNestedTypes>
  37.       <IndentVarAndConstInClass> False </IndentVarAndConstInClass>
  38.   </Indent>
  39.   <Spaces>
  40.       <TabsToSpaces> True </TabsToSpaces>
  41.       <SpacesToTabs> False </SpacesToTabs>
  42.       <SpacesPerTab> 2 </SpacesPerTab>
  43.       <SpacesForTab> 2 </SpacesForTab>
  44.       <FixSpacing> True </FixSpacing>
  45.       <SpaceBeforeClassHeritage> False </SpaceBeforeClassHeritage>
  46.       <SpacesBeforeColonVar> 0 </SpacesBeforeColonVar>
  47.       <SpacesBeforeColonConst> 0 </SpacesBeforeColonConst>
  48.       <SpacesBeforeColonParam> 0 </SpacesBeforeColonParam>
  49.       <SpacesBeforeColonFn> 0 </SpacesBeforeColonFn>
  50.       <SpacesBeforeColonClassVar> 0 </SpacesBeforeColonClassVar>
  51.       <SpacesBeforeColonRecordField> 0 </SpacesBeforeColonRecordField>
  52.       <SpacesBeforeColonCaseLabel> 0 </SpacesBeforeColonCaseLabel>
  53.       <SpacesBeforeColonLabel> 0 </SpacesBeforeColonLabel>
  54.       <SpacesBeforeColonInGeneric> 0 </SpacesBeforeColonInGeneric>
  55.       <MaxSpacesInCode> 2 </MaxSpacesInCode>
  56.       <UseMaxSpacesInCode> True </UseMaxSpacesInCode>
  57.       <SpaceForOperator> 0 </SpaceForOperator>
  58.       <SpaceBeforeOpenBracketsInFunctionDeclaration> False </SpaceBeforeOpenBracketsInFunctionDeclaration>
  59.       <SpaceBeforeOpenBracketsInFunctionCall> False </SpaceBeforeOpenBracketsInFunctionCall>
  60.       <SpaceBeforeOpenSquareBracketsInExpression> False </SpaceBeforeOpenSquareBracketsInExpression>
  61.       <SpaceAfterOpenBrackets> False </SpaceAfterOpenBrackets>
  62.       <SpaceBeforeCloseBrackets> False </SpaceBeforeCloseBrackets>
  63.       <MoveSpaceToBeforeColon> False </MoveSpaceToBeforeColon>
  64.   </Spaces>
  65.   <Returns>
  66.       <WhenRebreakLines> 2 </WhenRebreakLines>
  67.       <MaxLineLength> 90 </MaxLineLength>
  68.       <NumReturnsAfterFinalEnd> 1 </NumReturnsAfterFinalEnd>
  69.       <RemoveBadReturns> True </RemoveBadReturns>
  70.       <AddGoodReturns> True </AddGoodReturns>
  71.       <UsesOnePerLine> False </UsesOnePerLine>
  72.       <BreakAfterUses> False </BreakAfterUses>
  73.       <RemoveExpressionReturns> True </RemoveExpressionReturns>
  74.       <RemoveVarReturns> True </RemoveVarReturns>
  75.       <NoReturnsInProperty> True </NoReturnsInProperty>
  76.       <RemoveProcedureDefReturns> True </RemoveProcedureDefReturns>
  77.       <RemoveReturns> True </RemoveReturns>
  78.       <RemoveVarBlankLines> True </RemoveVarBlankLines>
  79.       <RemoveProcHeaderBlankLines> True </RemoveProcHeaderBlankLines>
  80.       <Block> 1 </Block>
  81.       <BlockBegin> 0 </BlockBegin>
  82.       <Label> 1 </Label>
  83.       <LabelBegin> 1 </LabelBegin>
  84.       <CaseLabel> 1 </CaseLabel>
  85.       <CaseBegin> 1 </CaseBegin>
  86.       <CaseElse> 0 </CaseElse>
  87.       <CaseElseBegin> 0 </CaseElseBegin>
  88.       <EndElse> 0 </EndElse>
  89.       <ElseIf> 1 </ElseIf>
  90.       <ElseBegin> 0 </ElseBegin>
  91.       <BeforeCompilerDirectUses> 1 </BeforeCompilerDirectUses>
  92.       <BeforeCompilerDirectStatements> 0 </BeforeCompilerDirectStatements>
  93.       <BeforeCompilerDirectGeneral> 1 </BeforeCompilerDirectGeneral>
  94.       <AfterCompilerDirectUses> 1 </AfterCompilerDirectUses>
  95.       <AfterCompilerDirectStatements> 0 </AfterCompilerDirectStatements>
  96.       <AfterCompilerDirectGeneral> 1 </AfterCompilerDirectGeneral>
  97.       <ReturnChars> 0 </ReturnChars>
  98.       <RemoveConsecutiveBlankLines> True </RemoveConsecutiveBlankLines>
  99.       <MaxConsecutiveBlankLines> 4 </MaxConsecutiveBlankLines>
  100.       <MaxBlankLinesInSection> 1 </MaxBlankLinesInSection>
  101.       <LinesBeforeProcedure> 1 </LinesBeforeProcedure>
  102.   </Returns>
  103.   <Comments>
  104.       <RemoveEmptyDoubleSlashComments> True </RemoveEmptyDoubleSlashComments>
  105.       <RemoveEmptyCurlyBraceComments> True </RemoveEmptyCurlyBraceComments>
  106.   </Comments>
  107.   <Capitalisation>
  108.       <Enabled> True </Enabled>
  109.       <ReservedWords> 1 </ReservedWords>
  110.       <Operators> 1 </Operators>
  111.       <Directives> 1 </Directives>
  112.       <Constants> 1 </Constants>
  113.       <Types> 1 </Types>
  114.   </Capitalisation>
  115.   <SpecificWordCaps>
  116.       <Enabled> True </Enabled>
  117.       <Words>  </Words>
  118.   </SpecificWordCaps>
  119.   <Identifiers>
  120.       <Enabled> True </Enabled>
  121.       <Words> ActivePage,AnsiCompareStr,AnsiCompareText,AnsiUpperCase,AsBoolean,AsDateTime,AsFloat,AsInteger,Assign,AsString,AsVariant,BeginDrag,Buttons,Caption,Checked,Classes,ClassName,Clear,Close,Components,Controls,Count,Create,Data,Dec,Delete,Destroy,Dialogs,Enabled,EndDrag,EOF,Exception,Execute,False,FieldByName,First,Forms,Free,FreeAndNil,GetFirstChild,Graphics,Height,idAbort,idCancel,idIgnore,IDispatch,idNo,idOk,idRetry,idYes,Inc,Initialize,IntToStr,ItemIndex,IUnknown,Lines,Math,MaxValue,mbAbort,mbAll,mbCancel,mbHelp,mbIgnore,mbNo,mbOK,mbRetry,mbYes,mbYesToAll,Messages,MinValue,mnNoToAll,mrAbort,mrAll,mrCancel,mrIgnore,mrNo,mrNone,mrNoToAll,mrOk,mrRetry,mrYes,mrYesToAll,mtConfirmation,mtCustom,mtError,mtInformation,mtWarning,Name,Next,Open,Ord,ParamStr,PChar,Perform,ProcessMessages,Read,ReadOnly,RecordCount,Register,Release,Result,Sender,SetFocus,Show,ShowMessage,Source,StdCtrls,StrToInt,SysUtils,TAutoObject,TButton,TComponent,TDataModule,Text,TForm,TFrame,TList,TNotifyEvent,TObject,TObjectList,TPageControl,TPersistent,True,TStringList,TStrings,TTabSheet,Unassigned,Value,Visible,WideString,Width,Windows,Write </Words>
  122.   </Identifiers>
  123.   <NotIdent>
  124.       <Enabled> True </Enabled>
  125.       <Words> False,Name,nil,PChar,read,ReadOnly,True,WideString,write </Words>
  126.   </NotIdent>
  127.   <UnitNameCaps>
  128.       <Enabled> True </Enabled>
  129.       <Words> ActnColorMaps,ActnCtrls,ActnList,ActnMan,ActnMenus,ActnPopup,ActnRes,ADOConst,ADODB,ADOInt,AppEvnts,AxCtrls,BandActn,bdeconst,bdemts,Buttons,CheckLst,Classes,Clipbrd.pas,CmAdmCtl,ComCtrls,ComStrs,Consts,Controls,CtlConsts,CtlPanel,CustomizeDlg,DataBkr,DB,DBActns,dbcgrids,DBClient,DBClientActnRes,DBClientActns,DBCommon,DBConnAdmin,DBConsts,DBCtrls,DbExcept,DBGrids,DBLocal,DBLocalI,DBLogDlg,dblookup,DBOleCtl,DBPWDlg,DBTables,DBXpress,DdeMan,Dialogs,DrTable,DSIntf,ExtActns,ExtCtrls,ExtDlgs,FileCtrl,FMTBcd,Forms,Graphics,GraphUtil,Grids,HTTPIntr,IB,IBBlob,IBCustomDataSet,IBDatabase,IBDatabaseInfo,IBDCLConst,IBErrorCodes,IBEvents,IBExternals,IBExtract,IBGeneratorEditor,IBHeader,IBIntf,IBQuery,IBRestoreEditor,IBSecurityEditor,IBServiceEditor,IBSQL,IBSQLMonitor,IBStoredProc,IBTable,IBUpdateSQL,IBUtils,IBXConst,ImgList,Jcl8087,JclAbstractContainers,JclAlgorithms,JclAnsiStrings,JclAppInst,JclArrayLists,JclArraySets,JclBase,JclBinaryTrees,JclBorlandTools,JclCIL,JclCLR,JclCOM,JclComplex,JclCompression,JclConsole,JclContainerIntf,JclCounter,JclDateTime,JclDebug,JclDotNet,JclEDI,JclEDI_ANSIX12,JclEDI_ANSIX12_Ext,JclEDI_UNEDIFACT,JclEDI_UNEDIFACT_Ext,JclEDISEF,JclEDITranslators,JclEDIXML,JclExprEval,JclFileUtils,JclFont,JclGraphics,JclGraphUtils,JclHashMaps,JclHashSets,JclHookExcept,JclIniFiles,JclLANMan,JclLinkedLists,JclLocales,JclLogic,JclMapi,JclMath,JclMetadata,JclMIDI,JclMime,JclMiscel,JclMsdosSys,JclMultimedia,JclNTFS,JclPCRE,JclPeImage,JclPrint,JclQGraphics,JclQGraphUtils,JclQueues,JclRegistry,JclResources,JclRTTI,JclSchedule,JclSecurity,JclShell,JclSimpleXml,JclStacks,JclStatistics,JclStreams,JclStrHashMap,JclStringLists,JclStrings,JclStructStorage,JclSvcCtrl,JclSynch,JclSysInfo,JclSysUtils,JclTask,JclTD32,JclUnicode,JclUnitConv,JclUnitVersioning,JclUnitVersioningProviders,JclValidation,JclVectors,JclWideFormat,JclWideStrings,JclWin32,JclWin32Ex,JclWinMIDI,ListActns,Mask,MConnect,Menus,Midas,MidasCon,MidConst,MPlayer,MtsRdm,Mxconsts,ObjBrkr,OleAuto,OleConst,OleCtnrs,OleCtrls,OleDB,OleServer,Outline,Printers,Provider,recerror,ScktCnst,ScktComp,ScktMain,SConnect,ShadowWnd,SimpleDS,SMINTF,SqlConst,SqlExpr,SqlTimSt,StdActnMenus,StdActns,StdCtrls,StdStyleActnCtrls,SvcMgr,SysUtils,TabNotBk,Tabs,TConnect,Themes,ToolWin,ValEdit,VDBConsts,WinHelpViewer,XPActnCtrls,XPMan,XPStyleActnCtrls </Words>
  130.   </UnitNameCaps>
  131.   <Asm>
  132.       <Caps> 0 </Caps>
  133.       <BreaksAfterLabel> 1 </BreaksAfterLabel>
  134.       <BreaksAfterLabelEnabled> True </BreaksAfterLabelEnabled>
  135.       <StatementIndentEnabled> True </StatementIndentEnabled>
  136.       <StatementIndent> 7 </StatementIndent>
  137.       <ParamsIndentEnabled> True </ParamsIndentEnabled>
  138.       <ParamsIndent> 15 </ParamsIndent>
  139.   </Asm>
  140.   <PreProcessor>
  141.       <Enabled> False </Enabled>
  142.       <DefinedSymbols> MSWINDOWS </DefinedSymbols>
  143.       <DefinedOptions>  </DefinedOptions>
  144.   </PreProcessor>
  145.   <Align>
  146.       <AlignAssign> False </AlignAssign>
  147.       <AlignConst> False </AlignConst>
  148.       <AlignTypedef> False </AlignTypedef>
  149.       <AlignVars> False </AlignVars>
  150.       <AlignComment> False </AlignComment>
  151.       <AlignFields> False </AlignFields>
  152.       <InterfaceOnly> False </InterfaceOnly>
  153.       <MinColumn> 2 </MinColumn>
  154.       <MaxColumn> 60 </MaxColumn>
  155.       <MaxVariance> 5 </MaxVariance>
  156.       <MaxVarianceInterface> 5 </MaxVarianceInterface>
  157.       <MaxUnalignedStatements> 0 </MaxUnalignedStatements>
  158.   </Align>
  159.   <Replace>
  160.       <Enabled> False </Enabled>
  161.       <Words>  </Words>
  162.   </Replace>
  163.   <Uses>
  164.       <RemoveEnabled> False </RemoveEnabled>
  165.       <InsertInterfaceEnabled> False </InsertInterfaceEnabled>
  166.       <InsertImplementationEnabled> False </InsertImplementationEnabled>
  167.       <FindReplaceEnabled> False </FindReplaceEnabled>
  168.       <Remove>  </Remove>
  169.       <InsertInterface>  </InsertInterface>
  170.       <InsertImplementation>  </InsertImplementation>
  171.       <Find>  </Find>
  172.       <Replace>  </Replace>
  173.   </Uses>
  174.   <Transform>
  175.       <BeginEndStyle> 1 </BeginEndStyle>
  176.       <AddBlockEndSemicolon> True </AddBlockEndSemicolon>
  177.       <SortUsesInterface> False </SortUsesInterface>
  178.       <SortUsesImplmentation> False </SortUsesImplmentation>
  179.       <SortUsesProgram> False </SortUsesProgram>
  180.       <SortUsesBreakOnReturn> False </SortUsesBreakOnReturn>
  181.       <SortUsesBreakOnComment> False </SortUsesBreakOnComment>
  182.       <SortUsesSortOrder> 0 </SortUsesSortOrder>
  183.       <SortUsesNoComments> False </SortUsesNoComments>
  184.   </Transform>
  185. </JediCodeFormatSettings>

ccrause

  • Hero Member
  • *****
  • Posts: 856
Re: Jedi code formatter missing from Tools menu
« Reply #3 on: June 07, 2021, 09:46:41 am »
Thanks, I tried that, but doesn't appear to work.
What didn't work? Can you describe the steps you followed and the eventual problem or error message you encountered?  It is difficult to improve my instructions if I don't know what happens on your side.

Quote
  Please check attached screens.
Can you describe, using words, the steps you followed. It may help someone else with similar problems in future.

 

TinyPortal © 2005-2018