Author Topic: SublimeCodeIntel for HE?  (Read 2341 times)

Offline Anonymous

  • Anonymous
  • Jr. Member
  • **
  • Posts: 77
  • Karma: +0/-0
    • View Profile
SublimeCodeIntel for HE?
« on: May 07, 2013, 10:22:03 pm »

Nice to adapt tool https://github.com/Kronuz/SublimeCodeIntel
Is possible.

Offline Anonymous

  • Anonymous
  • Jr. Member
  • **
  • Posts: 77
  • Karma: +0/-0
    • View Profile
Re: SublimeCodeIntel for HE?
« Reply #1 on: May 07, 2013, 10:23:46 pm »
"Is it possible, to adapt?"

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2181
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: SublimeCodeIntel for HE?
« Reply #2 on: May 08, 2013, 07:11:49 pm »
Everything is possible. Just some of the things requires too much time to proceed.

The plugin you point, is Python based engine (copied from Open Komodo editor). By default, Active Scripting does not support Python script, but man can install engine from Active State (ActivePython) or one from Python Windows extensions from python.org + sourceforge.net.

Than theoretically you write/execute plugins also in Python language.

After somebody need to adopt code from Sublime plugin to use HippoEDIT API instead of corresponding Sublime API (most of the stuff are covered).

I can check / provide sample / wiki of how to write plugin in Python, but probably more. I am not an expert in Python. Was able to port alignment plugin from Python to JavaScript, but it was rather straightforward and I did it without real knowledge of language ...

So, if somebody can help in adaptation of Python code, I can provide my support from HippoEDIT side in integration.

Best regards,
Alex.

Offline Anonymous

  • Anonymous
  • Jr. Member
  • **
  • Posts: 77
  • Karma: +0/-0
    • View Profile
Re: SublimeCodeIntel for HE?
« Reply #3 on: May 08, 2013, 09:48:18 pm »
Way with PY engine maybe not good. Maybe you can create JS wrapper for CodeIntel? wrapper must use modified CodeIntel of coz, w/out Sublime API. wrapper can call PY loader to load modified CodeItel. and return result to JS.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2181
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: SublimeCodeIntel for HE?
« Reply #4 on: May 09, 2013, 01:46:21 am »
Did not get what you mean under "Way with PY engine maybe not good..."

Have no idea how to call python code from the JavaScript... I have seen some examples of using Ajax calls for calling python files, but it seems to me not a right way.
Maybe I am just not experienced enough ;)

But I have done some experiments, and can use Python for scripting in HippoEDIT. There were some bugs, I have fixed (will be in next beta), and still some strange stuff I need to clarify, but basics are working.

Offline Anonymous

  • Anonymous
  • Jr. Member
  • **
  • Posts: 77
  • Karma: +0/-0
    • View Profile
Re: SublimeCodeIntel for HE?
« Reply #5 on: May 09, 2013, 11:44:23 am »
i mean "not good to use ActivePython engine, maybe better to call PY dll with given script to run". but, If you integrated PY engine (activepython), no need in PY dll. Hope you can fix CodeIntel to work in PY engine .

Offline Anonymous

  • Anonymous
  • Jr. Member
  • **
  • Posts: 77
  • Karma: +0/-0
    • View Profile
Re: SublimeCodeIntel for HE?
« Reply #6 on: May 16, 2013, 08:30:59 pm »
Someone can make PY script from SublimeCodeIntel, which can be called w/out Sublime?

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2181
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: SublimeCodeIntel for HE?
« Reply #7 on: May 16, 2013, 11:41:50 pm »
If someone overtakes python part, I can assist in API from HE side, and provide a help if something is missing.
My knowledge in Python is not enough.