Coder Social home page Coder Social logo

link-status's People

Contributors

danmakenoise avatar orrybaram avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

orrybaram emahuni

link-status's Issues

Broken under github actions

I know that the project is quite old but as I did need to debug existing links I decided to give it a go. Locally it works exactly as advertised but when running the same command under gihub actions (ubuntu), the script did not display anything than a long list of newlines. See https://github.com/ansible/ansible-language-server/runs/4078323194?check_suite_focus=true

Interestingly it did not return an error exist code, but the output was of no use either.

After some extra searching online I was able to find a workaround that does not need any extra tools, documenting it here in case someone would find it useful:

npm ls --link=true --depth=0 

Add Windows support

Would be nice to have Windows support. Finding linked packages on Windows is particularly hard because all of the Stack Overflow answers are in Linux (using linux tools that don't exist on Windows). It appears this package does too. ๐Ÿ˜ข

> link-status --source --prettify
{ Error: Command failed: find ./node_modules/ -maxdepth 2 -type l -ls
FIND: Parameter format not correct

    at ChildProcess.exithandler (child_process.js:206:12)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:877:16)
    at Socket.<anonymous> (internal/child_process.js:334:11)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at Pipe._handle.close [as _onclose] (net.js:498:12)
  killed: false,
  code: 2,
  signal: null,
  cmd: 'find ./node_modules/ -maxdepth 2 -type l -ls' }

         NO LINKS FOUND

In particular, find isn't available. Would be nice if this package just used JavaScript/node so it was cross-platform rather than using CLI tools on the host.

README is outdated

We added some new features to the CLI, and the README is now out of date.

Source Paths Reflect NVM Shims, Not Actual Links

Currently when running the -s flag, sym links are shown, but they are really just the nvm shims for the links. It would be nice to follow the symlink through to give an actual directory.

Example:
../../../.nvm/versions/node/v6.9.1/lib/node_modules/semistandard

Versus:
/Users/me/dev/semistandard

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.