Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT Editor not finding VS Code 2022 and I can't find 'Attach to process' in VS Code

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

    NT Editor not finding VS Code 2022 and I can't find 'Attach to process' in VS Code

    Hello,

    I get the following error message when clicking on the VS Code button.

    Click image for larger version

Name:	image.png
Views:	64
Size:	3.2 KB
ID:	1290040

    I've restarted, repaired (using NT install and windows repair program features), uninstall and reinstall VS Code but nothing works. NT still not finding VS Code
    So, I have opened the custom folder manually, but I can't find out where is the 'Attach to process' setting in VS Code 2022 as explain here: NinjaTrader 8​ . There is no 'Debug' menu and in Ctrl+Shift+P as well

    Please help.

    #2
    Hello tardi44,

    NinjaTrader does not use VSCode, it uses Visual Studio which is different software. You would need to install Visual Studio 2022 community edition with the .NET Desktop development package, you select this in the installer.

    Try our free, fully-featured, and extensible IDE for creating modern developer apps for Windows, Android, & iOS. Download Community for free today!
    JesseNinjaTrader Customer Service

    Comment


      #3
      I totally missed it. So much time wasted. Thank you so much.

      I now have an alert message telling I have configuration issues, with those 3 projects. Any suggestion please?

      Click image for larger version

Name:	image.png
Views:	53
Size:	20.3 KB
ID:	1290101

      Comment


        #4
        Hello tardi44,

        It looks like you have some extra backfiles that are not needed, you can delete those files. you should just have a single NinjaTrader.Custom.csproj file in the custom folder. If you have others with backup in the name you can remove those.

        The configurations also do not matter because visual studio is not used for building the project, you just open files and save them while the NinjaScript editor is open in the background, it picks that up and compiles automatically.
        JesseNinjaTrader Customer Service

        Comment


          #5
          Thank you NinjaTrader_Jesse.
          I deleted the files and was able to use VS but when compiling I get this error.

          Click image for larger version  Name:	image.png Views:	0 Size:	7.5 KB ID:	1290132
          AssemblyAttributes.cs file contains:
          Code:
          // <autogenerated />
          using System;
          using System.Reflection;
          [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]​
          I have duplicates files in Documents\NinjaTrader 8\bin\Custom\obj\ and sub-folders.
          Any way to delete everything to get a fresh start without reinstalling NT?
          Last edited by tardi44; 02-06-2024, 01:24 PM.

          Comment


            #6
            Hello tardi44,

            That type of error generally happens if you have tried to build from visual studio or vs code. You would correct this by deleting the file mentioned in the error.

            You can remove the folders:
            Documents\NinjaTrader 8\bin\Custom\bin
            Documents\NinjaTrader 8\bin\Custom\obj

            and then recompile from the NinjaScript editor.
            JesseNinjaTrader Customer Service

            Comment


              #7
              Thank you. Have a great day.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by futtrader, 04-21-2024, 01:50 AM
              4 responses
              41 views
              0 likes
              Last Post futtrader  
              Started by Option Whisperer, Today, 09:55 AM
              1 response
              11 views
              0 likes
              Last Post bltdavid  
              Started by port119, Today, 02:43 PM
              0 responses
              1 view
              0 likes
              Last Post port119
              by port119
               
              Started by Philippe56140, Today, 02:35 PM
              0 responses
              3 views
              0 likes
              Last Post Philippe56140  
              Started by 00nevest, Today, 02:27 PM
              0 responses
              2 views
              0 likes
              Last Post 00nevest  
              Working...
              X