Noam-Dori / ros-integrate

Extends IntelliJ-Based IDEs with ROS specific development tools
Apache License 2.0
22 stars 3 forks source link

Exception in plugin ROS Support (0.1.6) #68

Closed khssnv closed 2 years ago

khssnv commented 2 years ago

Describe the bug Exception in plugin ROS Support (0.1.6).

To Reproduce Steps to reproduce the behavior:

  1. Install the plugin.
  2. Open any project to get an error message.

Environment Information:

Stack Trace 1-stacktrace.txt 2-stacktrace.txt 3-stacktrace.txt 3-induced.txt 4-stacktrace.txt 5-stacktrace.txt 6-stacktrace.txt

Noam-Dori commented 2 years ago

The NPE actually pointed to a much bigger issue: all plugin services (save for few plugin components) were not loaded by the plugin.xml. This was caused by an improper use of XInclude in the plugin.xml. XInclude, which allows importing tags from other documents, should be used at the root on the including document, and not deeper within the tree (which I did). Fixing this problem allowed the components to load.

The fix should be available for the next release, 0.1.7, and is already available here.

Fix was tested on IntelliJ IDEA Community 2021.2 on Windows 10.