clion-cppcheck
clion-cppcheck copied to clipboard
persistent line of `syntaxError` even after modification
fi if;
//
(The empty line is intentional or it will be shown as a global error)
scratch_3.cpp:1:4: error: syntax error [syntaxError]
fi if;
^
Insert a leading empty line.
//
fi if;
//
scratch_3.cpp:2:4: error: syntax error [syntaxError]
fi if;
^
A way to fix this is to CTRL+A, CTRL+X, CTRL+V the contents of the file.
Possibly related to #105.
Cppcheck is being invoked and the raw results show the correct location:
<error id="syntaxError" severity="error" msg="syntax error" verbose="syntax error" file0="/tmp/3ryvKpXz_scratch_3.cpp">
<location file="/tmp/3ryvKpXz_scratch_3.cpp" line="2" column="4"/>
</error>
Switching to a different IDE tab and back will also fix it but it also (unnecessarily) triggers Cppcheck again.