-
Notifications
You must be signed in to change notification settings - Fork 3
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
no imports can be found with watchman #21
Comments
Interesting. Could you
|
@trotzig so, the log file from
after this error import-js falls back to resolve the import without watchman, this didn't happen before, but I can't tell what changed. |
I think the "fallback" behavior you're seeing is because the cache has been filled once (without watchman). I bet it stays stale though, if you add more modules they won't show up when importing. What version of watchman are you using? An upgrade might help, as suggested by this related thread. |
yes, you are right, I now installed the latest version. Importjs log file still doesn't exist:
I now don't get any errors in atoms console and the behavior is as before.
Also, I think it's definitely some kind of fallback because after the lookup with watchman failed, my breakpoint in the |
Hrm, that's annoying. The cache file being recreated is by design. import-js will try to recreate this file as soon as it can (whenever you try importing something). I'm a little bit surprised that the log file isn't there. I wonder if atom is somehow overriding the default tmp folder for the system? Though it should be right there next to the cache files. If I remember correctly, even if you use the default log level it will post a few lines on startup. |
when I run there is still no log file. |
The cache location difference might be a version mismatch thing. What does |
|
That's the latest, and assuming atom is configured to auto-update you should be on the same version through the extension (import-js is bundled with the atom extension). Are you running the |
yes I'm up to date with atom-import-js and yes I ran |
@trotzig importjs also is broken on some projects for me. I don't know why it suddenly broke. Also be careful: the right name is: |
@macrozone yes I made the same mistake before |
When ever I install watchman no imports are found. As soon as I uninstall it the imports are found again.
This works for small projects but not for some of the bigger ones. I simply installed watchman, as far as I can tell there is no further configuration required by import-js.
The text was updated successfully, but these errors were encountered: