Comments (6)
I figured it out –– pyre has a missing dependency on pywatchman. I'll file a new issue.
from pyre-check.
Hello! Could you cat .watchmanconfig
and if it doesn't exist, run
echo "{}" > .watchmanconfig
watchman watch .
pyre restart
and see if that helps?
from pyre-check.
The suggested commands caused for me:
ƛ Server not running at `mypkg`. Starting...
ƛ Server initializing...
ƛ Client exited with error code 1:
ƛ Restart the server? [Y/n] Y
ƛ Parsing 346 stubs and external sources...
Worker.Worker_failed_to_send_job(_)
Raised at file "map.ml", line 131, characters 10-25
ƛ Parsing 346 stubs and external sources...
Worker.Worker_failed_to_send_job(_)
Raised at file "map.ml", line 131, characters 10-25
Called from file "sexp_conv.ml", line 148, characters 10-37
Worker interrupted with signal: sigpipe
Worker interrupted with signal: sigpipe [26.4s]
from pyre-check.
@sinancepel Thank you for the quick reply. This fixed the issue for me.
from pyre-check.
Commits to support didSave requests on VSCode when watchman is disabled have made it to trunk: 0e41ed3 a245638
from pyre-check.
Hi there,
Not sure if you prefer new issues or reopening new ones, but I started using Pyre and I've been having this issue.
e.g.
# src/ptest/main.py
def foo() -> int:
return "123"
Like OP, pyre
works ok the first time:
~/workspace/pyre-test pyre
ƛ Starting server at `src/ptest`.
ƛ Waiting for server...
ƛ Found 1 type error!
src/ptest/main.py:2:4 Incompatible return type [7]: Expected `int` but got `str`.
But after fixing the file "123" => 123
, I still have the same result output from pyre
.
Environment
~/workspace/pyre-test cat .pyre_configuration
{
"binary": "/Users/kevin.chen/workspace/pyre-test/.venv/bin/pyre.bin",
"source_directories": [
"src/ptest"
],
"typeshed": "/Users/kevin.chen/workspace/pyre-test/.venv/lib/pyre_check/typeshed/"
}
~/workspace/pyre-test cat .watchmanconfig
{}
Using macOS Mojave, watchman 4.9.0, pyre version 0.0.21
pyre rage
output
Client version: 0.0.21
Binary path: /Users/kevin.chen/workspace/pyre-test/.venv/bin/pyre.bin
Configured binary version: unversioned
Actual binary version: 8427cc0f7919a6ed3bc5525ab781c99317c2054f
Binary build info: Darwin x86_64 @ Thu Mar 21 2019 (development build)
Displaying logs for Watchman watched directories:
{
"version": "4.9.0",
"roots": [
"/Users/kevin.chen/workspace/pyre-test"
]
}
Displaying logs for server:
2019-04-02 13:11:29 INFO Running as pid: 8910
2019-04-02 13:11:29 INFO Version: 8427cc0f7919a6ed3bc5525ab781c99317c2054f
2019-04-02 13:11:29 INFO Build info: Darwin x86_64 @ Thu Mar 21 2019 (development build)
2019-04-02 13:11:29 INFO LSP message sent:
{
"jsonrpc": "2.0",
"method": "handshake/server",
"params": { "version": "unversioned" }
}
2019-04-02 13:11:29 INFO LSP message received:
{ "jsonrpc": "2.0", "method": "handshake/client" }
2019-04-02 13:11:29 INFO Finding type stubs in `/Users/kevin.chen/workspace/pyre-test/src/ptest`...
2019-04-02 13:11:29 INFO Finding type stubs in `/Users/kevin.chen/workspace/pyre-test/.venv/lib/pyre_check/typeshed/stdlib`...
2019-04-02 13:11:29 INFO Finding type stubs in `/Users/kevin.chen/workspace/pyre-test/.venv/lib/pyre_check/typeshed/third_party`...
2019-04-02 13:11:29 INFO Parsing 793 stubs and external sources...
2019-04-02 13:11:29 PERFORMANCE Stubs parsed: 0.407422s
2019-04-02 13:11:29 INFO Parsing 1 sources in `/Users/kevin.chen/workspace/pyre-test/src/ptest`...
2019-04-02 13:11:29 PERFORMANCE Sources parsed: 0.023828s
2019-04-02 13:11:29 PERFORMANCE Registered ignores: 0.021086s
2019-04-02 13:11:29 INFO Building type environment...
2019-04-02 13:11:30 PERFORMANCE Full environment built: 0.856358s
2019-04-02 13:11:30 INFO Inferring protocol implementations...
2019-04-02 13:11:30 PERFORMANCE Inferred protocol implementations: 0.181023s
2019-04-02 13:11:30 INFO Adding environment information to shared memory...
2019-04-02 13:11:31 PERFORMANCE Added environment to shared memory: 0.166469s
2019-04-02 13:11:31 MEMORY Shared memory size (size: 13)
2019-04-02 13:11:31 PERFORMANCE Filtered directories: 0.023129s
2019-04-02 13:11:31 INFO Checking 1 sources...
2019-04-02 13:11:31 INFO Running check `TypeCheck`...
2019-04-02 13:11:31 PROGRESS Processed 1 of 1 sources
2019-04-02 13:11:31 PERFORMANCE Check_TypeCheck: 0.023307s
2019-04-02 13:11:31 PERFORMANCE Analyzed sources: 0.023365s
2019-04-02 13:11:31 PERFORMANCE Postprocessed: 0.022290s
2019-04-02 13:11:31 PERFORMANCE Initialization: 1.761715s
2019-04-02 13:11:31 PERFORMANCE Server request: 0.000004s
from pyre-check.
Related Issues (20)
- Parsing failure [404]: f-string expression part cannot include a backslash HOT 1
- Pyre infers set-of-literals as set[str] rather than set[MyLiteral] HOT 1
- Null
- Ask for if also import pysa-filter for `sapp` when run `pyre init-pysa`
- Allow use of pyre_extensions in pyre playground, use newer typing_extensions
- Mutable attributes of classes should be invariant in subclasses. HOT 1
- Internal crash: Raised in src/string.ml HOT 11
- Pyre doesn't understand for-else statement HOT 2
- Is it possible to taint specific values of parameters? HOT 2
- Tainting Python Builtin Functions! How do we do this? HOT 1
- Module boto3 - Taint Propagation Issue HOT 3
- Context Manager - Taint Propagation Issue
- PySpark - Incompatible parameter type & Unsupported operand HOT 1
- [Pyre setup.sh] Terminal closes while building from source HOT 2
- Pysa tutorial not working HOT 4
- Find lambdas are not checked correctly
- Errors with recursive type aliases: "JSON is declared to have type `TypeAlias` but is used as type `UnionType`"
- pyre from PyPI can't find its typeshed directory HOT 1
- Update pyre-check.org/play to use Python 3.11 HOT 2
- [BUG] Check command exited with non-zero return code: 126. HOT 1
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 pyre-check.