dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

tshm not working

Open samhh opened this issue 3 years ago • 5 comments

It's not installed. The path will probably be wrong once it is.

samhh avatar Apr 01 '22 11:04 samhh

This'll be a problem unless I build locally or patchelf: https://github.com/samhh/tshm/issues/53

samhh avatar Apr 02 '22 12:04 samhh

First step: https://github.com/samhh/dotfiles/commit/80a91fb4a9e1b2d55a3779f41f29d6149a212c4c

Now the TS plugin which is distributed via npm. :thinking:

samhh avatar Apr 02 '22 16:04 samhh

Seemingly no luck: https://github.com/samhh/dotfiles/commit/05c689bba758aea13e523a542473723ca2bc5748

samhh avatar Jun 03 '22 14:06 samhh

As a sanity check the plugin does work if I put it into a project tsconfig.

samhh avatar Aug 19 '22 17:08 samhh

A direct link to the Nix store doesn't work either.

No difference whether or not the project tsconfig contains any other plugins.

samhh avatar Aug 19 '22 17:08 samhh

Node is able to find tshm in $PATH just fine in this simple script:

console.log(spawnSync("tshm", ["-a"], { input: "declare const foo: Bar" }).stdout.toString())
// foo :: Bar

samhh avatar Dec 10 '22 16:12 samhh

The config works if the plugin is installed in peer/project node_modules, even if it's not configured in that project's tsconfig.

samhh avatar Dec 10 '22 17:12 samhh

https://github.com/samhh/dotfiles/commit/602f90a15e051da71cff8219193db8329ce01ab3

samhh avatar Dec 10 '22 17:12 samhh