Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

多应用模式下,-D参数不生效? #5

Open
Moxyu opened this issue Jan 28, 2022 · 2 comments
Open

多应用模式下,-D参数不生效? #5

Moxyu opened this issue Jan 28, 2022 · 2 comments

Comments

@Moxyu
Copy link

Moxyu commented Jan 28, 2022

image

我尝试了以上几种使用方法,没有报错,但是Model模型中也没任何修改。

我将-D替换为--dir,也是一样的情况

image

直接指定模型是正常的

@joker9657
Copy link

joker9657 commented Dec 27, 2022

@Moxyu 一模一样的问题,看下源码就知道了。
$dir = $this->app->getBasePath() . $dir
就是上述这行代码,所以多应用下你的命令需要去掉app
php think ide-helper:model -D="agent/model"
#2 这个 issue 说的也是这个问题。

@LronBoy
Copy link

LronBoy commented Nov 15, 2023

@Moxyu 一模一样的问题,看下源码就知道了。 $dir = $this->app->getBasePath() . $dir 就是上述这行代码,所以多应用下你的命令需要去掉app php think ide-helper:model -D="agent/model" #2 这个 issue 说的也是这个问题。

按你这个写法还是不生效啊
20231115163002

应该换成
php think ide-helper:model -D "agent/model"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants