Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Keep getting this

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Keep getting this

    whenever I try to import new indicator into NT
    Attached Files

    #2
    I think this is because when you import a NinjaScript file, the compiler must run.

    When the compiler runs, it compiles every NinjaScript file in the directory.

    If you have some files in the directory that will not compile because they have errors in them, when the compiler runs after import, it fails and you get that message.

    What you have to do is figure out which files.... may be only one... has an error that won't compile and either fix the error, or delete it and run compile on a different file once it is deleted.

    To figure out which file(s) have compile errors so you can fix or delete, open any NinjaScript file with Tools >> Edit NinjaScript and hit F5.

    F5 runs the compiler on all the NinjaScript files in the folder. Look at the bottom where the errors are, especially to the left where it will tell you in which file the error resides.

    Now open that file with Tools >> Edit NinjaScript, fix the error, or delete with the operating system the .cs file with the error from the folder, and run the compiler again (F5). You must get the compiler to run without it finding any errors in any of the files in the folder before you will be able to import any new NinjaScript files.

    I have created an error intentionally in a file and taken a screenshot to help you locate the file name.

    If you choose to simply delete the offending .cs file, remember that you have to run the compiler again after you delete it from the folder to fully get rid of it.
    Attached Files
    Last edited by Crassius; 10-23-2011, 08:30 PM.

    Comment


      #3
      .................................................. ..........
      Last edited by Gregory Arkadin; 10-23-2011, 05:08 PM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Max238, Today, 01:28 AM
      2 responses
      26 views
      0 likes
      Last Post NinjaTrader_ChristopherJ  
      Started by Shansen, 08-30-2019, 10:18 PM
      25 responses
      949 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by JonesJoker, 04-22-2024, 12:23 PM
      8 responses
      41 views
      0 likes
      Last Post JonesJoker  
      Started by timko, Today, 06:45 AM
      0 responses
      3 views
      0 likes
      Last Post timko
      by timko
       
      Started by Waxavi, 04-19-2024, 02:10 AM
      2 responses
      39 views
      0 likes
      Last Post poeds
      by poeds
       
      Working...
      X