我很高兴MPLAB XV3.40现在有了一个复制项目的方法。在先前版本中缺少这一点是一个非常重要的缺点。不幸的是,它看起来很挑剔。我有一个基于V2.00的和声项目叫做BLIKTEST2。它闪烁着一个LED。我想尝试复制项目,并添加附加的协调功能,包括Web服务器。所以我把它复制到一个名为WebTest的新项目中。然后我遇到了一个问题,破坏了这个新的项目目录(尝试启动MHC而不将WebTest设置为主项目,并且挂起IDE),所以我删除了WebTest并尝试重新启动。现在,MPLAX无法创建一个名为WebTest2的复制BLink Test2。我得到一个错误对话框,上面写着:“无法移动项目,原因:空”,我试过多次,我删除了WebTest并尝试了更多。没有乐趣。它确实成功地创建了WebTest固件WebTestDirectory,其中包含Bug、Debug、DIST和NBPoT。在这个层次结构中总共创建了20个文件和20个文件夹,但是似乎没有复制任何源文件。我突然想到,也许BlinkTest2的第一个副本以某种方式损坏了BlinkTest2,从而阻止IDE再次复制它。然而,我无法验证这一点,因为自从上次提交到我的版本控制系统以来,我就已经做了其他MHC的变化。
以上来自于百度翻译
以下为原文
I am glad MPLAB X v3.40 now has a way to copy a project. The lack of this in prior versions was a pretty significant shortcoming. Unfortunately it seems finicky.
I had a H
ARMony v2.00b-based project called BlinkTest2. It blinks a LED. I wanted to try copying the project and adding addi
tional Harmony features, including web server. So I copied it to a new project called WebTest. Then I ran into a problem that corrupted this new project directory (tried to launch MHC without setting WebTest as main project and it hanged the IDE), so I deleted WebTest and attempted to start over. Now, MPLAB X fails to make a copy BlinkTest2 called WebTest. I get an error dialog that reads: "Cannot move project, reason: null" I've tried multiple times, I've erased WebTest and tried some more. No joy.
It does succeed to create WebTestfirmwareWebTest directory containing build, debug, dist, and nbproject. A total of 20 files and 20 folders are created inside this hierarchy, though no source files seem to get copied.
It occurred to me that perhaps the first copy of BlinkTest2 somehow corrupted BlinkTest2 in a way that prevents the IDE from copying it again. However I cannot verify this because I have made other MHC changes in it since the last commit to my version control system.
Attached Image(s)