Announcement

Collapse
No announcement yet.

Using Vs Code with the Miva Script compiler.

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

    Using Vs Code with the Miva Script compiler.

    After many years using the same text editor I've finally completely converted to using Visual Studio Code. Well almost.

    Does anyone know how do I configure VsCode to run the compiler (with a keystroke) and display the results.
    Ray Yates
    "If I have seen further, it is by standing on the shoulders of giants."
    --- Sir Isaac Newton

    #2
    All I've been able to find so far:
    https://code.visualstudio.com/docs/editor/tasks#vscode

    Looks like you define a task in tasks.json somehow.
    Gordon Currie
    Phosphor Media - "Your Success is our Business"

    Improve Your Customer Service | Get MORE Customers | Edit Any Document Easily | Free Modules | Follow Us on Facebook
    phosphormedia.com

    Comment


      #3
      Anyone ever get this to work?
      William Gilligan - Orange Marmalade, Inc.
      www.OrangeMarmaladeinc.com

      Comment


        #4
        I just set this up today for myself. You have to edit the tasks.json like so:

        HTML Code:
        "tasks": [
            {
                "label": "Build MVC",
                "type": "shell",
                "command": "mvc",
                "args": [
                    "${file}"
                ],
                "problemMatcher": [],
                "group": {
                    "kind": "build",
                    "isDefault": true
                }
            }
        ]
        I didn't look up what "problemMatcher" is about, but it auto-populated that for me and I just left it. Once you set that task as your default, you'll be able to use Ctrl+Shift+B to run it.

        Comment


          #5
          I use batch files (in Windows) to compile the modules. I can create scenarios to compile things differently with DEBUG params. In the tasks.json is there a way to add more params or args?

          and... Hijacking this thread...it is related.

          I thought about converting to VS Code for mivascript/module dev, it's missing one feature. Well, I am not finding how to do it yet. I am looking for a clickable function list feature. My current go to editor is UEStudio/UltraEdit. With a "word" file, a redefined list of words (MvFunction for example) the editor populates a panel with all the found words on file load and associates the line number. Allows me to navigate the file by function names. I've been using UEStudio for over a decade. I am really wanting this feature, or a way fake it somehow. VS Code seems to be great for many established programming languages. I don't know if something exists for those in VS Code. Any ideas?

          Scott
          Need to offer Shipping Insurance?
          Interactive Design Solutions https://www.myids.net
          MivaMerchant Business Partner | Certified MivaMerchant Web Developer
          Competitive Rates, Custom Modules and Integrations, Store Integration
          AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
          My T-shirt Collection is mostly MivaCon T-shirts!!

          Comment

          Working...
          X