Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

command 'extension.deploy' not found #28

Closed
nopower0 opened this issue Jan 18, 2017 · 19 comments
Closed

command 'extension.deploy' not found #28

nopower0 opened this issue Jan 18, 2017 · 19 comments
Labels

Comments

@nopower0
Copy link

When deploying to a sftp target, "command 'extension.deploy' not found" message is shown. And I cannot find the Quick Deploy button even if I have "button" section configured.

@Edd-Gao
Copy link

Edd-Gao commented Jan 18, 2017

Same problem happened to me.

@hkm-mo
Copy link

hkm-mo commented Jan 18, 2017

So me too

@mkloubert
Copy link
Owner

What versions of VSCode and the extenstion do you use?

@mkloubert
Copy link
Owner

Have you tried to reinstall the extension?

@hkm-mo
Copy link

hkm-mo commented Jan 18, 2017

I have reinstalled the extension. But the issue still exist.
My installed version is VSCode 1.8.1(OSX) + Deploy 5.3.1

@mkloubert
Copy link
Owner

mkloubert commented Jan 18, 2017

I currently have no problems (VSCode 1.8.1, Windows, Deploy 5.3.1).

Have you checked the debug console (CTRL + SHIFT + Y)?

Has pop uped an error message at the top of VSCode?

@Edd-Gao
Copy link

Edd-Gao commented Jan 18, 2017

I have Vscode 1.8.1 windows 10 deploy 5.3.1.
It pops up saying "command extension.deploy not found".

@qrti
Copy link

qrti commented Jan 18, 2017

same problem here, command extension.deploy not found,
win10, vscode 1.8.1, deploy 5.3.1

@lvbeck
Copy link

lvbeck commented Jan 18, 2017

same problem, auto deployment on file save stop working after update to 5.3.1,
when use CTRL + ALT + F, show error: command extension.deploy not found
win10, vscode 1.8.1, deploy 5.3.1

@mkloubert
Copy link
Owner

mkloubert commented Jan 18, 2017

I FOUND THE BUG!

Currently there are missing dependencies for mysql and mssql modules.

AS FAST WORKARROUND: Edit the package.json file in your extension directory (%USERPROFILE%\.vscode\extensions\mkloubert.vs-deploy-5.3.1), go to the bottom and add these 2 references to dependencies:

{    
    // ...
    
	"dependencies": {
		"aws-sdk": "^2.7.19",
		"azure-storage": "^1.4.0",
		"fs-extra": "^1.0.0",
		"ftp": "^0.3.10",
		"glob": "^7.1.1",
		"i18next": "^4.1.4",
		"mime": "^1.3.4",
		"moment": "^2.17.1",
        
        "mysql": "^2.12.0",
        "mssql": "^3.3.0",
        
		"node-uuid": "^1.4.7",
		"node-zip": "^1.1.1",
		"nodemailer": "^2.7.0",
		"ssh2-sftp-client": "^1.0.5"
	},
    
    // ...
}

After that: Open the terminal / command line, go to the extension directory and run

npm install

to install the missing modules. Then start VSCode again.

As I said, I will fix this in about 8 hours.

@lvbeck
Copy link

lvbeck commented Jan 18, 2017

thanks @mkloubert , but the fast workaround still not work for me, the pop up error message disappeared.

@mkloubert
Copy link
Owner

mkloubert commented Jan 18, 2017

[EDIT] OK, the bug should be fixed since version 5.4.0.

Do the following steps:

  • uninstall the extension (CTRL + SHIFT + X, Deploy)
  • close VSCode
  • keep sure to have no existing extension directories (%USERPROFILE%\.vscode\extensions\mkloubert.vs-deploy-*)
  • start VSCode
  • install the extension (CTRL + SHIFT + X and search for vs-deploy)

Please let me know if anything now works.

@lvbeck @qrti @gaochangyu @nopower0 @hkm-mo

@mkloubert mkloubert added the bug label Jan 18, 2017
@nopower0
Copy link
Author

Thank you so much! I've tried with your latest steps and it works!

@lvbeck
Copy link

lvbeck commented Jan 19, 2017

@mkloubert 5.4.1 update still break.

I did exactly as you said, uninstall, close, check legacy folder, restart VS and reinstall extension but didn't help...

no auto deployment as well as CTRL + ALT + F command. and nothing is there in the debug console.

@lvbeck
Copy link

lvbeck commented Jan 19, 2017

I used to deploy my files to a SFTP server, this works perfectly in version 4.x , after I update to 5.x, everthing stop working.

I notice a change related to SFTP in version 4.21.0, maybe the bug is introduced from this release?

@mkloubert
Copy link
Owner

mkloubert commented Jan 19, 2017

@lvbeck When I am testing, it works and I can deploy via SFTP.

Can you post an example of your settings.json here?

@lvbeck
Copy link

lvbeck commented Jan 20, 2017

@mkloubert here is my settings.json:

{
    "deploy": {
        "packages": [
            {
                "name": "My App 1.0.0",
                "description": "My App 1.0.0",
                "files": [
                    "**/*.php",
                    "**/*.js",
                    "**/*.css",
                    "**/*.html",
                    "/*.json"
                ],
                "exclude": [
                    "tests/**"
                ],
                "deployOnSave": true
            }
        ],       
        "showPopupOnSuccess": true,
        "targets": [
            {
                "type": "sftp",
                "name": "My App folder",
                "description": "A SFTP folder",
                "dir": "/var/www/myapp",
                "host": "www.example.com", "port": 22,
                "user": "****", "password": "******"
            }
        ]
    },    
    "php.validate.executablePath": "C:/PHP/php.exe",
    "editor.fontSize": 12
}

@lvbeck
Copy link

lvbeck commented Jan 20, 2017

@mkloubert now it works under certain circumstances, after I disabled all other vscode extensions except deploy and restart vscode, is it possible that some extension conflicts with deploy?

@mkloubert
Copy link
Owner

@lvbeck No, the extension has no dependencies to other extensions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants