Description

Creating a new custom plugin in the root location of a drive results in the project being unable to open or build. An error message appears that states that the plugin was found in two locations, and that plugin names must be unique. However, when looking at the error message, the two locations where it says the plugin was found are the same location:

ERROR: Found 'MyPlugin' plugin in two locations (D:\MyProject\Plugins\MyPlugin\MyPlugin.uplugin and D:\MyProject\Plugins\MyPlugin\MyPlugin.uplugin). Plugin names must be unique.

This process worked successfully in 4.13.2 (CL 3172292), and projects upgraded from 4.13 to 4.14 are said to work fine as well. Only new projects created in 4.14 show this behavior. The same results are seen in Main (CL 3209754).

Steps to Reproduce
  1. Create a new code project using the Basic Code template without starter content.
    • Make sure the project is created at the root level of your drive (eg. D:\MyProject\...).
  2. Build the project in Visual Studio.
  3. Once the build is complete, close Visual Studio.
  4. Open the project in the Editor.
  5. Add a new custom plugin to the project.
  6. When the Editor prompts you to restart the Editor to in order to be able to use the new plugin, close the Editor.
    • Note: For the purposes of this repro, do not choose the option to restart the Editor, though the same end result will occur.
  7. Right-click on the project's .uproject file and choose the Generate Visual Studio project files option.

RESULT:
The Generate Project Files process fails and displays the error message: "ERROR: Found 'MyPlugin' plugin in two locations (D:\MyProject\Plugins\MyPlugin\MyPlugin.uplugin and D:\MyProject\Plugins\MyPlugin\MyPlugin.uplugin). Plugin names must be unique."

EXPECTED:
The Generate Project Files process completes successfully.

WORKAROUND:
Creating the project in a folder one level up from the root location on the drive seems to resolve the issue (eg. D:\MyUEProjects\MyProject).

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

1
Login to Vote

Fixed
ComponentUE - Foundation - Cpp Tools - Plugin System
Affects Versions4.144.15
Target Fix4.15
Fix Commit3185126
Main Commit3229477
CreatedNov 25, 2016
ResolvedNov 28, 2016
UpdatedSep 4, 2018
View Jira Issue