Error in SonarLint for Webstorm

Environment:

  • Java: Runtime version: 21.0.3+13-b509.15 aarch64 (JCEF 122.1.9)
    VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
  • OS: Mac OS X aarch64
  • IDE: WebStorm 2024.2.2
  • SonarLint: 10.10.0.79575


always told me that node version error.

and I can not find ts rule in activeRules

activeRules: [kubernetes:S6431, kubernetes:S6430, kubernetes:S6433, kubernetes:S6428, kubernetes:S5849, kubernetes:S6429, scala:S1479{maximum=30}, scala:S1656, scala:S1313, scala:S3776{threshold=15}, scala:S1134, scala:S1871, scala:S1135, scala:S1066, scala:S1144, scala:S1186, scala:S1481, scala:S117{format=^[_a-zA-Z][a-zA-Z0-9]*$}, scala:S3923, scala:S1125, scala:S1763, scala:S1862, scala:S1764, scala:S1940, scala:S1145, scala:S125, scala:S2068{credentialWords=password,passwd,pwd,passphrase}, scala:S4663, scala:S4144, scala:S1172, scala:S101{format=^[A-Z][a-zA-Z0-9]*$}, scala:S1192{threshold=3}, scala:S100{format=^([a-z][a-zA-Z0-9]*+(_[^a-zA-Z0-9]++)?+|[^a-zA-Z0-9]++)$}, scala:S107{Max=7}, scala:ParsingError, scala:S108, kotlin:S2695, kotlin:S4830, kotlin:S5843{maxComplexity=20}, kotlin:S6218, kotlin:S3981, kotlin:S5527, kotlin:S5846, kotlin:S1764, kotlin:S5322, kotlin:S5324, kotlin:S1125, kotlin:S1763, kotlin:S5842, kotlin:S5320, kotlin:S1481, kotlin:S2053, kotlin:S2097, kotlin:S6293, kotlin:S2175, kotlin:S4790, kotlin:S6291, kotlin:S899, kotlin:S4507, kotlin:S2123, kotlin:S4423, kotlin:S1871, kotlin:S2245, kotlin:S4663, kotlin:S1110, kotlin:S2122, kotlin:S1313, kotlin:S1874, kotlin:S6202, kotlin:S1479{maximum=30}, kotlin:S4426, kotlin:S3776{threshold=15}, kotlin:S4347, kotlin:S6363, kotlin:S1192{threshold=3}, kotlin:S6288, kotlin:S4144, kotlin:S6362, kotlin:S125, kotlin:S4738, kotlin:S3329, kotlin:S3923, kotlin:S2757, kotlin:S5869, kotlin:S1144, kotlin:S6316, kotlin:S1145, kotlin:S5547, kotlin:S1186, kotlin:S6318, kotlin:S1066, kotlin:S1143, kotlin:S5868, kotlin:S1940, kotlin:S2116, kotlin:S5542, kotlin:S6312, kotlin:S6313, kotlin:S2114, kotlin:S6314, kotlin:S1862, kotlin:S6315, kotlin:S6310, kotlin:S6311, kotlin:S6432, kotlin:S2151, kotlin:S117{format=^`?[_a-z][a-zA-Z0-9]*`?$}, kotlin:S3958, kotlin:S1656, kotlin:S6309, kotlin:S1133, kotlin:S2068{credentialWords=password,passwd,pwd,passphrase}, kotlin:S6305, kotlin:S1134, kotlin:S6306, kotlin:S5856, kotlin:S6307, kotlin:S5857, kotlin:S5850, kotlin:S6301, kotlin:S1135, kotlin:S5332, kotlin:S6300, kotlin:S1172, kotlin:S101{format=^[A-Z][a-zA-Z0-9]*$}, kotlin:S108, kotlin:S107{Max=7}, kotlin:S1128, kotlin:S1206, kotlin:S100{format=^[a-zA-Z][a-zA-Z0-9]*$}, python:S5603, python:S5724, python:S5845, python:S5727, python:S5607, python:S2053, python:S1481{regex=(_[a-zA-Z0-9_]*|dummy|unused|ignored)}, python:S3827, python:S2737, python:S5443, python:S5685, python:S2734, python:S2612, python:S5445, python:S5720{ignoredDecorators=abstractmethod}, python:S1763, python:S5842, python:S6019, python:S1764, python:S5722, python:S5843{maxComplexity=20}, python:S5042, python:S6252, python:S1134, python:S5855, python:S930, python:S1135, python:S2068{credentialWords=password,passwd,pwd,passphrase}, python:S5857, python:S6308, python:S6265, python:S5332, python:S5850, python:S4487{enableSingleUnderscoreIssues=false}, python:S6303, python:S1656, python:S6302, python:S6304, python:S1542{format=^[a-z_][a-z0-9_]*$}, python:S6317, python:S1143, python:S5747, python:S5868, python:S1144, python:S5869, python:S6319, python:S2077, python:S5905, python:S6035, python:S2638, python:S6397, python:S2757, python:S3329, python:S1700, python:S2755, python:S5864, python:S1940, python:S2115, python:S6270, python:S6275, python:S6396, python:S6395, python:S2190, python:S5756, python:S6329, python:S2245, python:S4426, python:S6328, python:S2761, python:S5914, python:S3330, python:S4828, python:S6321, python:S4143, python:S4144, python:S6323, python:S5632, python:S4423, python:S5754, python:S5996, python:S6327, python:S1313, python:S3457, python:S3699, python:S6326, python:S6281, python:S2257, python:S3984, python:S3862, python:S107{max=13}, python:S2772, python:S5527, python:S1045, python:S3981, python:S108, python:S5806, python:S5807, python:ExecStatementUsage, python:S6332, python:S905{reportOnStrings=false, ignoredOperators=<<,>>,|}, python:S4792, python:S5122, python:S6331, python:S1845, python:S3626, python:S6333, python:S4433, python:S5247, python:S4830, python:S5644, python:S5886, python:S3985, python:S1716, python:S5361, python:S6330, python:S4790, python:S2092, python:S112, python:PreIncrementDecrement, python:S3752, python:BackticksUsage, python:S5659, python:S1172, python:S6463, python:S2823, python:S3516, python:S6468, python:S1854, python:S5655, python:S3358, python:S1607, python:S5890, python:S101{format=^_?([A-Z_][a-zA-Z0-9]*|[a-z_][a-z0-9_]*)$}, python:S100{format=^[a-z_][a-z0-9_]*$}, python:S5547, python:S1066, python:S5549, python:S5704, python:S2275, python:S1186, python:S5706, python:S5707, python:S5828, python:S5708, python:S5781, python:S2836, python:S6353, python:S3923, python:S5542, python:PrintStatementUsage, python:S1226, python:S2711, python:S1862, python:S2710{classParameterNames=cls,mcs,metacls}, python:S3403, python:S2159, python:S5780, python:S116{format=^[_a-z][_a-z0-9]*$}, python:S1871, python:S4502, python:S5712, python:S1751, python:S2201, python:S5713, python:S1110, python:S5714, python:S117{format=^[_a-z][a-z0-9_]*$}, python:S4507, python:S5717, python:InequalityUsage, python:S5719, python:S6002, python:S2208, python:S1515, python:S5795, python:S6245, python:S5796, python:S5797, python:S3776{threshold=15}, python:S5799, python:S1192{threshold=3}, python:S5709, python:S125{exception=(fmt|py\w+):.*}, secrets:S6292, secrets:S6334, secrets:S6335, secrets:S6336, secrets:S6337, secrets:S6338, secrets:S6290, docker:S6470, docker:S6471, docker:S6472, docker:S6473{ports=22, 23, 3389, 5800, 5900}, docker:S6476, docker:S5332, docker:S6469, ruby:ParsingError, ruby:S101{format=^[A-Z][a-zA-Z0-9]*$}, ruby:S100{format=^(@{0,2}[\da-z_]+[!?=]?)|([*+-/%=!><~]+)|(\[]=?)$}, ruby:S1172, ruby:S1192{threshold=3}, ruby:S1110, ruby:S2068{credentialWords=password,passwd,pwd,passphrase}, ruby:S4663, ruby:S117{format=^(@{0,2}[\da-z_]+[!?=]?)|([*+-/%=!><~]+)|(\[]=?)$}, ruby:S4144, ruby:S1313, ruby:S3776{threshold=15}, ruby:S1134, ruby:S1871, ruby:S1135, ruby:S1479{maximum=30}, ruby:S1656, ruby:S131, ruby:S1481, ruby:S108, ruby:S107{Max=7}, ruby:S1066, ruby:S1186, ruby:S1763, ruby:S1862, ruby:S1764, ruby:S1940, ruby:S1145, ruby:S2757, ruby:S3923, Web:DoctypePresenceCheck, Web:ImgWithoutAltCheck, Web:PageWithoutTitleCheck, Web:TableWithoutCaptionCheck, Web:ServerSideImageMapsCheck, Web:S4645, Web:S1134, Web:S5257, Web:S1135, Web:S5258, Web:FieldsetWithoutLegendCheck, Web:S5255, Web:S5256, Web:S5254, Web:S4084, Web:ItemTagNotWithinContainerTagCheck, Web:MetaRefreshCheck, Web:S1827, Web:LinkToImageCheck, Web:FrameWithoutTitleCheck, Web:S5725, Web:FlashUsesBothObjectAndEmbedCheck, Web:UnsupportedTagsInHtml5Check, Web:S5148, Web:S5264, Web:TableHeaderHasIdOrScopeCheck, Web:S5260, Web:AvoidCommentedOutCodeCheck, xml:S2647, xml:S3439, xml:S4507, xml:S1778, xml:S3438, xml:S3822, xml:S1135, xml:S3422, xml:S1134, xml:S2068{credentialWords=password,passwd,pwd,passphrase}, xml:S3355, xml:S3421, xml:S6359, xml:S6358, xml:S5604, xml:S6361, xml:S125, xml:S5594, xml:S5122, xml:S5332, xml:S5322, xml:S3330, xml:S3374, xml:S3281, php:S103{maximumLineLength=120}, php:S100{format=^[a-z][a-zA-Z0-9]*$}, php:S101{format=^[A-Z][a-zA-Z0-9]*$}, php:S5693{fileUploadSizeLimit=8000000}, php:S107{max=7, constructorMax=7}, php:S1808{closing_curly_brace=true, function_calls_arguments_indentation=true, one_space_for=true, closure_format=true, function_declaration_arguments_indentation=true, open_curly_brace_control_structures=true, one_space_after=true, open_curly_brace_classes_functions=true, no_space_method_name=true, interfaces_indentation=true, one_space_before=true, use_after_namespace=true, extends_implements_line=true, space_comma=true, foreach_space=true, use_blank_line=true, namespace_blank_line=true, no_space=true}, php:S5332, php:S105, php:S5850, php:S1131, php:S2187, php:S108, php:S907, php:S905, php:S1656, php:S4524, php:S1134, php:S1135, php:S2068{credentialWords=password,passwd,pwd}, php:S5855, php:S110{max=5}, php:S5857, php:S1779, php:S113, php:S6393, php:S114{format=^[A-Z][a-zA-Z0-9]*$}, php:S6395, php:S112, php:S6396, php:S117{format=^[a-z][a-zA-Z0-9]*$}, php:S6397, php:S6035, php:S115{format=^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$}, php:S116{format=^[a-z][a-zA-Z0-9]*$}, php:S1142{max=3}, php:S1780, php:S2077, php:S2755, php:S1788, php:S1301, php:S2115, php:S1940, php:S1145, php:S2234, php:S1784, php:S1264, php:S1781, php:S1144, php:S5863, php:S121, php:S2757, php:S5868, php:S5869, php:S125, php:S128, php:S6001, php:S6002, php:S127, php:S1075, php:S2681, php:S3011, php:S2041, php:S1192{minimal_literal_length=5, threshold=3}, php:S1116, php:S1479{max=30}, php:S3415, php:S1599, php:S3776{threshold=15}, php:S4502, php:S1871, php:S2201, php:S1751, php:S1110, php:S2166, php:S131, php:S5713, php:S1998, php:S4507, php:S1757, php:S5042, php:S138{max=150}, php:S930, php:S1481, php:S2053, php:S1523, php:S1765, php:S2612, php:S1766, php:S1125, php:S1488, php:S1763, php:S1126, php:S1764, php:S2699, php:S1124, php:S5842, php:S5843{maxComplexity=20}, php:S6019, php:S2737, php:S5328, php:S6341, php:S6343, php:S6344, php:S6345, php:S1172, php:S1854, php:S1697, php:S3358, php:S6346, php:S6347, php:S6348, php:S6349, php:S5779, php:S6353, php:S5542, php:S1185, php:S836, php:S1186, php:S3360, php:S1226, php:S3801, php:S1862, php:S5708, php:S1068, php:S1066, php:S5785, php:S1109, php:S5547, php:S3923, php:S6323, php:S3330, php:S4144, php:S4143, php:S4824, php:S4426, php:S1313, php:S3699, php:S2003, php:S2245, php:S3973, php:S2004{max=3}, php:S3972, php:S4423, php:S1155, php:S1793, php:S2123, php:S2761, php:S5994, php:S5632, php:S5996, php:S6326, php:S5876, php:S4828, php:S6328, php:S5911, php:S5361, php:S6331, php:S5122, php:S2010, php:S4792, php:S2251, php:S4790, php:S2092, php:S1600, php:S4833, php:S2014, php:S3984, php:S5808, php:S4830, php:S4433, php:S1045, php:S3981, php:S1848, php:S1607, php:S6339, php:S1605, php:S1448{countNonpublicMethods=true, maximumMethodThreshold=20}, php:S5527, php:S1603, php:S3626, terraform:S6321, terraform:S6364{backup_retention_duration=7}, terraform:S6400, terraform:S6245, terraform:S6402, terraform:S6401, terraform:S4423, terraform:S6327, terraform:S6404, terraform:S6249, terraform:S6403, terraform:S6281, terraform:S6329, terraform:S6406{max=5}, terraform:S6405, terraform:S6408, terraform:S6407, terraform:S6409, terraform:S6270, terraform:S6273{format=^([A-Z][A-Za-z]*:)*([A-Z][A-Za-z]*)$}, terraform:S6275, terraform:S6317, terraform:S6319, terraform:S6387, terraform:S6265, terraform:S5332, terraform:S6388, terraform:S6303, terraform:S6302, terraform:S6304, terraform:S6381, terraform:S6380, terraform:S6383, terraform:S6382, terraform:S6385, terraform:S6308, terraform:S6255, terraform:S6332, terraform:S6375, terraform:S6378, terraform:S6333, terraform:S6410, terraform:S6413{minimum_log_retention_days=14}, terraform:S6258, terraform:S6379, terraform:S6412, terraform:S6414, terraform:S6330, terraform:S6252, cloudformation:S6317, cloudformation:S6319, cloudformation:S6258, cloudformation:S6332, cloudformation:S6333, cloudformation:S6294, cloudformation:S6273{format=^([A-Z][A-Za-z]*:)*([A-Z][A-Za-z]*)$}, cloudformation:S6295, cloudformation:S6252, cloudformation:S6275, cloudformation:S6330, cloudformation:S6270, cloudformation:S6329, cloudformation:S6308, cloudformation:S6302, cloudformation:S6303, cloudformation:S6249, cloudformation:S6304, cloudformation:S6327, cloudformation:S6265, cloudformation:S6364{backup_retention_duration=7}, cloudformation:S4423, cloudformation:S6321, cloudformation:S5332, cloudformation:S6245, cloudformation:S6281]

Hello @zhang_p, there’s an issue with how SonarLint loads Node.js. Whenever this settings dialog is opened, it will load the default Node.js on your machine.

As a workaround, you can change the Node.js path in the SonarLint settings, save, and exit the dialog. If you do not re-open the settings, it should work on the next restart of your IDE.

We have this and this bug tickets for reference. We will fix them for the next release. Sorry for the inconvenience.

1 Like

Thank you so much, I removed the specified node path and restarted Webstorm, everything ok.
Looking forward to the new sonarlint plugin version.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.