Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

How to stop ninjascript files from opening in the editor?

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

    How to stop ninjascript files from opening in the editor?

    Sometimes when I restart ninja or when I import ninjascript, files will load themselves in the editor. This has happened for years across multiple computers so it feels like it might be a known issue with some sort of best practice associated with it so I figured it was worthwhile to ask if anyone know how to stop this behavior?

    #2
    Originally posted by WalterSkinner View Post
    Sometimes when I restart ninja or when I import ninjascript, files will load themselves in the editor. This has happened for years across multiple computers so it feels like it might be a known issue with some sort of best practice associated with it so I figured it was worthwhile to ask if anyone know how to stop this behavior?
    Really?
    In both NT7 and NT8?

    That sounds odd.
    I've never had that happen.

    That behavior seems abnormal to me.
    I have no idea how to stop it.

    -=o=-

    Have you used a Windows file association?

    On my computers I tell Windows to associate
    file extension '.cs' with my favorite text editor,
    which is 'gvim'.

    If you have Visual Studio installed, it will want to
    associate the '.cs' file extension with itself.

    I have imported .zip files plenty of times, but I
    have never had the NinjaScript Editor (or gvim,
    or Visual Studio) open up unexpectedly and show
    me a '.cs' file, which I assume, was just imported
    from the .zip file.

    I mean, an import error just produces a popup
    error message, right? But I digress.

    -=o=-

    Anyways, maybe I'm missing something on my side,
    but I have never seen the behavior you describe.

    For what purpose is NinjaTrader opening the '.cs'
    file in the NinjaScript Editor?

    Does it open a random NinjaScript file?

    Do you get an error message?

    Any log messages in the Log tab?
    Last edited by bltdavid; 02-25-2023, 12:36 PM.

    Comment


      #3
      Originally posted by bltdavid View Post
      Really?
      In both NT7 and NT8?
      NT8, never used 7.

      Have you used a Windows file association?
      Good question. I've recently switched over to Visual Studio over the last few months but I clearly remember this for years well before I made the switch. I've developed ninjascript in so many environments from VMs on various linux distros and also quite a few windows machines I feel like this behavior would crop up intermittently from time to time.


      For what purpose is NinjaTrader opening the '.cs' file in the NinjaScript Editor?
      Could be paranormal

      ​​
      Does it open a random NinjaScript file?
      No it tends to open code that I spent a lot of time on recently but generally not the most recent version.

      ​​
      Do you get an error message?
      I wish.

      ​​
      Any log messages in the Log tab?
      Nope.

      I recorded a video of the behavior before making this post, but rather than post it and share PII I opted for replying to each question this way.



      Comment


        #4
        Hello, thanks for writing in. Unfortunately, there are no settings that would modify this behavior. I would need you to provide a way to reproduce this so I can test it on my PC.
        Chris L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by SantoshXX, Today, 03:09 AM
        0 responses
        11 views
        0 likes
        Last Post SantoshXX  
        Started by DanielTynera, Today, 01:14 AM
        0 responses
        2 views
        0 likes
        Last Post DanielTynera  
        Started by yertle, 04-18-2024, 08:38 AM
        9 responses
        41 views
        0 likes
        Last Post yertle
        by yertle
         
        Started by techgetgame, Yesterday, 11:42 PM
        0 responses
        12 views
        0 likes
        Last Post techgetgame  
        Started by sephichapdson, Yesterday, 11:36 PM
        0 responses
        2 views
        0 likes
        Last Post sephichapdson  
        Working...
        X