Git Product home page Git Product logo

Comments (6)

nilnor avatar nilnor commented on June 14, 2024

As you say there's not much to go on - some example would be needed. Also note that there are cases when auto pairs are by design not inserted, I can't say whether this is the case here of course, but the spec shows some examples of this. The logic for determining whether to insert auto pairs or not can be improved, but the cases I've found are additional cases where I would not want the auto pairs inserted, and so would hardly help given your description. I'm closing this for now as there's not anything I can look at without more information, but please reopen if you can find a concrete example of it going wrong.

from howl.

refi64 avatar refi64 commented on June 14, 2024

@nilnor It's hard. All I know is this:

  1. Run howl x.coffee.
  2. Type something f( in the buffer.

About 10% of the time, the right parenthesis appears when the left one is entered. Other times, it won't.

It's also one-for-all: if that first right parenthesis does not appear, the auto-pairs never again work in that session. If the right parenthesis does appear, then it will continue working.

Also: I have no button to reopen... :O

from howl.

nilnor avatar nilnor commented on June 14, 2024

Sounds like it's easy for you to reproduce though? It fails at around 90% of the time? I can't reproduce this at all I'm afraid, and have never seen this before. If you start Howl from the console, is there something being logged when this happens? Is it only with Coffeescript?

from howl.

refi64 avatar refi64 commented on June 14, 2024

@nilnor

  1. Nothing is logged.
  2. It happens with every lexer I've tried: C, CoffeeScript, Python, Ruby, Clojure, etc. I picked CoffeeScript because it was the language I was using at the moment.

from howl.

nilnor avatar nilnor commented on June 14, 2024

Since I've never seen this myself, I suspect that it could also be due to some local configuration on your side. At any rate, I can't troubleshoot when I can't reproduce, so you will have to do some investigating on your side. I suggest starting up without your init file and see if the problem persists. If not, there's something there that causes this which would help narrow it down. Apart from that some carefully placed prints here and there should help you narrow it down. Good places for these printouts would be auto_pair.handle() and if it turns out not to be called at all Editor._on_keypress.

from howl.

refi64 avatar refi64 commented on June 14, 2024

#60

from howl.

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.