You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sublime Text exhibiting strange behavior when launched from Nushell 0.60.0 using PATH modifications #4967
This allows launching subl and smerge from the command line without symlinking them somewhere else. Now it still works in Nushell 0.60.0, but somehow Sublime isn't recognizing any of its installed Packages. As if its being launched in a weird context where it can't pick them up. The effect of this is that any plugins (Prettier, LSP, et cetera) fail to function. If I launch Sublime Text using the absolute path in 0.60.0, everything works fine ('/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl').
changed the title [-]Sublime Text exhibiting strange behavior when launched from Nushell 0.60 using PATH modifications[/-][+]Sublime Text exhibiting strange behavior when launched from Nushell 0.60.0 using PATH modifications[/+]on Mar 25, 2022
I still haven't found a workaround here, I've tried a manual shell script at /usr/local/bin/subl that launches the full path of subl, but nothing is working to pick up the right context/environment for Sublime. I've temporarily switched to zsh where modifying the PATH there creates no such issue, but I'm already missing nushell!
Activity
[-]Sublime Text exhibiting strange behavior when launched from Nushell 0.60 using PATH modifications[/-][+]Sublime Text exhibiting strange behavior when launched from Nushell 0.60.0 using PATH modifications[/+]sophiajt commentedon Mar 25, 2022
@ryanpcmcquen you need to prepend one at a time otherwise you're prepending a list of strings
ryanpcmcquen commentedon Mar 25, 2022
@jntrnr, thank you! Is there any way to add multiple entries to the path?
ryanpcmcquen commentedon Mar 25, 2022
Is this valid?
ryanpcmcquen commentedon Mar 25, 2022
The behavior is the same with this syntax:
Meaning Sublime Text still isn't picking up its plugins.
sophiajt commentedon Mar 25, 2022
Not sure what might be going on. You may want to just double check that the path looks right before you invoke Sublime. Something like:
And then read through PATH in that to see if it looks right
ryanpcmcquen commentedon Mar 26, 2022
Looks correct @jntrnr:
ryanpcmcquen commentedon Mar 28, 2022
I still haven't found a workaround here, I've tried a manual shell script at
/usr/local/bin/sublthat launches the full path ofsubl, but nothing is working to pick up the right context/environment for Sublime. I've temporarily switched tozshwhere modifying thePATHthere creates no such issue, but I'm already missing nushell!ryanpcmcquen commentedon Apr 13, 2022
Just confirming that this is still an issue on 0.61.0.
hustcer commentedon May 30, 2022
@ryanpcmcquen Please update to the latest version v0.63 and add the following lines to your config.nu
It works for me
hustcer commentedon Jun 6, 2022
Since there is no further response, I will close it, feel free to reopen if you still have such issue