Closed joel-you closed 1 year ago
did you test with the bin directly?
I had the same issue and could fix it by adding a 'source ~/.zshrc` to the run script.
if [[ -n "{query}" ]]; then
source ~/.zshrc
QUERY="{query}"
BIN=${jb_bin}
PROJECT_NAME=${jb_project_name}
if [[ "${jb_is_new_bin}" == "1" ]]; then
open -na "${BIN}" --args "${QUERY}"
else
$(${BIN} "${QUERY}")
fi
echo "${PROJECT_NAME}"
fi
I had the same issue and could fix it by adding a 'source ~/.zshrc` to the run script.
if [[ -n "{query}" ]]; then source ~/.zshrc QUERY="{query}" BIN=${jb_bin} PROJECT_NAME=${jb_project_name} if [[ "${jb_is_new_bin}" == "1" ]]; then open -na "${BIN}" --args "${QUERY}" else $(${BIN} "${QUERY}") fi echo "${PROJECT_NAME}" fi
I was solved by the way you told me. Thanks, man.
hi, just push a new version with this fix
FAQ
Describe the bug
I am using zsh and constructing a project that uses the idea command for custom environment variables included in
~/.zshrc
. WhenintelliJ
is turned on using the idea command, the environment variable is not recognized.However, if
intelliJ
is turned on without using the idea command, the environmental variables are recognized even if the idea command is used to turn on other projects.To Reproduce
~/.zshrc
.intelliJ
with the idea command line.System.getenv ('environmental variable name')
inbuild.gradle
and print it out.Expected behavior
intelliJ
, click thetoolbox
or theintelliJ
icon to run it yourself.To Reproduce
.Alfred Version
5.1.2
Workflow Version
2.0.8
Node Version
v20.6.1
NPM Version
10.1.0
Jetbrains Product & Version
IntelliJ 2023.2.2
Installation type
JetBrains ToolBox
OS
macOS 13.3