- 
                Notifications
    You must be signed in to change notification settings 
- Fork 177
FAQ
        Yuchen Wang edited this page Oct 8, 2021 
        ·
        12 revisions
      
    - How to login the National cloud
- 
In IntelliJ, there is a plugin setting to allow user switching between cloud easily.  
- 
In Eclipse, you need to: - 
Create a new file “AadProvider.json” under the following folder: <userhome>\.AzureToolsForEclipse 
- 
Add the following content into the file(you shall change the CHINAto the cloud name you want to use, eg: GLOBAL, GERMAN, US_GOVERNMENT):{ "EnvironmentName": "CHINA" }
- 
Restart Eclipse 
 
- 
- Caused by: java.io.IOException: Cannot run program "func", error=2, No such file or directory
The root cause of this issue is described at https://depressiverobot.com/2016/02/05/intellij-path.html, the intellij idea is started with empty PATH so all the plugin written in Java will not be able to execute the command in path like 'func'. The solution is to run the following script on terminal and restart intellij:
curl https://gist.githubusercontent.com/depressiveRobot/9cb8f799c970f0cd57ea/raw/964253533dd46e0202c4873468b3a1ef304b0af1/osx-intellij-set-path.sh > osx-intellij-set-path.sh
chmod +x osx-intellij-set-path.sh
./osx-intellij-set-path.sh "/Applications/IntelliJ IDEA.app" "$PATH"
- How to get the function core tools path
- Windows: Please execute where funcin cmd- If you install function core tools with npm, you may get two result with where func, please use the result withfunc.cmdas the function core tools path in function run configuration.
- If you install function core tools with chocolatey, you may not able to get the path with where func, please search the func in chocolate lib folder (refer) and set the result in function run configuration.
 
- If you install function core tools with npm, you may get two result with 
- Mac/Linux: Please execute which funcin bash