diff --git a/DEVELOPER.md b/DEVELOPER.md new file mode 100644 index 0000000..850d5bb --- /dev/null +++ b/DEVELOPER.md @@ -0,0 +1,43 @@ + +# Developer notes + +## Development + +### installing tools needed + +TODO some commands/packages + +### build + +TODO command + +### run tests locally + +TODO command + +### testing plugin in eclipse + +TODO write description + +## release process + +### version + + * Update version in the files see f260c53 + TODO right now this is done manually can it be done more automated? + * create a tag in the repo + * create a release in github + +### updating files + +download artifact "cppcheclipse-repository" from the github action "Java CI" +unzip the artifact and upload files to https://files.cppchecksolutions.com/cppcheclipse/ folder + +### publish plugin in marketplace + +to make sure that proper version info etc is shown in marketplace. +https://marketplace.eclipse.org +login +goto cppcheclipse plugin +click on "Edit" button at the top +Add version diff --git a/com.googlecode.cppcheclipse.ui/src/com/googlecode/cppcheclipse/ui/ToolchainSettings.java b/com.googlecode.cppcheclipse.ui/src/com/googlecode/cppcheclipse/ui/ToolchainSettings.java index 461edb7..34550f8 100644 --- a/com.googlecode.cppcheclipse.ui/src/com/googlecode/cppcheclipse/ui/ToolchainSettings.java +++ b/com.googlecode.cppcheclipse.ui/src/com/googlecode/cppcheclipse/ui/ToolchainSettings.java @@ -179,7 +179,12 @@ protected Collection getIncludes(boolean onlyUserDefined) { if (includePathSetting instanceof ACPathEntry) { // let CDT do the resolution for all ACPathEntries which should cover all include settings ACPathEntry includePathEntry = (ACPathEntry) includePathSetting; - includePath = includePathEntry.getLocation().toFile(); + IPath location = includePathEntry.getLocation(); + if (location == null) { + continue; + } + + includePath = location.toFile(); } else { // make path absolute