In my gradle project, I am using Dropwizard Crypto for encrypting passwords. I have added the passphrase to IntelliJ env variable and when running "gradlew run" task got the error that can't decrypt.
I have also added the env variable to ~/.bash_profile and run the IntelliJ from terminal and got same error. It works perfectly fine on Windows but on Mac not working (My os is Sierra 10.12)
I have tried running the gradlew run task from terminal and got same error. Any help appreciated.
It should probably be in
~/.bash_profile (with a dot)
or
~/.profile
Try to
export IntelliJ=passphrase
from a terminal session and run gradlew from the same session.
Related
I installed miniconda on our CentOS cluster and it all went fine. Then I asked miniconda to create a python 3.8 environment, and it went fine. However, when I try to activate the environment, I get the following error:
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run
$ conda init <SHELL_NAME>
I verified, and it's a bash environment. So I ran conda init bash and I got the following outputs:
no change /MyPath/miniconda3/condabin/conda
no change /MyPath/miniconda3/bin/conda
no change /MyPath/miniconda3/bin/conda-env
no change /MyPath/miniconda3/bin/activate
no change /MyPath/miniconda3/bin/deactivate
no change /MyPath/miniconda3/etc/profile.d/conda.sh
no change /MyPath/miniconda3/etc/fish/conf.d/conda.fish
no change /MyPath/miniconda3/shell/condabin/Conda.psm1
no change /MyPath/miniconda3/shell/condabin/conda-hook.ps1
no change /MyPath/miniconda3/lib/python3.9/site-packages/xontrib/conda.xsh
no change /MyPath/miniconda3/etc/profile.d/conda.csh
no change /home/users/me/.bashrc
No action taken.
So nothing happens. And when I try to activate the new environment, then I still get the first error.
Any idea how I can fix this?
[Solution] Thanks to the answer below, the issue was that despite testing that I was running/using a bash, I still have to run "bash" in the command line before activating model.
have you tried manually adding to ~/.bashrc?
add export PATH="/home/username/miniconda/bin:$PATH" in your bashrc file. make sure to replace /home/username/miniconda with your actual path now save the file, quit and reopen the terminal should work I guess.
Using MacOS Catalina. Installed IntelliJ. Maven works fine but in terminal mvn comand is not found. How to use IntelliJs maven in terminal?
Locating mvn installed using IntelliJ
If you are specifically looking for mvn location, installed using IntelliJ on MacOS: /Applications/IntelliJ IDEA CE.app/Contents/plugins/maven/lib/mvn
Executing mvn from terminal
Now, if you want to execute mvn from terminal, you need to add to your path.
Assuming that you'are using zshrc, which is my case, you'll need to add the following command to ~/.zshrc
export PATH="$PATH:/Applications/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3/bin"
Now, reopen your terminal, and you can call mvn.
Obs.: Thanks to nbro's answer
Solving "Permission Denied"
If you try to execute mvn and get "Permission Denied", you need to give execution permission:
chmod +x "/Applications/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3/bin/mvn"
In my case, I added the following 2 commands to ~/.zshrc (which is what I am using)
export PATH="/Applications/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3/bin:$PATH"
# Otherwise we get a "permission denied"
chmod +x "/Applications/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3/bin/mvn"
Now, I can call mvn from the terminal.
On linux (Ubuntu) when installed by toolbox, it might be something like this:
/home/<username>/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/211.7142.45/plugins/maven/lib/..
In Windows You may find Idea location by env variable
PS > Get-ChildItem env:"Intellij IDEA"
Name Value
---- -----
IntelliJ IDEA C:\Users\unknownuser\AppData\Local\JetBrains\IntelliJ IDEA 2020.3.4\bin;
then use M2_HOME env variable to store related maven path
C:\Users\unknownuser\AppData\Local\JetBrains\IntelliJ IDEA 2020.3.4\plugins\maven\lib\maven3
and use it in the path
%M2_HOME%\bin
Mine under windows is under a weird location:
C:\Users\changeMe\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\222.3345.118\plugins\maven\lib\maven3
Note that on Windows, from a Terminal console using CMD, you can execute mvn command using CTRL+Enter in IntelliJ :
As of the feature description under https://blog.jetbrains.com/idea/2020/07/run-ide-features-from-the-terminal/, this feature is also supported for MacOs with Cmd+Enter.
Run highlighted command using IDE (default shortcut: Ctrl + Enter or Cmd + Enter)
Debug highlighted command using IDE (default shortcut: Ctrl + Shift + Enter or Cmd + Shift + Enter)
On attempt to create docker-compose python interpreter in PyCharm I get error:
Error while parsing "/Users/belek/Projects/project/docker-composee.yml": Process docker-compose config failed.
Itself docker-compose works fine. The docker-compose config command running in terminal works too.
Before updating macOS and PyCharm I was using docker-compose python interpreter succesfully. Can't understand what's wrong. I created issue in JB YouTrack, but no response.
PyCharm 2019.2.3
macOS Catalina 10.15
The following helped me.
Go to 'System Preferences' -> 'Security & Privacy'.
Add PyCharm to "Full Disk Access" and to "Developer tools".
I want to configure maven and wildfly on my local mac computer. in terminal I use zsh shell. so, I input maven and wildfly home in .zshrc file as
MAVEN_HOME="/Users/myuser/Development/maven"
JBOSS_HOME="/Users/myuser/Development/wildfly"
and then
export PATH="$PATH:$JBOSS_HOME/bin:$MAVEN_HOME/bin"
but when I type maven command in terminal, it shows me this response
zsh: command not found: maven
then I put all 3 commands in .bashrc and .bash_profile files. but nothing. even after reboot. what is wrong?
Maven command is mvn, not maven :)
I'm improving the continuos integration of a project. And we decided to take an extra step and start using cocoapods. All the rvm installation is legacy and indeed I have a lot of troubles installing ruby 2.2.0. The thing is that, when I test my build script using terminal it works fine, but when I try to run them without opening a terminal window (called from applescript, jenkins or another ruby script). The command is not found.
Already tried adding the path to .rvm/scripts to the PATH variable in both .bashrc and .bash_profile
Have you try to reconnect the server after you installed the cocoapods? sometimes it doesn't see the new vars till it disconnected and reconnected.
Also make suer that the vars that you see through the terminal are available for jenkins user. you can check that through the slave "Script Console"
If it still don't work, try to set the path in the "execute shell", just before you run the pod install.
This is how it works for me:
echo "Running pod install"
cd ${WORKSPACE}
export LANG=en_US.UTF-8
pod install