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

NinjaScript editor cannot find Visual Studio, VSwhere.exe is in right directory

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

    NinjaScript editor cannot find Visual Studio, VSwhere.exe is in right directory

    Hi
    I was going through Visual Studio debugging writeup in the Ninja Script help files. After opening NinjaScript Editor I treid to click Debug mode I get the message Visual Studio not found.

    Looking through forum posts saw that NinjaScript uses Vswhere.exe in the program files (x86) to know the location of Visual Studio installation. Found Vswhere.exe in the correct location and then rnning Vswhere.exe gives location of Visual Studio but NinjaScript editor does not find it in my case.

    When I start Visual Studio I can attach to Ninja Trader process but NinjaScript editor cannot find it. I have Visual Studio 2022 installed.

    Below is the data generated from running Vswhere.exe in my computer:
    Can you please tell me how to address this problem. TIA

    ------------------------------------------------------------------------------------------------------------------------------------------
    C:\Program Files (x86)\Microsoft Visual Studio\Installer>vswhere
    Visual Studio Locator version 3.0.3+45247720e1 [query version 3.4.1128.26111]
    Copyright (C) Microsoft Corporation. All rights reserved.
    instanceId: fa5fd3e2
    installDate: 1/23/2023 11:16:14 AM
    installationName: VisualStudio/17.4.4+33213.308
    installationPath: C:\Program Files\Microsoft Visual Studio\2022\Community
    installationVersion: 17.4.33213.308
    productId: Microsoft.VisualStudio.Product.Community
    productPath: C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\devenv.exe
    state: 4294967295
    isComplete: 1
    isLaunchable: 1
    isPrerelease: 0
    isRebootRequired: 0
    displayName: Visual Studio Community 2022
    description: Powerful IDE, free for students, open-source contributors, and individuals
    channelId: VisualStudio.17.Release
    channelUri: https://aka.ms/vs/17/release/channel
    enginePath: C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services \Microsoft.VisualStudio.Setup.Service
    installedChannelId: VisualStudio.17.Release
    installedChannelUri: https://aka.ms/vs/17/release/channel
    releaseNotes: https://docs.microsoft.com/en-us/vis...s-v17.4#17.4.4
    thirdPartyNotices: https://go.microsoft.com/fwlink/?LinkId=661288
    updateDate: 2023-01-23T16:16:14.5537841Z
    catalog_buildBranch: d17.4
    catalog_buildVersion: 17.4.33213.308
    catalog_id: VisualStudio/17.4.4+33213.308
    catalog_localBuild: build-lab
    catalog_manifestName: VisualStudio
    catalog_manifestType: installer
    catalog_productDisplayVersion: 17.4.4
    catalog_productLine: Dev17
    catalog_productLineVersion: 2022
    catalog_productMilestone: RTW
    catalog_productMilestoneIsPreRelease: False
    catalog_productName: Visual Studio
    catalog_productPatchVersion: 4
    catalog_productPreReleaseMilestoneSuffix: 1.0
    catalog_productSemanticVersion: 17.4.4+33213.308
    catalog_requiredEngineVersion: 3.4.2246.31370
    properties_campaignId: 2030:ce9190f062ca4ed99ebc692faef1a825
    properties_channelManifestId: VisualStudio.17.Release/17.4.4+33213.308
    properties_nickname:
    properties_setupEngineFilePath: C:\Program Files (x86)\Microsoft Visual Studio\Installer\setup.exe

    C:\Program Files (x86)\Microsoft Visual Studio\Installer>vswhere


    #2
    Hello suraj,

    Thanks for your post.

    What version of NinjaTrader are you using? Please provide the full version number (ex: 8.0.X.X). This could be found in the Control Center > Help > About window.

    I look forward to assisting further.
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      Hi Brandon,

      I am using Version 8.0.25.0 64-bit on the machine that I got the error

      but I also use another machine with Version 8.0.24.3 64-bit which I also might have to use for debugging later.

      Thanks
      suraj

      Comment


        #4
        Hello suraj,

        Thanks for your note.

        I see that you're using an older version of NinjaTrader 8. The current version of NinjaTrader 8 is 8.0.27.1.

        Please follow the steps below to upgrade NinjaTrader to the latest version and retest for the error.
        • First, copy your license key from NinjaTrader under Help> License Key then exit NinjaTrader
        • Click on the link: https://ninjatrader.com/PlatformDirect
        • Enter your license key and press Submit
        • Select 'Download'
        • Critical: Before running the installer, ensure NinjaTrader is closed.
        ​Please let me know if I may assist further.
        Brandon H.NinjaTrader Customer Service

        Comment


          #5
          Hi Brandon,

          I installed version 8.0.27.1. on another machine an it fond Visual Studio.

          Is the link to Visual Studio a new addition?
          What did the developers do before this version to debug i.e. is there another way to link Ninja trader with Visual Studio manually to carry out the debg process?

          I would like to see if I can get it to work with the older version of NT listed above because those machines have proprietary indicator licences tied to the MC ID, which the company is no longer functional - reinstalling NT 8 will make the indicators non fnctional with no way to reinstall them.

          Or is there a way to update version of NT 8 without having to reinstall all indicators?
          TIA
          suraj

          Comment


            #6
            Hello suraj,

            Thanks for your note.

            The support for Visual Studio 2022 was added in NinjaTrader version 8.0.26.1.

            To use Visual Studio 2022 for debugging NinjaScripts, you must upgrade to the latest version of NinjaTrader using the steps mentioned in post # 4.

            Or, you could consider using an older version of Visual Studio. Note that for us to diagnose an error or issue, you would need to upgrade to the latest version of NinjaTrader. The error or issue was likely fixed in the updated version of the platform.

            Typically NinjaTrader can be updated without custom indicators being affected. This means indicators are not removed when an update occurs.

            However, if the indicator does not work with the latest version of NinjaTrader, you would need to reach out to the third-party developer who made the script if they are available or find an equivalent indicator that is updated to use with the latest NinjaTrader version.

            Please let me know if I may assist further.

            Brandon H.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by andrewtrades, Today, 04:57 PM
            1 response
            5 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by chbruno, Today, 04:10 PM
            0 responses
            3 views
            0 likes
            Last Post chbruno
            by chbruno
             
            Started by josh18955, 03-25-2023, 11:16 AM
            6 responses
            436 views
            0 likes
            Last Post Delerium  
            Started by FAQtrader, Today, 03:35 PM
            0 responses
            7 views
            0 likes
            Last Post FAQtrader  
            Started by rocketman7, Today, 09:41 AM
            5 responses
            19 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Working...
            X