Giter VIP home page Giter VIP logo

gracer's People

Contributors

isamert avatar jakschu avatar simonsapin avatar vbota1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gracer's Issues

Automatically pull rust project location from RUST_SRC_PATH

It's part of the instructions for installing racer, so people should have it set automatically. Maybe pull in this environment variable if it exists and auto-populate the rust source textfield? It'd be nice if I could just have one setting for this repo and it'd propagate to racer and gracer.

TypeError: 'TextIter' object is not iterable with Plugin

Anytime I open a rust file the following error is printed to the console:

Traceback (most recent call last):
  File "/home/manuel/.local/share/gedit/plugins/gracer/gracer.py", line 237, in do_match
    _, iter = context.get_iter()
TypeError: 'TextIter' object is not iterable

I have installed gracer as suggested via git pull into this directory. My system:

  • gedit 3.14.0
  • Debian 8.6 64
  • Python2 2.7.9 and Python3.4.2 installed via normal package manager

Any thoughts?

Assume racer is in $PATH

Part of the installation process for racer is to add ~/.cargo/bin to your path. Now maybe not everyone does that, but if they did racer can just be run without the executable needing to be manually specified. With this and issue #3, gracer is automatically configured as soon as racer is installed.

Move contents of /src to root directory

This shortens the installation process to:

$ mkdir ~/.local/share/gedit/plugins
$ git clone https://github.com/isamert/gracer.git

And then updating gracer in the future is just

$ cd ~/.local/share/gedit/plugins/gracer
$ git update

Speed

Thank you for making this, I like it!

A minor downside is that I see some noticeable lag at each keystroke when typing, especially if my CPU cores are busy (even though I’m running Cargo under nice).

Do you know if gedit’s UI is blocked while racer is running? If so, making things asynchronous would maybe reduce the perception of lag.

Or do you have other ideas for what could make things faster? Maybe having a long-running racer process rather than spawning a new one for every keystroke?

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.