NS3 Buglist
John Gonzales
Posts: 609
Hi Everyone, didn't see an existing unified thread for this but here are a couple of bugs in NS3 in case you run into it.
1) If you try to compile a file that is inside of a subfolder that has an apostrophe in the name it won't compile. NS3 will throw a syntax error. Here's an example. File is nested inside the folder \John's Documents.
When you try to compile, this is what you get:
ERROR: N:\My Documents\John(0): C10201: Syntax error; Illegal or Invalid syntax in code
N:\Documents\John's Documents\AMX Modules\Volume-Matrix Control\Volume-Matrix Control__Main.axs - 1 error(s), 0 warning(s)
2) If you inadvertently have two functions defined with the same name you get the following error during compile:
ERROR: (0): C10580: Internal Error: Major system error occurred during code generation
No indication of what, where, or why. This happened when I cut and pasted a function several times to modify and forgot to change the name on one of the instances.
Hope this helps save some time for someone.
--John
1) If you try to compile a file that is inside of a subfolder that has an apostrophe in the name it won't compile. NS3 will throw a syntax error. Here's an example. File is nested inside the folder \John's Documents.
When you try to compile, this is what you get:
ERROR: N:\My Documents\John(0): C10201: Syntax error; Illegal or Invalid syntax in code
N:\Documents\John's Documents\AMX Modules\Volume-Matrix Control\Volume-Matrix Control__Main.axs - 1 error(s), 0 warning(s)
2) If you inadvertently have two functions defined with the same name you get the following error during compile:
ERROR: (0): C10580: Internal Error: Major system error occurred during code generation
No indication of what, where, or why. This happened when I cut and pasted a function several times to modify and forgot to change the name on one of the instances.
Hope this helps save some time for someone.
--John
0
Comments
// will add what I find
Well, it kinda does. You have to declare your device(s), save and exit the program. ONce you come back in you'll probably see the device available for mapping. (sometimes)
I've also noticed that when you first enter device mapping, the 'devices to map to' window is empty and you have to click some other IR firle (or whatever) to populate the window.
The auto complete pop up seems to list constants that don't exist as if I partially typed them they get written into this table or if I define them in define constants section and later change the name to something more appropriate the list doesn't get refreshed & ammended.
Code folding or should I say code disappearing. Occansionally code will just disappear and you'll notice numbers missing on the left margin. This doesn't always happen just because the code was folded and some section didn't re-open correctly. If I fold one function I'll later notice another function is missing and w/o the little red folding indicator thingy. Sometime sections just disappear for no reason and the only way to get them back is to close the file and re-open it.
in my auto complete drop down I get:
it comes up at the head of the list when I type PR.....
And I scroll to where it should be in alpha order there's nothing. Did a file save and there's no change.
This stuff is just getting goofy? At least this is still in my the code just displays incorrect in AC. Other times when I changed the name the old name stays in the AC drop down until for no rhyme or reason it goes away. I think it knows when I'm done writng code and then it purges the garbage.
Any chance that when you first typed it in you forgot the space? I have noticed that sometimes the autocomplete tracks only the first thing I typed on the line and occasionally misses an update when I correct a typo. It would be nice if there was a way to force NS3 to refresh its data.
Jeff
Like the Hotel California "They can check in any time they like but they can never leave".
Between storing incorrect variable and keyword names like Vining mentioned and not even offering up legitimate variable names, it's a useless feature. Does anyone at AMX actually use NS3 to program, or is there some secret internal compiler that you all use? It can't be just me and Vining that are having this problem.
--John
You can force it to refresh with "Rescan source file". I remember NS2 used to have a shorcut Function button (F5 maybe?) to rescan source file but in NS3 you have to go to Edit->Advanced->Rescan Source File. But again, it doesn't always fix the autocomplete.
--John
If you head into 'Settings > Customize > Keyboard' you can associate F5 with it.
Agreed though, autocomplete is an incredibly important feature of a modern IDE, AMX's current implimentation is a bit on the craptacular side.
Also I don't think the "Rescan Source File" is working properly in NS3 either.
And the editor doesn't highlight things properly. I've got a STACK_VAR INTEGER that is colored as though it's not defined whereas other stack_vars are highlighted properly. Some variables are highlighted the same color as constants, whereas others will be colored correctly -- I still haven't figured out any pattern to why or when this happens. It's seems very random.
This is all in the latest and "greatest" 3.1.0.374 version of NS3.
--John