Giter Club home page Giter Club logo

Comments (11)

sbhuttan avatar sbhuttan commented on May 16, 2024 1

I am seeing same behavior on the Terminal. Each line runs individually. I used "Run Selected Text in Active Terminal" as suggested.

image

from vscode-azurecli.

sbhuttan avatar sbhuttan commented on May 16, 2024

Any updates on this issue? Multiline statements still do not seem to work.

from vscode-azurecli.

chrmarti avatar chrmarti commented on May 16, 2024

It doesn't work when running the command in the background with the results shown in a side-by-side editor.

It does work when you put a \ at the end of all but the last line and use Run Selected Text in Active Terminal.

from vscode-azurecli.

chrmarti avatar chrmarti commented on May 16, 2024

The line continuation character for PowerShell is `, not \. I missed you are using PowerShell.

from vscode-azurecli.

mataralhawiti avatar mataralhawiti commented on May 16, 2024

I am seeing same behavior on the Terminal. Each line runs individually. I used "Run Selected Text in Active Terminal" as suggested.

image

I've having the same issue.

from vscode-azurecli.

chrmarti avatar chrmarti commented on May 16, 2024

@mataralhawiti Are you using PowerShell or some Unix shell? Note that PowerShell uses ` (backtick) at the end of each but the last line. Unix shells use \ (backslash).

from vscode-azurecli.

mataralhawiti avatar mataralhawiti commented on May 16, 2024

@mataralhawiti Are you using PowerShell or some Unix shell? Note that PowerShell uses (backtick) at the end of each but the last line. Unix shells use` (backslash).

I'm using the vs code (run line in terminal ) - windows machine

here's my code :

az group create --location westeurope\
--name rg_playground2\
--tags owner:'Matar' for:airflow'

The error :

--name rg_playground2
'--name' is not recognized as an internal or external command,
operable program or batch file.

from vscode-azurecli.

chrmarti avatar chrmarti commented on May 16, 2024

If you are using PowerShell in the terminal you need to replace the backslashes with backticks. If you are using CMD you need to replace the backslashes with carets (^). The different shells have different line continuation characters.

from vscode-azurecli.

mataralhawiti avatar mataralhawiti commented on May 16, 2024

thanks it works now

from vscode-azurecli.

ivanakcheurov avatar ivanakcheurov commented on May 16, 2024

Hi, I have the following command that is not working in Powershell 7.0.3 (Windows10, Visual Studio Code terminal).

az role definition update --role-definition '{ `
   "Name": "Custom Network Contributor Role", `
   "IsCustom": true, `
   "Description": "Can do operations on NICs and join subnets", `
   "Actions": [ `
     "*/read", `
   ], `
   "NotActions": [], `
   "DataActions": [], `
   "NotDataActions": [], `
   "AssignableScopes": [ `
     "/subscriptions/---guid---", `
     "/subscriptions/---another-guid---" `
   ] `
 }'

I get the following error:
Expecting property name enclosed in double quotes: line 1 column 3 (char 2)
I tried with backticks, backslashes, with and without single quotes. Nothing works.

from vscode-azurecli.

AndreyTomilinXmpi avatar AndreyTomilinXmpi commented on May 16, 2024

Same for me: the ` does not work with PowerShell 7.3.0, but works with previous versions.
Welcome to the world of Microsoft standards and backward compatibility!
Some things never change.

from vscode-azurecli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.