<div dir="ltr"><div>I believe what is happening is that the various #command: messages in OSProcess classes are executing without searching my PATH. Even if I add a copy of the current running process environment and set that as the environment of a new PipeableOSProcess, for example, I can't even get a result for `which node`. I can see that /usr/bin and /usr/sbin are on the path from within Squeak.</div><div>  <br></div><div>Another example is that `PipeableOSProcess class >> #unixCommandPipeLine` responds with an empty string when I inspect it.</div><div>  <br></div><div>Might this all be related to newer macOS settings somehow?<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 26, 2022 at 1:08 AM Tom Beckmann <<a href="mailto:tomjonabc@gmail.com">tomjonabc@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Also just guessing here :)</div><div>A brief google search for the return code seemed to suggest that it's sometimes used for "file not found" -- not sure from which component that would come from though. If you are using nvm, maybe nodejs only gets added to your PATH if you're starting from your zsh?</div><div><br></div><div>In addition, you could try adding these params to the language server invocation:<br>{'--stdio'. '--log-level'. '4'. '--tsserver-log-file'. '/tmp/ts.log'. '--tsserver-log-verbosity'. 'verbose'}</div><div>and see if the log file is created.<br></div><div><br></div><div>Best,</div><div>Tom<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 26, 2022 at 12:28 AM Eric Gade <<a href="mailto:eric.gade@gmail.com" target="_blank">eric.gade@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I am a little out of my depth here so please bear with me! Answers inline:<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 25, 2022 at 10:55 AM Tom Beckmann <<a href="mailto:tomjonabc@gmail.com" target="_blank">tomjonabc@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Some things you could try:<div dir="auto"><br></div><div dir="auto">* What's the return code in the inspector?</div></div></blockquote><div><br></div><div>The exitStatus is 32512</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto">* Does it work if you run the lsp from a terminal?</div></div></blockquote><div><br></div><div>It works in my terminal if I just execute `typescript-language-server` or `/opt/homebrew/bin/typescript-language-server`. However, this is just a javascript file that the shell executes in a node environment using `#!/usr/bin/env node` at the top.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto">* Does e.g. /bin/ls work?</div></div></blockquote><div><br></div><div>The exitStatus is 0, so I think so. However, when I try to inspect initialStdOut, it doesn't appear to contain any data anywhere.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto">* If you start squeak from a terminal, is something printed to its stdout/stderr?</div></div></blockquote><div><br></div><div>In the case of /bin/ls, yes, it outputs the result to the terminal if I run Squeak from a terminal (on this Mac I don't usually do so).<br></div><div> </div><div>Thanks!<br></div></div><br clear="all"><br>-- <br><div dir="ltr"><div dir="ltr"><div>Eric</div></div></div></div>
<br>
</blockquote></div>
<br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Eric</div></div></div>