由于无法实例化类 XXX,推进生成器失败

发布于 2024-10-06 20:31:37 字数 1122 浏览 1 评论 0原文

过去两个月我一直在构建一个新项目,直到前几天我可能已经运行了 propel-gen om 10-15 次,没有失败。我做了一个快速的梨升级,然后推进-gen om,似乎得到了一个我不明白的错误。

我在两台 Windows 机器和一台 Linux 机器上尝试过,但总是遇到同样的错误。

首先,是否有人有一个完整的项目可以工作,我可以尝试构建以排除这与 phing 相关的可能性。

从这里有什么明显的吗?

我的 build.properties 看起来这个

#start of file
# Database driver

propel.project = Cream

propel.targetPackage = {propel.project}


propel.database = mysql

project.home = C:\xampp\htdocs\Cream
project.build = ${project.home}/propel

propel.output.dir = ${project.home}
propel.php.dir = ${propel.output.dir}/ActiveRecord
propel.phpconf.dir = ${propel.output.dir}/ActiveRecord/config
propel.sql.dir = ${project.build}/sql


propel.database.url = mysql:host=localhost;dbname=cream
propel.database.user = root
propel.database.password = 

propel.addGenericAccessors = true
propel.addGenericMutators = true
propel.addTimeStamp = true
propel.addIncludes = false
#end of file

错误消息有很多

could not instantiate class propelSQLTask
could not instantiate class propelSchemaReverseTask
could not instantiate class propelDataSQLTask

等等

I have been building a new project for the last 2 months, I probably have ran the propel-gen om 10-15 times without fail until the other day. I did a quick pear upgrade and then propel-gen om and seem to get an error i dont understand.

I have tried on two windows machines and one linux machine and I keep getting the same error.

First off does anyone have a complete project which works, that I can try and build to rule out the possibility this is phing related.

anything obvious from this?

my build.properties looks like this

#start of file
# Database driver

propel.project = Cream

propel.targetPackage = {propel.project}


propel.database = mysql

project.home = C:\xampp\htdocs\Cream
project.build = ${project.home}/propel

propel.output.dir = ${project.home}
propel.php.dir = ${propel.output.dir}/ActiveRecord
propel.phpconf.dir = ${propel.output.dir}/ActiveRecord/config
propel.sql.dir = ${project.build}/sql


propel.database.url = mysql:host=localhost;dbname=cream
propel.database.user = root
propel.database.password = 

propel.addGenericAccessors = true
propel.addGenericMutators = true
propel.addTimeStamp = true
propel.addIncludes = false
#end of file

error message is a lot of

could not instantiate class propelSQLTask
could not instantiate class propelSchemaReverseTask
could not instantiate class propelDataSQLTask

etc etc

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

云淡风轻 2024-10-13 20:31:37

问题原来是 propel 不支持最新的 phing,您必须降级您的 phing 才能解决问题

pear uninstall phing/phing
pear install phing/phing-2.4.2

the issue turned out to be propel does not support the latest phing you must downgrade your phing in order to solve the issue

pear uninstall phing/phing
pear install phing/phing-2.4.2
-黛色若梦 2024-10-13 20:31:37

只是一个小小的澄清 - 不兼容是相反的。 Propel 打算与最新版本的 Phing 配合使用,但最新版本的 Phing 打破了向后兼容性。据我所知,这个问题将在新版本的 Phing 中得到纠正——该版本可能已经发布。

Just a minor clarification - the incompatibility is the other way around. Propel intends to work with the latest version of Phing, but the latest version of Phing broke backwards compatibility. I understand this will be rectified in a new version of Phing -- which may already be released.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文