Author Topic: Setting an option in "Languages > Plain Text > Indent" returns an error  (Read 3471 times)

Viybel

  • Junior Community Member
  • Posts: 3
  • Hero Points: 1

When I change any option in "Options > Languages > Miscellaneous Languages > Plain Text > Indent" and click on "Apply", I get an error and the Slick-C stack below.

It doesn't seem to happen in other option pages (in Plain Text or other language).

Can anyone help?

Vianney

SlickEdit Version 14.0.1.2
Build Date: May 15, 2009
OS: Windows XP
Version: 5.01.2600  Service Pack 3

Code: [Select]
Invalid number argument
setupext.ex 30970 _language_indent_form_apply()   p_window_id: 93   p_object: OI_FORM   p_name: _language_indent_form
DialogTransformer.ex 368 se.options.DialogTransformer.callFunction(
   1:   ._typename()=se.options.DialogEmbedder
   1:   .m-caption=Indent
   1:   .m-panelHelp=This page lets you set the indenting style you like on a language-specific basis. You can also specify whether code is indented with spaces or tabs and set the behavior of the Tab key. The features Syntax Indent, SmartPaste, Dynamic Surround, and Syntax Expansion are also enabled through this page.
   1:   .m-systemHelp=Indent Options (Language-Specific)
   1:   .m-form=_language_indent_form
   1:   .m-wid=93
   1:   .m-xmlIndex=10383
   1:   .m-langID=fundamental
   1:   .m-inheritsFromForm=
   1:   .m-vcProviderID=
   1:   .m-width=8910
   1:   .m-height=5055
   1:   .m-options:[ctlReindentStrict.p_value]=0
   1:   .m-options:[_innone.p_value]=0
   1:   .m-options:[ctlBackspaceUnindent.p_value]=0
   1:   .m-options:[_minimum_expandable.p_text]=1
   1:   .m-options:[ctlInsertRealIndent.p_value]=0
   1:   .m-options:[_tabs.p_text]=+8
   1:   .m-options:[_insmart.p_text]=
   1:   .m-options:[_indent_with_tabs.p_value]=0
   1:   .m-options:[ctlIndent.p_value]=1
   1:   .m-options:[_surround.p_value]=1
   1:   .m-options:[ctlReindent.p_value]=0
   1:   .m-options:[_syntax_expansion.p_value]=0
   1:   .m-options:[ctlReindentAlways.p_value]=0
   1:   .m-options:[_insmart_on.p_value]=0
   1:   .m-options:[_inauto.p_value]=1
   1:   .m-options:[ctlIndentSelection.p_value]=1
   1:   .m-options:[_smartp.p_value]=0
   1:   .m-functions._typename()=se.options.FormFunctions
   1:   .m-functions.ExportSettings=13818
   1:   .m-functions.ImportSettings=0
   1:   .m-functions.BuildExportSummary=13813
   1:   .m-functions.ImportSummary=0
   1:   .m-functions[4]=0
   1:   .m-functions[5]=13817
   1:   .m-functions[6]=0
   1:   .m-state=fundamental
   1:   .m-controls=<empty>
   2:   13818
   3:   -1
   4:   -1
   5:   -1
   p_window_id: 14
   p_object: OI_FORM
   p_name: _options_config_tree_form
DialogEmbedder.ex 1217 se.options.DialogEmbedder.apply(
   1:   ._typename()=se.options.DialogEmbedder
   1:   .m-caption=Indent
   1:   .m-panelHelp=This page lets you set the indenting style you like on a language-specific basis. You can also specify whether code is indented with spaces or tabs and set the behavior of the Tab key. The features Syntax Indent, SmartPaste, Dynamic Surround, and Syntax Expansion are also enabled through this page.
   1:   .m-systemHelp=Indent Options (Language-Specific)
   1:   .m-form=_language_indent_form
   1:   .m-wid=93
   1:   .m-xmlIndex=10383
   1:   .m-langID=fundamental
   1:   .m-inheritsFromForm=
   1:   .m-vcProviderID=
   1:   .m-width=8910
   1:   .m-height=5055
   1:   .m-options:[ctlReindentStrict.p_value]=0
   1:   .m-options:[_innone.p_value]=0
   1:   .m-options:[ctlBackspaceUnindent.p_value]=0
   1:   .m-options:[_minimum_expandable.p_text]=1
   1:   .m-options:[ctlInsertRealIndent.p_value]=0
   1:   .m-options:[_tabs.p_text]=+8
   1:   .m-options:[_insmart.p_text]=
   1:   .m-options:[_indent_with_tabs.p_value]=0
   1:   .m-options:[ctlIndent.p_value]=1
   1:   .m-options:[_surround.p_value]=1
   1:   .m-options:[ctlReindent.p_value]=0
   1:   .m-options:[_syntax_expansion.p_value]=0
   1:   .m-options:[ctlReindentAlways.p_value]=0
   1:   .m-options:[_insmart_on.p_value]=0
   1:   .m-options:[_inauto.p_value]=1
   1:   .m-options:[ctlIndentSelection.p_value]=1
   1:   .m-options:[_smartp.p_value]=0
   1:   .m-functions._typename()=se.options.FormFunctions
   1:   .m-functions.ExportSettings=13818
   1:   .m-functions.ImportSettings=0
   1:   .m-functions.BuildExportSummary=13813
   1:   .m-functions.ImportSummary=0
   1:   .m-functions[4]=0
   1:   .m-functions[5]=13817
   1:   .m-functions[6]=0
   1:   .m-state=fundamental
   1:   .m-controls=<empty>
   p_window_id: 14
   p_object: OI_FORM
   p_name: _options_config_tree_form
OptionsConfigTree.ex 1352 se.options.OptionsConfigTree.apply(
   1:   ._typename()=se.options.OptionsConfigTree
   1:   .m-treeHandle=81
   1:   .m-frameHandle=11
   1:   .m-helpHandle=86
   1:   .m-currentPanelWid=93
   1:   .m-currentCaption=Languages > Miscellaneous Languages > Plain Text > Indent
   1:   .m-currentTreeIndex=36
   1:   .m-relations._typename()=se.options.RelationTable
   1:   .m-relations.m-table:[tree1]=11
   1:   .m-relations.m-table:[xml3842]=45
   1:   .m-relations.m-table:[tree2]=506
   1:   .m-relations.m-table:[xml10383]=36
   1:   .m-relations.m-table:[tree3]=835
   1:   .m-relations.m-table:[tree4]=1689
   1:   .m-relations.m-table:[xml3845]=6
   1:   .m-relations.m-table:[tree5]=1832
   1:   .m-relations.m-table:[xml10386]=37
   1:   .m-relations.m-table:[tree6]=3845
   1:   .m-relations.m-table:[tree7]=4388
   1:   .m-relations.m-table:[xml3688]=23
   1:   .m-relations.m-table:[xml3628]=22
   1:   .m-relations.m-table:[tree8]=4502
   1:   .m-relations.m-table:[tree9]=4564
   1:   .m-relations.m-table:[xml3830]=32
   1:   .m-relations.m-table:[xml10413]=42
   1:   .m-relations.m-table:[xml3833]=33
   1:   .m-relations.m-table:[xml3836]=34
   1:   .m-relations.m-table:[xml506]=2
   1:   .m-relations.m-table:[xml10417]=43
   1:   .m-relations.m-table:[xml3839]=44
   1:   .m-relations.m-table:[xml10379]=35
   1:   .m-relations.m-table:[xml10401]=40
   1:   .m-relations.m-table:[xml3821]=29
   1:   .m-relations.m-table:[xml4502]=8
   1:   .m-relations.m-table:[xml3383]=21
   1:   .m-relations.m-table:[xml3824]=30
   1:   .m-relations.m-table:[xml4564]=9
   1:   .m-relations.m-table:[xml835]=3
   1:   .m-relations.m-table:[xml10407]=41
   1:   .m-relations.m-table:[xml3827]=31
   1:   .m-relations.m-table:[xml10491]=46
   1:   .m-relations.m-table:[xml1852]=15
   1:   .m-relations.m-table:[xml4773]=12
   1:   .m-relations.m-table:[tree10]=4706
   1:   .m-relations.m-table:[xml11]=1
   1:   .m-relations.m-table:[tree11]=4766
   1:   .m-relations.m-table:[tree12]=4773
   1:   .m-relations.m-table:[tree13]=1836
   1:   .m-relations.m-table:[tree14]=1844
   1:   .m-relations.m-table:[tree15]=1852
   1:   .m-relations.m-table:[xml4706]=10
   1:   .m-relations.m-table:[xml4766]=11
   1:   .m-relations.m-table:[tree16]=2319
   1:   .m-relations.m-table:[tree17]=2549
   1:   .m-relations.m-table:[tree18]=3133
   1:   .m-relations.m-table:[tree19]=3297
   1:   .m-relations.m-table:[xml3790]=25
   1:   .m-relations.m-table:[tree20]=3353
   1:   .m-relations.m-table:[tree21]=3383
   1:   .m-relations.m-table:[tree22]=3628
   1:   .m-relations.m-table:[xml3793]=26
   1:   .m-relations.m-table:[tree23]=3688
   1:   .m-relations.m-table:[xml3353]=20
   1:   .m-relations.m-table:[tree24]=3787
   1:   .m-relations.m-table:[tree25]=3790
   1:   .m-relations.m-table:[xml3796]=27
   1:   .m-relations.m-table:[tree26]=3793
   1:   .m-relations.m-table:[tree27]=3796
   1:   .m-relations.m-table:[xml3297]=19
   1:   .m-relations.m-table:[tree28]=3799
   1:   .m-relations.m-table:[tree29]=3821
   1:   .m-relations.m-table:[xml3799]=28
   1:   .m-relations.m-table:[tree30]=3824
   1:   .m-relations.m-table:[tree31]=3827
   1:   .m-relations.m-table:[tree32]=3830
   1:   .m-relations.m-table:[tree33]=3833
   1:   .m-relations.m-table:[tree34]=3836
   1:   .m-relations.m-table:[tree35]=10379
   1:   .m-relations.m-table:[tree36]=10383
   1:   .m-relations.m-table:[tree37]=10386
   1:   .m-relations.m-table:[xml3787]=24
   1:   .m-relations.m-table:[tree38]=10395
   1:   .m-relations.m-table:[tree39]=10398
   1:   .m-relations.m-table:[xml2549]=17
   1:   .m-relations.m-table:[tree40]=10401
   1:   .m-relations.m-table:[tree41]=10407
   1:   .m-relations.m-table:[tree42]=10413
   1:   .m-relations.m-table:[tree43]=10417
   1:   .m-relations.m-table:[tree44]=3839
   1:   .m-relations.m-table:[tree45]=3842
   1:   .m-relations.m-table:[tree46]=10491
   1:   .m-relations.m-table:[xml2319]=16
   1:   .m-relations.m-table:[xml1844]=14
   1:   .m-relations.m-table:[xml4388]=7
   1:   .m-relations.m-table:[xml1689]=4
   1:   .m-relations.m-table:[xml1832]=5
   1:   .m-relations.m-table:[xml3133]=18
   1:   .m-relations.m-table:[xml10395]=38
   1:   .m-relations.m-table:[xml1836]=13
   1:   .m-relations.m-table:[xml10398]=39
   1:   .m-parser._typename()=se.options.OptionsXMLParser
   1:   .m-parser.m-templates:[language_setup_indent]._typename()=se.options.DialogEmbedder
   1:   .m-parser.m-templates:[language_setup_indent].m-options=(null)
   1:   .m-parser.m-templates:[language_setup_indent].m-functions._typename()=se.options.FormFunctions
   1:   .m-parser.m-templates:[language_setup_indent].m-controls=(null)
   1:   .m-parser.m-propTemplates=(null)
   1:   .m-parser.m-configParser._typename()=se.options.OptionsConfigurationXMLParser
   1:   .m-data._typename()=se.options.OptionsData
   1:   .m-data.m-panelInfo:[10383]._typename()=se.options.DialogEmbedder
   1:   .m-data.m-panelInfo:[10383].m-functions._typename()=se.options.FormFunctions
   1:   .m-navigator._typename()=se.options.OptionsHistoryNavigator
   1:   .m-navigator.m-history[0]._typename()=se.options.HistoryNode
   1:   .m-propGetSet._typename()=se.options.PropertyGetterSetter
   1:   .m-modified:[10383]._typename()=se.options.ModifiedNode
   1:   .m-depTree._typename()=se.options.DependencyTree
   2:   1
   3:   1
   p_window_id: 14
   p_object: OI_FORM
   p_name: _options_config_tree_form
optionsxml.ex 20937 _options_tree_form._ctl_apply.\x{1426}()   p_window_id: 14   p_object: OI_FORM   p_name: _options_config_tree_form

Sandra

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 754
  • Hero Points: 36
This has been fixed in the next version, 14.0.2, which will be officially out very soon.  If you need a patch to get it to work in 14.0.1 for the time being, go to line 5830 of setupext.e in your macros directory (INSTALLDIR\macros\setupext.e).

Change the line from this:
Code: [Select]
if (langInfo.SyntaxIndent != _insmart.p_text) {to this:
Code: [Select]
if (_insmart.p_enabled && langInfo.SyntaxIndent != _insmart.p_text) {Then go to Macro > Load Module and select setupext.e (or just press F12 in CUA Emulation).  Then you should be able to change indent settings for Plain Text.

Viybel

  • Junior Community Member
  • Posts: 3
  • Hero Points: 1
It works. Thank!

Vianney

lastlion78

  • Junior Community Member
  • Posts: 3
  • Hero Points: 0
Thank you for this fix, very helpful.