New CodeTemplate not recognized

Started by Stefan, November 02, 2009, 10:36:01 AM

Previous topic - Next topic

Stefan

Hi Alex,

last week on Friday i have added an code template to HTML (see pic)
But if i now type '<div'  and press CTRL+Space i didn't see this template in the CT list.
I have to type '<divwi' to get the template.
I think all templates starting with '<div' should be shown?


---

And right now, when i press CTRL+Space and start typing 'dic' (yes, 'dic' by mistake) i get an error (pic 2)

The HTML code was "Paste as HTML" from http://technet.microsoft.com/de-de/magazine/2006.05.utilityspotlight%28en-us%29.aspx

The "restore open files" works two out of three times only, one time i was left back with an 0 byte file.
Stefan, HippoEDIT beta tester 
HippoEDIT - the editor programmers wants to code thyself when they are dreaming.        -Don't just edit. HippoEDIT!-

alex

Hi Stefan,

problem with a template it is a bug. But can be rather serious, because for code completion "prefix" HE uses only leading word symbols, but < is not a word symbol :/ But from another side, somehow first time it was working, when Ctrl+Space is executed direct after < ... So maybe would be not so complex to solve.

Second problem with a crash is very bad, but I could not reproduce it. Have tried with html from link you have pointed, but by me it works.
Can you please send me the file content + all your xmls (as usual, config, data, workspaces) I would try to reproduce. And next time send me crash report ;) You should have it, btw in hippoedit folder: crash.dmp + errorlog.txt. Or you can check call stack by yourself and send it to me. All betas have pdbs installed, so you should see it well.

Best regards,
Alex.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

alex

Hi Stefan,

I think I have reproduced the crash...
Problem comes from last last changes, to insert completion automatically, if only one matching entry exist...
I would fix this asap.

Best regards,
Alex.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

alex

Hi Stefan,

I hope, with 1.47.740 crash should be fixed.

First problem with not shown templates in a list... I think it is by design.
Because, filtering of the content in completion list done based on prefix (one prefix for complete list), if I would use as prefix <d for example then all attributes would be filtered. If I use d as prefix, then of course all templates starting with < filtered. And this is correct. The only one state when all can be shown, is initial when no prefix entered. Can be, that this was discussed when I have implemented this...

So, it is by design. I can, maybe, use different prefixes for different items, or conditions. But this would be big work (also what to do is not clear for me) and I do not want to do it in correction beta.

Maybe I would extend algorithm after 1.50.

Best regards,
Alex.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

Stefan

A> because for code completion "prefix" HE uses only leading word symbols, but < is not a word symbol

A> if I would use as prefix <d for example then all attributes would be filtered.
A> If I use d as prefix, then of course all templates starting with < filtered.

Sorry, i don't understood this.

I think
* all HTML CT starts with '<' sign, so we would have an general problem here?
* if you try '<h' and CTRL+Space    or      '<fram' and CTRL+Space than you will get an list, so it CAN work.
* but if i add several new <DIVxxx CT i can't list them by using      '<div' and CTRL+Space
   OK, one times it works, i have seen my new CT in the list (after HE restart) Or it maybe bc i have them once inserted by typing the key in complete (bc then i see the tooltip and TAB insert the CT)

Now i have modified my CT and have removed the leading '<' -sign.
Now typing 'dev' and CTRL+Space shows me the list.
That's fine for me.
I was just wondering why i can't use the same style as all the other HTML CT (with leading '<' ).

But its O.K. for now.
A> Maybe I would extend algorithm after 1.50
I will remind you  ;D
Stefan, HippoEDIT beta tester 
HippoEDIT - the editor programmers wants to code thyself when they are dreaming.        -Don't just edit. HippoEDIT!-

alex

Quote* all HTML CT starts with '<' sign, so we would have an general problem here?
Yes...

Quote* if you try '<h' and CTRL+Space    or      '<fram' and CTRL+Space than you will get an list, so it CAN work.
as far as I see, you would not get <h listed if you call completion after <h. Same for <fram. You see frame, but this is not template <frame.

You should see your and all other templates, if you press Ctrl+Space on empty space or after any delimiter.

General problem is that filtering does not work for completion list entries, that contain delimiters in text (as any template, starting with < ).
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

Stefan

A> but this is not template

:-\ Ohh, now i see you are right   :-[
Stefan, HippoEDIT beta tester 
HippoEDIT - the editor programmers wants to code thyself when they are dreaming.        -Don't just edit. HippoEDIT!-