Git Product home page Git Product logo

Comments (17)

chrmarti avatar chrmarti commented on May 18, 2024 1

Sorry about that. I have published a new release with that change, could you update the installed extension and retry?

from vscode-azure-account.

chrmarti avatar chrmarti commented on May 18, 2024

I think we should ask for which tenant to use. shell.azure.com does that too. With portal.azure.com there is also a tenant preselected.

from vscode-azure-account.

artisticcheese avatar artisticcheese commented on May 18, 2024

How is this supposed to work? My powershell terminal is just closing itself upon launch.

from vscode-azure-account.

chrmarti avatar chrmarti commented on May 18, 2024

@artisticcheese Could you check if there is anything logged to the console (Help > Toggle Developer Tools)?

from vscode-azure-account.

artisticcheese avatar artisticcheese commented on May 18, 2024

image

from vscode-azure-account.

chrmarti avatar chrmarti commented on May 18, 2024

Does the terminal show anything before closing? When you are using an account with multiple tenants (directories), it should at some point show Select directory... and a picker should open after a short time at the top of the window.

from vscode-azure-account.

artisticcheese avatar artisticcheese commented on May 18, 2024

Terminal briefly flashes something and then closes without ability to see anything see below.
2018-03-13_08-43-22

from vscode-azure-account.

chrmarti avatar chrmarti commented on May 18, 2024

@artisticcheese I have pushed a potential fix. Could you checkout this repository, launch it from VS Code and give it a try?

from vscode-azure-account.

artisticcheese avatar artisticcheese commented on May 18, 2024

How do I do that? (checkout repository and launch it from VS code)

from vscode-azure-account.

chrmarti avatar chrmarti commented on May 18, 2024

You can:

  • git clone https://github.com/Microsoft/vscode-azure-account.git
  • Open the newly created vscode-azure-account folder in VS Code.
  • Press F5, that will start a second window the Azure Account extension running from the checked out source.
  • Open Powershell in Cloud Shell
  • Check what is logged in the console (also when it worked).

from vscode-azure-account.

artisticcheese avatar artisticcheese commented on May 18, 2024

This logged into main window upon trying to launch cloud shell

C:\Program Files\Microsoft VS Code\Code.exe --debugBrkPluginHost=38733 --debugId=8a8a2f41-b5c6-49a8-b046-b7764bdd29e9 --extensionDevelopmentPath=D:\test\vscode-azure-account 
Activating extension 'ms-vscode.azure-account' failed: Cannot find module 'D:\test\vscode-azure-account\out\src\extension'.
extensionHostProcess.js:690
Activating extension `ms-vscode.azure-account` failed:  Cannot find module 'D:\test\vscode-azure-account\out\src\extension'
extensionHostProcess.js:453
Here is the error stack:  Error: Cannot find module 'D:\test\vscode-azure-account\out\src\extension'
extensionHostProcess.js:453
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Function.J.Y.t.getExtensionPathIndex.then.o._load (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:671:784)
    at Module.require (module.js:498:17)
    at Module.patchedRequire [as require] (c:\Program Files\Microsoft VS Code\resources\app\extensions\git\node_modules\diagnostic-channel\dist\src\patchRequire.js:14:46)
    at require (internal/module.js:20:19)
    at Function.i [as __$__nodeRequire] (c:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js:30:770)
    at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:693:711
    at t._doActivateExtension (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:693:823)
    at t._activateExtension (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:692:740)
    at Object.actualActivateExtension (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:690:836)
    at e._activateExtension (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:452:920)
    at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:452:539
    at Array.map (native)
    at e._activateExtensions (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:452:514)
    at e.activateByEvent (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:451:14)
    at t.activateByEvent (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:691:203)
    at t.$activateByEvent (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:695:328)
    at e._doInvokeHandler (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:587:832)
    at e._invokeHandler (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:587:550)
    at e._receiveRequest (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:586:658)
    at e._receiveOneMessage (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:586:427)
    at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:585:494
    at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:588:343
    at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:87:749
    at e.fire (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:88:992)
    at Socket.<anonymous> (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:143:227)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:191:7)
    at readableAddChunk (_stream_readable.js:178:18)
    at Socket.Readable.push (_stream_readable.js:136:10)
    at Pipe.onread (net.js:560:20)

from vscode-azure-account.

chrmarti avatar chrmarti commented on May 18, 2024

Sorry, I forgot: After git clone ..., run cd vscode-azure-account and then npm install.

from vscode-azure-account.

artisticcheese avatar artisticcheese commented on May 18, 2024

npm install completed but error still the same

PS D:\test> cd .\vscode-azure-account\
PS D:\test\vscode-azure-account> npm install

> [email protected] postinstall D:\test\vscode-azure-account
> node ./node_modules/vscode/bin/install

Detected VS Code engine version: ^1.21.0
Found minimal version that qualifies engine range: 1.21.0
Fetching vscode.d.ts from: https://raw.githubusercontent.com/Microsoft/vscode/9a199d77c82fcb82f39c68bb33c614af01c111ba/src/vs/vscode.d.ts
vscode.d.ts successfully installed!

added 354 packages in 29.033s

from vscode-azure-account.

chrmarti avatar chrmarti commented on May 18, 2024

You might need to restart VS Code. 🤔

from vscode-azure-account.

artisticcheese avatar artisticcheese commented on May 18, 2024

Did not do much. here what is shown in second window

image

from vscode-azure-account.

chrmarti avatar chrmarti commented on May 18, 2024

@artisticcheese It should ask you which tenant/directory (can be multiple subscriptions) to use. Does that work now? Even if it works: Could you check what is logged to the console and post it here?

from vscode-azure-account.

artisticcheese avatar artisticcheese commented on May 18, 2024

It was my fault, all is working.

from vscode-azure-account.

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.