Home AMX User Forum NetLinx Studio

NS3 Buglist

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

Comments

  • Jorde_VJorde_V Posts: 393
    device mapping doesn't work, you can only use custom mapping.

    // will add what I find
  • ericmedleyericmedley Posts: 4,177
    Nerieru wrote: »
    device mapping doesn't work, you can only use custom mapping.

    // 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.
  • viningvining Posts: 4,368
    A couple issues that I constantly find annoying.

    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.
  • DHawthorneDHawthorne Posts: 4,584
    Workspaces still aren't quite right. They seem to save properly now without causing a crash, but I find I have to drag a compiled version of some modules into the project folder, or it will use the wrong version, even though my workspace specifies where that module resides. I have no idea where it getting the old version either ... and this just happened with a project that has been working perfectly ... all of a sudden, one of the modules just died after a load, and I had to move the module files. The compiler needs to use the location specified first, like it used to ...
  • viningvining Posts: 4,368
    Here's a perfect example:
    DEFINE_CONSTANT //COMMANDS
    
    CHAR PROJ_QUEUE_DELIM[]	= ';' ;
    

    in my auto complete drop down I get:
    CHARPROJ_QUEUE_DELIM
    

    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.
  • Spire_JeffSpire_Jeff Posts: 1,917
    vining wrote: »
    Here's a perfect example:
    DEFINE_CONSTANT //COMMANDS
    
    CHAR PROJ_QUEUE_DELIM[]	= ';' ;
    

    in my auto complete drop down I get:
    CHARPROJ_QUEUE_DELIM
    

    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
  • viningvining Posts: 4,368
    Spire_Jeff wrote:
    Any chance that when you first typed it in you forgot the space?
    For sure and sometimes I'll start one, get side tracked, come back and finish and then I may end up with the completed version and a couple no longer existing partial versions in the AC table. I guess when it scans the code it looks for new entries and dosen't remove the entries that no longer exist.

    Like the Hotel California "They can check in any time they like but they can never leave".
  • Seriously AMX, the autocomplete feature is all screwed up and needs to be fixed!

    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
  • Spire_Jeff wrote: »
    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

    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
  • PhreaKPhreaK Posts: 966
    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.

    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.
  • Thanks for sharing that Kim. I never noticed that in there.

    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
Sign In or Register to comment.