Search Unity

[RELEASED] Haste — Search Engine for Unity

Discussion in 'Assets and Asset Store' started by jimfleming, Jun 19, 2014.

  1. frikic

    frikic

    Joined:
    Dec 22, 2011
    Posts:
    44

    1. Im using 1.8.6 just installed it yesterday from asset store.
    2. Im using Windows7 and im using Unity 4.6.7f1
    3. Yes it does work when i add it manually, thanks for that tip!

    Cheers
     
  2. frikic

    frikic

    Joined:
    Dec 22, 2011
    Posts:
    44
    I figure that this might help you to trace it down, when i add manually folder it works but then when i
    press right button i get Ignore enabled, when i should actually have Unignore enabled?!? because folder is
    already Ignored.

    HasteIgnoreBug.png
     
    Last edited: Sep 28, 2015
  3. jimfleming

    jimfleming

    Joined:
    Nov 13, 2012
    Posts:
    32
    Thanks, found the problem. A fix will be included in the next release.

    In the meantime I'm glad that ignoring the folder manually has fixed the issue for you.
     
  4. mdrotar

    mdrotar

    Joined:
    Aug 26, 2013
    Posts:
    377
    @jimfleming Is that new release coming any time soon?
     
  5. arvzg

    arvzg

    Joined:
    Jun 28, 2009
    Posts:
    619
    Just bought Haste Pro, I managed to fix all the deprecated calls and the change in the Window menu structure in 2018.2, but there's one Exception that I don't know how to fix, it's this:


    ArgumentException: parsing "\s+[\%\#\&\_]+\w$" - Unrecognized escape sequence \_.
    Rethrow as TypeInitializationException: The type initializer for 'Haste.HasteMenuItemSource' threw an exception.


    The line where this comes from is:

    Code (CSharp):
    1. static readonly Regex modifiers = new Regex(@"\s+[\%\#\&\_]+\w$", RegexOptions.IgnoreCase);
    Anyone got any idea how to fix this?
     
  6. Sharlatan

    Sharlatan

    Joined:
    Jul 23, 2013
    Posts:
    111
    The problem is, that backslash doesn't have to be escaped in C# (anymore? never had a problem with that in older Unity versions). Just change the line to this and you should be good to go:

    Code (CSharp):
    1. static readonly Regex modifiers = new Regex(@"\s+[\%\#\&_]+\w$", RegexOptions.IgnoreCase);
    Also, when I tried to recompile the dll, I've got an error for this line of code:
    Code (CSharp):
    1. if (platform == 7)
    If you run into this problem as well, just change it to the following:
    Code (CSharp):
    1. if (platform == RuntimePlatform.WindowsEditor)
    Hope, that helps!

    Also, I'd be super nice of you if you'd share your fixes as well! :)

    Have a nice day,
    Sharlatan
     
  7. TJHeuvel-net

    TJHeuvel-net

    Joined:
    Jul 31, 2012
    Posts:
    838
    Does anyone still have the source available?
     
  8. Sharlatan

    Sharlatan

    Joined:
    Jul 23, 2013
    Posts:
    111
    I don't think anyone has the original source code (expect for the plugin creator but he hasn't been on here for years).

    But if you purchase(d) haste, you can download it and then have a look at the source code (and even edit it) with a tool like e.g. dnSpy.

    Hope that helps and let me know if you have more questions/need help regarding this.
     
  9. arvzg

    arvzg

    Joined:
    Jun 28, 2009
    Posts:
    619
    The full source code is available in the Pro version of Haste
     
  10. Sharlatan

    Sharlatan

    Joined:
    Jul 23, 2013
    Posts:
    111
    ...
    . . .
    . . .

    You are right! It's in there as Unity package. Man, now you made me feel really silly :oops:. I've got haste pro but I just quickly scanned over the haste folder and saw no C# files, which lead me to the conclusion that the source isn't included. Then I went through the trouble of decompiling, editing and recompiling the dll.
    Thanks for pointing this out, this makes things even easier.
     
  11. TJHeuvel-net

    TJHeuvel-net

    Joined:
    Jul 31, 2012
    Posts:
    838
    But the pro version is no longer for sale
     
  12. arvzg

    arvzg

    Joined:
    Jun 28, 2009
    Posts:
    619
    Hehe yea that's easy to miss.

    Ah you're right, actually both the free version and pro version are gone now.
     
  13. JohnnyDalvi

    JohnnyDalvi

    Joined:
    Nov 24, 2016
    Posts:
    7
  14. xenonmiii

    xenonmiii

    Joined:
    Aug 2, 2010
    Posts:
    147
    Hi Johnny,
    I'm working on a similar tool like Haste.
    I need some feedback to improve it further though.
    Would be great if you tried out the current WIP here and leave your feedback.
    https://forum.unity.com/threads/wip-omnibar-the-quick-search-bar-more.622243/
     
    JohnnyDalvi likes this.
  15. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,620
  16. xenonmiii

    xenonmiii

    Joined:
    Aug 2, 2010
    Posts:
    147
    Btw, Those who liked Haste might want to check out Omnibar. It's NOT only for searching but also to improve your workflow with several shortcuts. It's for Unity 2018.1 onwards and is available here: http://u3d.as/1sN9

     
  17. jimfleming

    jimfleming

    Joined:
    Nov 13, 2012
    Posts:
    32
    idbrii, willgoldstone and mdrotar like this.