Comments (7)
The path is resolved by the watchman server which has a working dir set to /
, and you're right in that you don't really want to be watching everything.
Handling relative paths in all cases means replicating the server logic in the client, and then it wouldn't behave in quite the same way as clients that are using the JSON or BSER protocols.
I'm leaning towards a simpler sanity check: if the path doesn't start with a /
when it reaches the server, we can return an error and ask you pass in the absolute path.
In the meantime, I'd recommend using watchman watch $PWD
instead
from watchman.
(we can also disallow watching /
while we're in there)
from watchman.
wez@wez-mbp master ~/fb/watchman-pure
9:54 $ ./watchman watch .
{
"version": "2.9.6",
"error": "unable to resolve root .: path \".\" must be absolute"
}
wez@wez-mbp master ~/fb/watchman-pure
9:54 $ ./watchman watch $PWD
{
"version": "2.9.6",
"watch": "/Users/wez/fb/watchman-pure"
}
I'm calling this "good enough" for now. I have some hacking lined up for the CLI that might address making it smarter, we'll see how far I get.
from watchman.
๐ for relative paths
from watchman.
this is not merged ?
from watchman.
b8832cc is in the tree, and I get this when I run what's in master:
$ ./watchman watch .
{
"version": "2.9.8",
"watch": "/Users/wez/fb/watchman"
}
so this is done. Are you trying something and it isn't working?
from watchman.
thanks, I have an old version. Everything works fine for now :)
from watchman.
Related Issues (20)
- not bin HOT 1
- Publish new serde_bser version
- Installation error: โCertUtilsโ has not been declared in โfizz (Ubuntu 22.04.3 LTS) HOT 3
- Unable to install watchman on arch HOT 2
- Prebuilt Linux binaries are unusable on any modern system HOT 5
- PCRE link is broken
- MacOS binaries missing HOT 5
- Hard dependency on Homebrew HOT 1
- Windows binaries are missing
- Unable to install pywatchman
- Unable to build watchman from source for ubuntu in the latest versions of releases HOT 1
- Could you provide `fc39.x86_64.rpm`? HOT 1
- Error from yarn gets written into plist
- Prebuilt macOS binaries no longer exist HOT 5
- `watchman list` command crashes with boost/icu4c HOT 1
- `watchman --version` always return `0.0.0` when building from source HOT 2
- Unable to resolve module @babel/runtime/helpers/interopRequireDefault
- Wiji
- Mistake in Readme file
- Build failure: `'apache::thrift::HandlerCallbackPtr' has not been declared`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from watchman.