Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wlm start doesn't load watchman #38

Open
bantingGamer opened this issue Mar 7, 2019 · 18 comments
Open

wlm start doesn't load watchman #38

bantingGamer opened this issue Mar 7, 2019 · 18 comments

Comments

@bantingGamer
Copy link

The issue

wml start does nothing. It is as if it doesn't load watchman. There is just a blank cursor flashing. No changes are copied.

To replicate

Install latest watchman "version": "4.9.4" from https://facebook.github.io/watchman/docs/install.html
install wml npm install -g wml
Configure wml wml add ~/my-package ~/main-project/node_modules/my-package
run wml wml start
and nothing

Thank you for your time

@ABQJuan
Copy link

ABQJuan commented Mar 26, 2019

Same problem here.
wml add, rm, list etc all work fine.
wml start just results in a blinking cursor on the next line. No output. No changes.

Windows 10

@ajohnston1219
Copy link

Same here

Windows 10

@wushq5
Copy link

wushq5 commented Aug 15, 2019

add your wml/src dir to watchman list will do, like this
watchman watch /Users/rcrabwu/.nvm/versions/node/v8.9.0/lib/node_modules/wml/src

@SevenZark
Copy link

I am also having this issue on a brand new install of Windows 10. "wml start" just resolves to a blinking cursor. It doesn't actually notice changes or do anything at all except leave a blinking cursor sitting there.

@SevenZark
Copy link

add your wml/src dir to watchman list will do, like this
watchman watch /Users/rcrabwu/.nvm/versions/node/v8.9.0/lib/node_modules/wml/src

This did not solve anything for me.

@youngjuning
Copy link

how to use it on windows?

@youngjuning
Copy link

same issues on windows10

@youngjuning
Copy link

image

@youngjuning
Copy link

@wushq5 thanks for your help

@hosseinalipour
Copy link

it's sucks. which path do I need to watch by the watchman. it doesn't work.

@gcandal
Copy link

gcandal commented Feb 16, 2020

image

Under scoop + nvm running watchman watch C:\Users\%user\scoop\apps\nvm\current\nodejs\nodejs\node_modules\wml\src seems to work.

@daominhsangvn
Copy link

daominhsangvn commented Aug 31, 2020

For people who late that have this issue:
Steps by step how to run WML

  • Install wml: $ npm install -g wml
  • Install Watchman:
  • Delete existing watches: $ watchman watch-del-all
  • Activate watchman for wml: $ watchman watch "C:\Program Files\nodejs\node_modules\wml\src"
    • (Windows) Find nodejs package location: $ npm list -g --depth 0 | head -1 > You will see something like this C:\Program Files\nodejs
    • (MacOS) Find nodejs location: $ which node
  • Add link: $ wml add <package to sync location> <dest package location>
  • Watch & Sync: $ wml start

@kopax-polyconseil
Copy link

I have tried not to install wml globally, and result was bad.

Chao ban va xin cam on, this should be in the README, the most important part is the step active watchman, as soon as you map this correctly, you will see output when running wml start.

However, it's not because I see wml logging that I see file updating, it still seems that wml is not doing anything but logging.

Any clue how I can solve the linking problem betweenn a module and a native application?

@andresesfm
Copy link

In my case, I followed @daominhsangvn 's instructions (MacOS) but since I'm using n I couldn't get the location of node_modules/wml/src by using which node. I found a more accurate way by using:
npm root -g Reference: https://stackoverflow.com/a/54996486

@vinikatyal
Copy link

In my case, I followed @daominhsangvn 's instructions (MacOS) but since I'm using n I couldn't get the location of node_modules/wml/src by using which node. I found a more accurate way by using:
npm root -g Reference: https://stackoverflow.com/a/54996486

Thanks for this!

@Mengsha97
Copy link

@daominhsangvn Thank you! It works!

@tylers-username
Copy link

For those of you having trouble finding the path on macOS or Linux, this should help:

watchman watch $(dirname /$(readlink $(which wml)))/../wml/src

@reactoholic
Copy link

add your wml/src dir to watchman list will do, like this watchman watch /Users/rcrabwu/.nvm/versions/node/v8.9.0/lib/node_modules/wml/src

When I did this wml start throws an error :

[error] watchman::RootResolveError: failed to resolve root: unable to resolve root /Users/pkolev/projects/bytesmiths/homeco2ntrol-lib/src: failed to resolve root: directory /Users/pkolev/projects/bytesmiths/homeco2ntrol-lib/src is not watched
/Users/pkolev/.nvm/versions/node/v20.12.2/lib/node_modules/wml/node_modules/q/q.js:155
                throw e;
                ^

Error: watchman::RootResolveError: failed to resolve root: unable to resolve root /Users/pkolev/projects/bytesmiths/homeco2ntrol-lib/src: failed to resolve root: directory /Users/pkolev/projects/bytesmiths/homeco2ntrol-lib/src is not watched
    at BunserBuf.<anonymous> (/Users/pkolev/.nvm/versions/node/v20.12.2/lib/node_modules/wml/node_modules/fb-watchman/index.js:95:23)
    at BunserBuf.emit (node:events:518:28)
    at BunserBuf.process (/Users/pkolev/.nvm/versions/node/v20.12.2/lib/node_modules/wml/node_modules/bser/index.js:289:10)
    at /Users/pkolev/.nvm/versions/node/v20.12.2/lib/node_modules/wml/node_modules/bser/index.js:244:12
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11) {
  watchmanResponse: {
    error: 'watchman::RootResolveError: failed to resolve root: unable to resolve root /Users/pkolev/projects/bytesmiths/homeco2ntrol-lib/src: failed to resolve root: directory /Users/pkolev/projects/bytesmiths/homeco2ntrol-lib/src is not watched',
    version: '2024.07.15.00'
  }
}

Node.js v20.12.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests