-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
.bash_profile is not loaded on macOS #492
Comments
@jd-lara Does any part of the interface loads up or are you faced with a black screen? |
Nothing loads, just the icon in the bar. |
Do you know how to launch the app from a terminal? I'd need to check the |
jdlara@switch-workstn9:/Applications/eDEX-UI.app/Contents/MacOS$ ./eDEX-UI
▶ start Starting eDEX-UI v2.2.0
ℹ info With Node 10.11.0 and Electron 4.1.4
ℹ info Renderer is Chrome 69.0.3497.128
✖ fatal Error: Another instance of eDEX is already running. Cannot proceed.
jdlara@switch-workstn9:/Applications/eDEX-UI.app/Contents/MacOS$ ./eDEX-UI
▶ start Starting eDEX-UI v2.2.0
ℹ info With Node 10.11.0 and Electron 4.1.4
ℹ info Renderer is Chrome 69.0.3497.128
▶ Startup Initialized timer...
ℹ info Base config dir is /Users/jdlara/Library/Application Support/eDEX-UI
☐ pending Loading settings file...
✔ success Settings loaded!
(node:15877) UnhandledPromiseRejectionWarning: Error: spawn bash -l ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)
at onErrorNT (internal/child_process.js:407:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
(node:15877) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:15877) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
GVA info: Successfully connected to the Intel plugin, offline Gen9 |
Great, thanks a lot. This line is interesting:
I'm assuming your eDEX config is set to use You can find the config in |
Same behavior here is my config file {
"shell": "/bin/bash -l",
"cwd": "/Users/jdlara",
"env": "/Users/jdlara/.bash_profile",
"keyboard": "en-US",
"theme": "tron-notype",
"termFontSize": 22,
"audio": false,
"pingAddr": "1.1.1.1",
"port": 3000,
"monitor": 0,
"nointro": false,
"iface": "en0",
"allowWindowed": false,
"excludeSelfFromToplist": true,
"hideDotfiles": false,
"experimentalGlobeFeatures": false,
"experimentalFeatures": false
} |
Could you try and remove the (I should probably add support for what you were trying to do with this, by the way. Will look into it later.) |
I just removed the whole |
Ok, very good news, it's just a config mishap 😅 Normally, with the changes in this new release, your Is this not working? |
No, nothing from my .bash_profile is loading. This is my new settings {
"shell": "bash",
"cwd": "/Users/jdlara",
"keyboard": "en-US",
"theme": "tron-notype",
"termFontSize": 22,
"audio": false,
"disableFeedbackAudio": false,
"pingAddr": "1.1.1.1",
"port": 3000,
"monitor": 0,
"nointro": false,
"nocursor": false,
"iface": "en0",
"allowWindowed": false,
"excludeSelfFromToplist": false,
"hideDotfiles": false,
"experimentalGlobeFeatures": false,
"experimentalFeatures": false
} |
@jd-lara This is not a definitive fix, but setting your |
After making the change then the problem of not loading happens again. Even if I set it to |
Same error in |
Yes, same everything. No display and later on to quit I get the error. |
Weird. I'll do some testing myself tomorrow, get a patch release out if there's something to fix. Could you send me your config with the fix I proposed, just to make sure? |
Tried these 2 options {
"shell": "bash --login -c 'source ~/.bash_profile'",
"cwd": "/Users/jdlara",
"keyboard": "en-US",
"theme": "tron-notype",
"termFontSize": 22,
"audio": false,
"disableFeedbackAudio": false,
"pingAddr": "1.1.1.1",
"port": 3000,
"monitor": 0,
"nointro": false,
"nocursor": false,
"iface": "en0",
"allowWindowed": false,
"excludeSelfFromToplist": false,
"hideDotfiles": false,
"experimentalGlobeFeatures": false,
"experimentalFeatures": false
} {
"shell": "bash -l",
"cwd": "/Users/jdlara",
"keyboard": "en-US",
"theme": "tron-notype",
"termFontSize": 22,
"audio": false,
"disableFeedbackAudio": false,
"pingAddr": "1.1.1.1",
"port": 3000,
"monitor": 0,
"nointro": false,
"nocursor": false,
"iface": "en0",
"allowWindowed": false,
"excludeSelfFromToplist": false,
"hideDotfiles": false,
"experimentalGlobeFeatures": false,
"experimentalFeatures": false
} |
All right. Thanks for the report, will look into it first thing tomorrow. |
@jd-lara I got automatic env loading to work as expected and fixed the error you were getting. eDEX automatically appends the Will release a patch for this, |
Patch is up. Thanks for your help. |
Thanks, it works. I have one more question on loading the # enables auto completion of git commands
if [ -f $(brew --prefix)/etc/bash_completion ]; then
source $(brew --prefix)/etc/bash_completion
fi
# adds branch status information in the terminal path
source $(brew --prefix)/etc/bash_completion.d/git-prompt.sh
#PS1="\h:\W \u\$(__git_ps1 \" (%s)\")\$ "
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$(__git_ps1 \"(%s)\")\$ " So, my terminal looks like this But this setting is not being picked up by eDEX |
In your second screenshot, it doesn't look like you are in a Git directory...? |
It was an error in the |
OK, np. |
Technical information
Using version:
master
(running from GitHub-published source code, currentlyv2.2.0-pre
)latest
(latest release, currentlyv2.2.0
)vx.x.x
(specify other version)Running on:
How comfortable you are with your system and/or IT in general:
After replacing v0.2.1 with v0.2.2 the interface won't start and when hitting close I get an error
The text was updated successfully, but these errors were encountered: