为什么eclipse找不到我的功能?

时间:2016-10-25 14:09:13

标签: eclipse plugins

我已经编写了一些eclipse插件并将它们整合到了特色中。如果功能只包含插件,则一切正常。但如果我在功能中包含功能,则会出现以下错误:

SELECT DISTINCT CustomerID, FirstName, LastName, Total
  FROM ( SELECT id AS CustomerID, FirstName, LastName FROM Customers ) AS c
       NATURAL JOIN
       ( SELECT id AS OrderID, CustomerID FROM Orders ) AS o
       NATURAL JOIN
       ( SELECT OrderID, SUM( Product1 + Product2 + Product3 ) AS Total
          FROM Products 
         GROUP
            BY OrderID ) AS p;

其中featuerName是包含的功能。我修改了附带功能的版本号但没有成功。

这里包含了feature.xml

Unable to find feature "<featureName>" with version in range [2.6.0,2.6.1).

这里包含了feature.xml

    <?xml version="1.0" encoding="UTF-8"?>
<feature
      id="de.mdsd.xtext.support.validator.model.sdk"
      label="Xtext Support Validator Generator Feature"
      version="2.6.0.qualifier"
      provider-name="XXX Software">

   <description>
      This plugin provides a small DSL for describing and generating an Xtext validator class.
   </description>

   <includes
         id="de.mdsd.xtext.support.sdk.sdk"
         version="[2.6.1,3.0.0)"/>

   <requires>
      <import plugin="org.eclipse.xtext"/>
      <import plugin="org.eclipse.equinox.common" version="3.5.0" match="greaterOrEqual"/>
      <import plugin="org.eclipse.emf.codegen.ecore" version="2.10.2" match="greaterOrEqual"/>
      <import plugin="de.mdsd.xtext.swtch.model" version="2.0.0" match="greaterOrEqual"/>
      <import plugin="org.eclipse.xtext.util"/>
      <import plugin="org.eclipse.emf.ecore"/>
      <import plugin="org.eclipse.emf.common"/>
      <import plugin="org.eclipse.xtext.xbase.lib"/>
      <import plugin="org.antlr.runtime"/>
      <import plugin="org.eclipse.xtext.common.types"/>
      <import plugin="org.apache.log4j"/>
      <import plugin="org.eclipse.xtext.ui"/>
      <import plugin="org.eclipse.ui.editors" version="3.5.0" match="greaterOrEqual"/>
      <import plugin="org.eclipse.ui.ide" version="3.5.0" match="greaterOrEqual"/>
      <import plugin="org.eclipse.xtext.ui.shared"/>
      <import plugin="org.eclipse.ui"/>
      <import plugin="org.eclipse.xtext.builder"/>
      <import plugin="org.eclipse.xtext.common.types.ui"/>
      <import plugin="org.eclipse.xtext.ui.codetemplates.ui"/>
      <import plugin="org.eclipse.compare"/>
      <import plugin="de.mdsd.xtext.support.sdk" version="2.1.0" match="greaterOrEqual"/>
      <import plugin="de.mdsd.xtext.up.name.providerswitch.model" version="1.4.0" match="greaterOrEqual"/>
   </requires>

   <plugin
         id="de.mdsd.xtext.support.validator.model"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

   <plugin
         id="de.mdsd.xtext.support.validator.model.ui"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

</feature>

出现此错误的原因是什么?

1 个答案:

答案 0 :(得分:0)

您无法在[2.6.1,3.0.0)的{​​{1}}元素中使用includes等版本范围。

指定要包含的功能的确切版本(feature.xml)或指定2.6.1.qualifier以不检查版本。