Weird Problem
Spire_Jeff
Posts: 1,917
Ok, I'll try to explain this as best I can. I am working on a project in NetLinx Studio 2.2. I make good use of the expand/collapse feature and this is what caused me to notice the problem. I opened one of my include files, clicked the minimize button and was shocked to not see my DEFINE_EVENT section. I was using this file yesterday and everything showed up fine. I tried the maximize all, then the minimize, then the rescan file and nothing fixed it. Then I tried deleting the DEFINE_EVENT and retyping it. When I did this, I saw the normal autocomplete window and it was missing DEFINE_EVENT (also DEFINE_TYPE). The really odd thing is that this only seems to be affecting the include files in this one project. I opened a different project and everything seemed to be ok.
Ok, that was REALLY odd. I tried to compile just to see if it would work and it gave me an error about an include file missing (as it should have). I removed the INCLUDE line , then pushed compile again. It still gave me the error. I noticed that it didn't autosave the files like it normally does. I clicked the save all button, then for giggles opened up the affected file and everything seemed fixed. I tried to compile again and saw that the original error was telling me that the file was still listed in the project. I removed the file and compile worked fine, but my problem seems to have been fixed by clicking the save all button.
Sorry to make this such a long winded post. I still don't know what caused the original problem, but it's fixed now. If anyone knows, I'd be interested in finding out so I don't repeat the same mistake.
Jeff
Ok, that was REALLY odd. I tried to compile just to see if it would work and it gave me an error about an include file missing (as it should have). I removed the INCLUDE line , then pushed compile again. It still gave me the error. I noticed that it didn't autosave the files like it normally does. I clicked the save all button, then for giggles opened up the affected file and everything seemed fixed. I tried to compile again and saw that the original error was telling me that the file was still listed in the project. I removed the file and compile worked fine, but my problem seems to have been fixed by clicking the save all button.
Sorry to make this such a long winded post. I still don't know what caused the original problem, but it's fixed now. If anyone knows, I'd be interested in finding out so I don't repeat the same mistake.
Jeff
0
Comments
I can't remember how I fixed it, i'm pretty sure I just shutdown Netlinx Studio, and re-opened the workspace.
Found that the lines could be restored by using a simple cut and paste command.
Select a line above the missing section, make your selection by holding the <shift> key and click on a line below the missing section. Select Cut (CTRL-X), then Paste (CTRL-V) and all of a sudden the entire section is back, including the missing lines.
This seems to be a Netlinx "feature" that hopefully will be fixed in an upcoming version.
Jeff