Abp: Generate-proxy:Multiple modules cannot be generated

Created on 5 Sep 2020  ·  5Comments  ·  Source: abpframework/abp

An API endpoint has multiple modules
After producing one module, generate other modules will report an error
ENOTEMPTY: directory not empty, rmdir
Am I using it the wrong way?

PS D:\Document\Desktop\Mobest\mobest-alain> abp generate-proxy -m cms
......(the right generate )

PS D:\Document\Desktop\Mobest\mobest-alain> abp generate-proxy -m asm
[10:54:42 INF] ABP CLI (https://abp.io)
[10:54:42 INF] Version 3.1.0 (Stable)
? Please enter backend api name, a.k.a. remoteServiceName. (default: "default") 
ENOTEMPTY: directory not empty, rmdir 'D:Document\Desktop\Mobest\mobest-alain\src\app\proxy\cms\organizations'

This is the API definition screenshot
2020-09-05_111237

high problem

Most helpful comment

Hi @hexianggui,

Are you running the command as administrator?

Sorry for the late reply!

I think I've figured it out.
Error executing command when I open project with VS.
Successful execution, when I close the project, execute the command using the PwoerShell.
So this has nothing to do with ABP!
Runing the command as administrator, or close all IO for the project.

Using vs
1
Using powershell
2

thank you very much!

All 5 comments

Is your Angular application running? If so, can you stop it and try again?
@armanozak can you check this?

I don’t think this is about a running app. We have generated several modules in succession and have never received that error. The command even removes everything and regenerates all modules.

This error may be sth. about folder permissions, but I cannot reproduce it. Can you @hikalkan ?

I also haven't had this error before. I generally stop the angular app before proxy generation.

Hi @hexianggui,

Are you running the command as administrator?

Hi @hexianggui,

Are you running the command as administrator?

Sorry for the late reply!

I think I've figured it out.
Error executing command when I open project with VS.
Successful execution, when I close the project, execute the command using the PwoerShell.
So this has nothing to do with ABP!
Runing the command as administrator, or close all IO for the project.

Using vs
1
Using powershell
2

thank you very much!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hikalkan picture hikalkan  ·  3Comments

hikalkan picture hikalkan  ·  3Comments

hikalkan picture hikalkan  ·  3Comments

hikalkan picture hikalkan  ·  3Comments

ChangYinShung picture ChangYinShung  ·  3Comments