Framclipse problems 

Framclipse problems working with an expdef file. Disappearing code folding, outline, tool tips and code completion.

Sorry to keep asking all these questions but I'm loving Framsticks and can't fit enough of it into my days...

Has anybody come across this problem with Framclipse? (I'm using Eclipse Galileo on a Vista machine with the latest framclipse update) -

After previously working fine with an expdef file, during an edit session I do a save and then suddenly the code folding, range indication and outline disappear, never to be revived. The tooltips and code completion also go and the file becomes basically just a text file, although with coloured syntax still there. The expdef editor still seems to recognise it as an expdef file. It has the framsticks icon and choosing "open with" in the package explorer brings up the expdef editor as first choice, and all the editor preference settings are still set ok.

Framsticks itself also stops loading the expdef file (when previously it worked fine) - I get a compile error at lines where there definitely isn't any code error. I've viewed the file with whitespace showing and couldn't see any gremlin characters. I tried copying all the code into Windows Notepad hoping to clean it of any gremlins but on pasting it back in, no fix.

I've also noticed that doing a "save as" of a good file with a new name can cause the same problem, ie. disappearing code folding etc. However, if I instead make a duplicate of a good file in the package explorer, it seems ok (until I edit then save it).

Some (but not all) of the other epxdef files that I have open at the same time still have all their bells and whistles, and work as they should, so it seems to be a file by file corruption issue rather than a global editor issue.

The only way I've found to recover the code folding etc is to copy and paste the code from the corrupted file into the shell of one that works. Even this is a bit sensitive - I can't copy and paste all in one go - I seem to have to do it code block by code block.

I wonder if there's a bug in the expdef editor that occasionally loses all the code intelligence when it does a save? Alternatively, perhaps gremlin characters creep in and those gremlins are so evil that they don't even show up as whitespace - this could explain the compile failures.

I've rebooted my machine and done a registry clean (I don't know if that's relevant but I have the cleaner, so why not!). I haven't tried deleting then reinstalling the framclipse plugin but I guess that could be a next step - however, I'm worried that if I do that I might lose code intelligence in all my files.

I've posted an example of a problem file here: https://sites.google.com/site/ianwwstuff/framsticks

Feel free to point out any embarrassing errors that I've made!

I'd be pleased to hear from anyone who's experienced similar problems, and how they may have stopped them...

Cheers

Ian

Forums: 
Maciej Komosinski's picture

Well, Framclipse is (1) still under development, and (2) open-source project developed by third-party programmers. I am supervising and assisting in development, but not programming it... and we are aware that it is not perfect, some bugs are identified and described at

http://www.framsticks.com/trac/framsticks/query?status=accepted&status=a...

I will be posting in the "Announcements" forum when new releases are available. For now, removing line 21 from your expdef script will help (code not allowed outside of functions).

OK, thanks Maciej - Framclipse is still very useful and I'm grateful to you and the open sourcers for it. I'm content to do work arounds as I need.

Cheers

Ian