GithubHelp home page GithubHelp logo

Comments (6)

aspin avatar aspin commented on April 25, 2024 1

I figured it out –– pyre has a missing dependency on pywatchman. I'll file a new issue.

from pyre-check.

sinancepel avatar sinancepel commented on April 25, 2024

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.

ethanhs avatar ethanhs commented on April 25, 2024

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.

danhper avatar danhper commented on April 25, 2024

@sinancepel Thank you for the quick reply. This fixed the issue for me.

from pyre-check.

sinancepel avatar sinancepel commented on April 25, 2024

Commits to support didSave requests on VSCode when watchman is disabled have made it to trunk: 0e41ed3 a245638

from pyre-check.

aspin avatar aspin commented on April 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.