microsoft / inshellisense

IDE style command line auto complete
MIT License
8.24k stars 181 forks source link

Provide native executable #32

Closed matthewadams closed 4 months ago

matthewadams commented 8 months ago

Is your feature request related to a problem? Please describe. I use asdf to manage my node versions. I want to have inshellisense available across all of my versions. As it stands, I have to run npm install -g @microsoft/inshellisense for each version of node that I install. It'd be easer if you used bun or similar to provide a native executable that I could use independently of my current node runtimes.

Describe the solution you'd like I want to be able to run inshellisense no matter which version of node that is currently on my path.

Describe alternatives you've considered npx inshellisense

Additional context None.

cpendery commented 8 months ago

Hey @matthewadams, I'll look into options to provide this. I'm familiar with pkg, but I'll look into bun's --compile flag as well.

tnfssc commented 5 months ago

@matthewadams @cpendery, I made something like this a while ago. Here's the code to build the binaries https://github.com/tnfssc/inshellisense-bin

cpendery commented 4 months ago

Just a follow up here, most of the projects like caxa or pkg have been deprecated with Node 21's support of sea. node-pty; however, only supports Node 18 officially (with Node 16 & 20 making the cut, but not 21). As a result, there isn't a good solution for building a native executable via Node. Bun might work in the future, but for now, node-pty doesn't support Bun (see https://github.com/microsoft/node-pty/issues/632).

cpendery commented 4 months ago

Closing as duplicate of #199