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

When running wml start nothing happen #17

Open
idangozlan opened this issue Oct 23, 2017 · 25 comments
Open

When running wml start nothing happen #17

idangozlan opened this issue Oct 23, 2017 · 25 comments

Comments

@idangozlan
Copy link

I use to work with wml start on my old mac, then switch to a new one, now wml start doesnt do nothing. Anyway to print debug log or something that can lead to the problem?

@Scit
Copy link

Scit commented Feb 14, 2018

Having the same.

Ubuntu 16.04, watchman v. 4.9.1

@madflanderz
Copy link

I had the same problem. In my case i had a bad npm environment and i installed wml with sudo. If you did this you have to use sudo also when you add links:

sudo npm install -g wml
sudo wml add ./src ./dest
wml list
wml start

Better solution is use node version manager. Then you don't need to install packages with sudo.

@henninghall
Copy link

Same problem on ubuntu, works perfectly on mac

@henninghall
Copy link

Solved it by installing the latest version of watchman

@bantingGamer
Copy link

of

what version of watchman did you install? becasue i still just have a cursor flashing...

@LordDraagonLive
Copy link

I'm facing thee same issue in windows 10

@pmontu
Copy link

pmontu commented Jun 11, 2019

I am facing the same issue. I did not try installing watchman again. I am using bionic beaver

@SackeyDavid
Copy link

Pleasse how do we fix it on windows 10?

@SackeyDavid
Copy link

SackeyDavid commented Jun 20, 2019

fixed using npm-link https://medium.com/dailyjs/how-to-use-npm-link-7375b6219557 on Windows 10. But this is problematic because npm-link which uses symbolic linking doesn't work with the metro bundler facebook/metro#1.

@pmontu
Copy link

pmontu commented Jun 24, 2019

I moved from node 9 to 10(using nvm) and installed wml again. now wml opens up super fast.

@SackeyDavid
Copy link

SackeyDavid commented Jun 24, 2019

I moved from node 9 to 10(using nvm) and installed wml again. now wml opens up super fast.

Hmm, thanks @pmontu for the reply. I'm using node version 12.4.0 on Windows 10 and it's still not working with the metro bundler. Are you using Windows 10 please?

@MirceaTheOldMan
Copy link

I've tried with node 8.16.0, 10.16.0 and 12.4.0 but it doesn't do anything when I write wml start.
All the other commands worked fine. wml add created that .watchmanconfig file.
I'm using Windows 10 Home, watchman 4.9.4

@SackeyDavid
Copy link

SackeyDavid commented Jun 28, 2019

I've tried with node 8.16.0, 10.16.0 and 12.4.0 but it doesn't do anything when I write wml start.
All the other commands worked fine. wml add created that .watchmanconfig file.
I'm using Windows 10 Home, watchman 4.9.4

Hi @MirceaTheOldMan, after countless futile attempts to fix this problem on windows 10, I've finally decided to work on Mac OS. And it works fine there.

Now, I want to work on a library to fix that for windows 10. I'll like some interested persons to collaborate with me on this. Since facebook metro hasn't said they plan working on symlinks and wix/wml hasn't said anything too, I think something needs to done for windows 10 users.

@stackoverjoe
Copy link

I've tried with node 8.16.0, 10.16.0 and 12.4.0 but it doesn't do anything when I write wml start.
All the other commands worked fine. wml add created that .watchmanconfig file.
I'm using Windows 10 Home, watchman 4.9.4

I am having the exact same issue. Can run all commands fine except start. The problem seems to lie in watchman for windows 10.

@MirceaTheOldMan
Copy link

I've tested wml start on OSX and Linux and they work fine. What if this is somehow related to the way the path (as parameters for the add command) is written in OSX / Linux versus Windows?

@MirceaTheOldMan
Copy link

I found a partial solution for "Windows":

  1. Install WSL (Windows Subsystem for Linux);
  2. Install Ubuntu and update it's packages;
  3. Install watchman;
  4. Install nodejs (no specific version mandatory) inside Ubuntu
  5. and lastly. Install wml inside Ubuntu.

Note:
You'll only be able to use wml inside Ubuntu, meaning that the project (the watched folder and the destination) must be inside Ubuntu's root folder or it's child folders.
Make sure to read WSL's documentation because with latest version of windows(1903) you can view that folder and even use VS Code to create and edit files in that folder, from within Windows, not from Linux.
Conclusion:
You just use the whole WSL with Linux console to watch the folder that needs duplication. The other part of code implementation can be easily done from VS Code.

@LordDraagonLive
Copy link

That's lot of steps to install a package but really grateful for your effort. I hope will find a more simpler way to achieve this.

@wushq5
Copy link

wushq5 commented Aug 15, 2019

add the 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 having this issue in Windows 10. wml start just results in a blinking cursor. No changes are detected. The software does nothing. Since this issue has been open for about two years, I guess I'm not hopeful of anyone caring enough to fix..? I sure wish I knew how myself.

@krunaldholakia01
Copy link

krunaldholakia01 commented Dec 28, 2019

add the 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

Thanks @wushq5 !
->First I downloaded latest version of watchman and added it to path environment variable.
-> Installed wml using npm globally
->Then added link to my node_module ( "wml add ..\common .\node_modules\@wow\common ")

I started using wml start but there was blank screen with cursor blinking.
Last I tried adding wml src folder as per your direction like this
-> watchman watch C:\Users\%user%\AppData\Roaming\npm\node_modules\wml\src
That solved issue for me on Windows 10.
☺☺☺

@SackeyDavid
Copy link

SackeyDavid commented Dec 28, 2019 via email

motornyi pushed a commit to motornyi/wml that referenced this issue Oct 13, 2020
@hodev-dev
Copy link

same problem windows 10 latest version of watchman installed with chocco

@huhuang03
Copy link

huhuang03 commented Apr 4, 2021

add the 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

Thanks @wushq5 !
->First I downloaded latest version of watchman and added it to path environment variable.
-> Installed wml using npm globally
->Then added link to my node_module ( "wml add ..\common .\node_modules@wow\common ")

I started using wml start but there was blank screen with cursor blinking.
Last I tried adding wml src folder as per your direction like this
-> watchman watch C:\Users%user%\AppData\Roaming\npm\node_modules\wml\src
That solved issue for me on Windows 10.
☺☺☺

Yes, it can work, And If not do that, the error log is this on my pc, which I use the wml in F:\wml:

PS F:\> wml start
client subscribe end called Error: class RootResolveError: RootResolveError: unable to resolve root F:\wml\src: RootResolveError: directory F:/wml/src is not watched
    at BunserBuf.<anonymous> (F:\wml\node_modules\fb-watchman\index.js:95:23)
    at BunserBuf.emit (events.js:310:20)
    at BunserBuf.process (F:\wml\node_modules\bser\index.js:289:10)
    at F:\wml\node_modules\bser\index.js:244:12
    at processTicksAndRejections (internal/process/task_queues.js:79:11) {
  watchmanResponse: {
    version: '20201213.172817.0',
    error: 'class RootResolveError: RootResolveError: unable to resolve root F:\\wml\\src: RootResolveError: directory F:/wml/src is not watched'
  }
}

@quinnwai
Copy link

If there's no source file in

watchman watch /Users/rcrabwu/.nvm/versions/node/v8.9.0/lib/node_modules/wml/src

find where your wml/src is installed. For me it was in ~/.config/yarn/global/ since I used yarn global install wml to install the package.

@etash47
Copy link

etash47 commented Jun 8, 2022

If there's no source file in

watchman watch /Users/rcrabwu/.nvm/versions/node/v8.9.0/lib/node_modules/wml/src

find where your wml/src is installed. For me it was in ~/.config/yarn/global/ since I used yarn global install wml to install the package.

I had trouble finding where my installation was. I had installed wml globally as well, so I used npm config get prefix to find the npm in use, and then appended lib/node_modules/wml/src to that path, and then did what QuinnWai said

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