Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Keep getting this
Collapse
X
-
Tags: None
-
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.Last edited by Crassius; 10-23-2011, 08:30 PM.
-
.................................................. ..........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 Today, 07:04 AM | ||
Started by Shansen, 08-30-2019, 10:18 PM
|
25 responses
949 views
0 likes
|
Last Post Today, 07:01 AM | ||
Started by JonesJoker, 04-22-2024, 12:23 PM
|
8 responses
41 views
0 likes
|
Last Post
by JonesJoker
Today, 06:47 AM
|
||
Started by timko, Today, 06:45 AM
|
0 responses
3 views
0 likes
|
Last Post
by timko
Today, 06:45 AM
|
||
Started by Waxavi, 04-19-2024, 02:10 AM
|
2 responses
39 views
0 likes
|
Last Post
by poeds
Today, 06:37 AM
|
Comment