Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

codesync: export settings - command not found #27

Open
SalvorinFex opened this issue Oct 8, 2017 · 27 comments
Open

codesync: export settings - command not found #27

SalvorinFex opened this issue Oct 8, 2017 · 27 comments

Comments

@SalvorinFex
Copy link

If you are reporting an issue/bug please fill in your VSCode version, CodeSync version, and if you are on version 2.4.0 and above the CodeSync log from the CodeSync output channel. Thanks!

If you are requesting a feature feel free to clear this template.

VSCode version:
1.17.0
CodeSync version:
2.4
CodeSync log:

settings.ts
	2017-10-08T20:47:07.795Z - Creating settings with internal settings.json path and external extensions.json path: C:\Users\USER\.vscode\extensions\golf1052.code-sync-2.4.0\settings.json, extensions.json.
helpers.ts
	2017-10-08T20:47:09.665Z - Found code version: 1.17.0
be377c0faf7574a59f84940f593a6849f12e4de7
.
cs.ts
	2017-10-08T20:47:09.666Z - Checking settings
	2017-10-08T20:47:09.755Z - Setting external extensions path as T:\CodeSync\extensions.json.
	2017-10-08T20:47:09.755Z - CodeSync external sync directory isn't there?
	2017-10-08T20:47:09.755Z - Creating external sync path directory: T:\CodeSync.

Issue: I tried codesync: export settings but it said no command was found, in the upper bar of VSCode.
My local-settings.json is empty and I wanted to check the extensions being exported on my systems.

Not sure if this is a new VSCode version issue or not, as I never tried it before.

@golf1052
Copy link
Owner

golf1052 commented Oct 9, 2017

Did you get this error right after you installed the extension?
Does restarting VSCode help at all?

@SalvorinFex
Copy link
Author

This extension has been running for a while and restarting VS Code doesn't affect the error mentioned.

@golf1052
Copy link
Owner

Did this work in the past for you?
Do any other commands work right now?

@SalvorinFex
Copy link
Author

SalvorinFex commented Oct 13, 2017

I have not tried any codesync commands before and of the ones I just tried they all say, 'not found'

EDIT; the dropdown list shows them when I first start typing: codesync they just don't work.

@golf1052
Copy link
Owner

Is T: a different drive?
Could you try setting up CodeSync on the same drive that VSCode is installed?
If VSCode is installed on T: as well try setting up CodeSync on the same drive as your OS install.

@SalvorinFex
Copy link
Author

T: is a network share, on my domain.
I could try one of my cloud drives though since that's available on my different computers as well.

@SalvorinFex
Copy link
Author

SalvorinFex commented Oct 14, 2017

Is there an easier way to change that location other than to uninstall and reinstall to get that prompt?

@golf1052
Copy link
Owner

Open the command prompt and look for CodeSync: Set external sync path then reload the window.

@SalvorinFex
Copy link
Author

That says command not found too and on at least 2 of my systems.

@golf1052
Copy link
Owner

Ok, my thinking is that remote drives don't work for some reason. I'll set one up and take a look at what's going on.

@SalvorinFex
Copy link
Author

command not found

@golf1052
Copy link
Owner

Ok try reinstalling the extension and setting the path. The commands don't activate until CodeSync loads and I'm guessing an exception is being thrown while it's loading which is preventing you from using any commands.

@SalvorinFex
Copy link
Author

Alright, will do.

@SalvorinFex
Copy link
Author

It appears the same thing is happening, with this local disk path: D:\Cloud Storage\OneDrive\CodeSync on both systems.

@golf1052
Copy link
Owner

golf1052 commented Oct 14, 2017

Ok could you try installing this version of CodeSync: https://1drv.ms/u/s!AnkZumdCoH3t0fw9F44SriLJtaUtRw I've wrapped the startup code in a try catch and any exception should be logged.

Here are the instructions on installing an extension from a VSIX

Post the log here when you've tried this version.

@SalvorinFex
Copy link
Author

Okay, this is strange...I am able to use those commands now.
I changed the codesync directory and exported settings.

"What did you do Willis?"

@golf1052
Copy link
Owner

Nothing that should have caused this issue changed between 2.4.0 and this version, I guess a reinstall helped.

Try your original location again. If that works I guess the issue is solved.

@SalvorinFex
Copy link
Author

yeah, I just tried my T: and that still doesn't work.
I forgot how to get the output errors again.

@SalvorinFex
Copy link
Author

SalvorinFex commented Oct 14, 2017

ALright, more strangeness, It keeps not working on my T: drive then I close Code and reopen and things work, but it has changed my codesync path to a directory on C: drive

C:\Users\USER\OneDrive\Apps\code-sync

@golf1052
Copy link
Owner

The log is under the Output tab I believe. Ctrl+Shift+U opens it.

@SalvorinFex
Copy link
Author

OKay, got that but nothing is showing up in there when that command not found shows up.

@golf1052
Copy link
Owner

Is CodeSync selected in the output window?

@SalvorinFex
Copy link
Author

settings.ts
2017-10-14T19:38:16.613Z - Creating settings with internal settings.json path and external extensions.json path: C:\Users\kroesener.vscode\extensions\golf1052.code-sync-2.5.1\settings.json, extensions.json.
helpers.ts
2017-10-14T19:38:17.075Z - Found code version: 1.17.1
1e9d36539b0ae51ac09b9d4673ebea4e447e5353
.
cs.ts
2017-10-14T19:38:17.077Z - Checking settings
2017-10-14T19:38:17.110Z - Setting external extensions path as T:\CodeSync\extensions.json.
2017-10-14T19:38:17.114Z - Done checking settings.
2017-10-14T19:38:17.114Z - External sync directory: T:\CodeSync
2017-10-14T19:38:17.123Z - Importing settings
local-settings.ts
2017-10-14T19:38:17.143Z - Modifying settings with local settings.
2017-10-14T19:38:17.143Z - Saving imported settings.
cs.ts
2017-10-14T19:38:17.166Z - Finished importing settings.
2017-10-14T19:38:17.168Z - Importing keybindings
2017-10-14T19:38:17.171Z - Failed to import keybindings. Could not find keybindings.json at T:\CodeSync\keybindings.json. Giving up.
2017-10-14T19:38:17.172Z - Importing snippets
2017-10-14T19:38:17.175Z - Failed to import snippets. Could not find snippets directory at T:\CodeSync\snippets. Giving up.
2017-10-14T19:38:17.175Z - Importing extensions
helpers.ts
2017-10-14T19:38:17.185Z - Installing extension: DavidAnson.vscode-markdownlint...
2017-10-14T19:38:18.082Z - Extension was already installed.
2017-10-14T19:38:18.082Z - Installing extension: HookyQR.beautify...
2017-10-14T19:38:18.945Z - Extension was already installed.
2017-10-14T19:38:18.945Z - Installing extension: KnisterPeter.vscode-github...
2017-10-14T19:38:19.759Z - Extension was already installed.
2017-10-14T19:38:19.759Z - Installing extension: McCarter.start-git-bash...
2017-10-14T19:38:20.489Z - Extension was already installed.
2017-10-14T19:38:20.489Z - Installing extension: Shan.code-settings-sync...
2017-10-14T19:38:21.128Z - Extension was already installed.
2017-10-14T19:38:21.128Z - Installing extension: TwentyChung.elixir...
2017-10-14T19:38:21.671Z - Extension was already installed.
2017-10-14T19:38:21.671Z - Installing extension: Wosi.omnipascal...
2017-10-14T19:38:22.354Z - Extension was already installed.
2017-10-14T19:38:22.354Z - Installing extension: abusaidm.html-snippets...
2017-10-14T19:38:22.939Z - Extension was already installed.
2017-10-14T19:38:22.939Z - Installing extension: alefragnani.Bookmarks...
2017-10-14T19:38:23.639Z - Extension was already installed.
2017-10-14T19:38:23.639Z - Installing extension: alefragnani.delphi-pack...
2017-10-14T19:38:24.234Z - Extension was already installed.
2017-10-14T19:38:24.234Z - Installing extension: alefragnani.delphi-themes...
2017-10-14T19:38:24.957Z - Extension was already installed.
2017-10-14T19:38:24.957Z - Installing extension: alefragnani.numbered-bookmarks...
2017-10-14T19:38:25.674Z - Extension was already installed.
2017-10-14T19:38:25.674Z - Installing extension: alefragnani.pascal...
2017-10-14T19:38:26.422Z - Extension was already installed.
2017-10-14T19:38:26.422Z - Installing extension: austin.code-gnu-global...
2017-10-14T19:38:27.112Z - Extension was already installed.
2017-10-14T19:38:27.112Z - Installing extension: bibhasdn.git-easy...
2017-10-14T19:38:27.633Z - Extension was already installed.
2017-10-14T19:38:27.633Z - Installing extension: bokuweb.vscode-git-grep...
2017-10-14T19:38:28.207Z - Extension was already installed.
2017-10-14T19:38:28.207Z - Installing extension: codezombiech.gitignore...
2017-10-14T19:38:28.707Z - Extension was already installed.
2017-10-14T19:38:28.707Z - Installing extension: dbankier.vscode-instant-markdown...
2017-10-14T19:38:29.271Z - Extension was already installed.
2017-10-14T19:38:29.271Z - Installing extension: donjayamanne.githistory...
2017-10-14T19:38:29.792Z - Extension was already installed.
2017-10-14T19:38:29.792Z - Installing extension: donjayamanne.python...
2017-10-14T19:38:30.340Z - Extension was already installed.
2017-10-14T19:38:30.340Z - Installing extension: eg2.vscode-npm-script...
2017-10-14T19:38:30.876Z - Extension was already installed.
2017-10-14T19:38:30.876Z - Installing extension: emmanuelbeziat.vscode-great-icons...
2017-10-14T19:38:31.424Z - Extension was already installed.
2017-10-14T19:38:31.424Z - Installing extension: felipecaputo.git-project-manager...
2017-10-14T19:38:31.921Z - Extension was already installed.
2017-10-14T19:38:31.921Z - Installing extension: golf1052.code-sync...
2017-10-14T19:38:32.485Z - Extension was already installed.
2017-10-14T19:38:32.485Z - Installing extension: hnw.vscode-auto-open-markdown-preview...
2017-10-14T19:38:33.020Z - Extension was already installed.
2017-10-14T19:38:33.020Z - Installing extension: jasonn-porch.gitlab-mr...
2017-10-14T19:38:33.567Z - Extension was already installed.
2017-10-14T19:38:33.567Z - Installing extension: magicstack.MagicPython...
2017-10-14T19:38:34.140Z - Extension was already installed.
2017-10-14T19:38:34.140Z - Installing extension: mattlott.copy-github-url...
2017-10-14T19:38:34.656Z - Extension was already installed.
2017-10-14T19:38:34.656Z - Installing extension: mitaki28.vscode-clang...
2017-10-14T19:38:35.209Z - Extension was already installed.
2017-10-14T19:38:35.209Z - Installing extension: mjmcloug.vscode-elixir...
2017-10-14T19:38:35.738Z - Extension was already installed.
2017-10-14T19:38:35.738Z - Installing extension: moozzyk.Arduino...
2017-10-14T19:38:36.307Z - Extension was already installed.
2017-10-14T19:38:36.307Z - Installing extension: ms-vscode.cpptools...
2017-10-14T19:38:36.851Z - Extension was already installed.
2017-10-14T19:38:36.851Z - Installing extension: ms-vscode.csharp...
2017-10-14T19:38:37.412Z - Extension was already installed.
2017-10-14T19:38:37.412Z - Installing extension: ms-vscode.mono-debug...
2017-10-14T19:38:37.938Z - Extension was already installed.
2017-10-14T19:38:37.938Z - Installing extension: ms-vscode.sublime-keybindings...
2017-10-14T19:38:38.530Z - Extension was already installed.
2017-10-14T19:38:38.530Z - Installing extension: ms-vscode.Theme-MarkdownKit...
2017-10-14T19:38:39.105Z - Extension was already installed.
2017-10-14T19:38:39.105Z - Installing extension: polunzh.start-git...
2017-10-14T19:38:39.614Z - Extension was already installed.
2017-10-14T19:38:39.614Z - Installing extension: robertohuertasm.vscode-icons...
2017-10-14T19:38:40.165Z - Extension was already installed.
2017-10-14T19:38:40.165Z - Installing extension: spywhere.mark-jump...
2017-10-14T19:38:40.689Z - Extension was already installed.
2017-10-14T19:38:40.689Z - Installing extension: steveyin.arduino-vscode...
2017-10-14T19:38:41.241Z - Extension was already installed.
2017-10-14T19:38:41.242Z - Installing extension: streetsidesoftware.code-spell-checker...
2017-10-14T19:38:41.748Z - Extension was already installed.
2017-10-14T19:38:41.748Z - Installing extension: sysoev.vscode-open-in-github...
2017-10-14T19:38:42.335Z - Extension was already installed.
2017-10-14T19:38:42.335Z - Installing extension: thonymg.Darkplusix...
2017-10-14T19:38:42.849Z - Extension was already installed.
2017-10-14T19:38:42.849Z - Installing extension: tht13.python...
2017-10-14T19:38:43.458Z - Extension was already installed.
2017-10-14T19:38:43.458Z - Installing extension: wesbos.theme-cobalt2...
2017-10-14T19:38:43.991Z - Extension was already installed.
2017-10-14T19:38:43.991Z - Installing extension: yanz.markdown-authoring...
2017-10-14T19:38:44.555Z - Extension was already installed.
2017-10-14T19:38:44.555Z - Installing extension: ziyasal.vscode-open-in-github...
2017-10-14T19:38:45.128Z - Extension was already installed.
cs.ts
2017-10-14T19:38:45.128Z - Finished importing extensions.
2017-10-14T20:00:37.552Z - External sync path is now T:\CodeSync.

@SalvorinFex
Copy link
Author

So, I just set the directory to the D: drive, then tried export settings and got this, nothing else in the Output box

command not found_2

@SalvorinFex
Copy link
Author

Some good news, I was able to load a blank, ie no extensions, Code install and install the 2.5.1VISX file and import the list from the T: drive.
This might mean that a fresh install is what I needed, but most people won't want to do that. The command palette also seems to be working fine, so I going to try the same process on my laptop next.

@golf1052
Copy link
Owner

I tried setting up a network share and everything worked fine for me.

@SalvorinFex
Copy link
Author

I was able to set up my laptop and another desktop and just tried a hunch after Code loaded I tried the codesync set external sync path and it failed, I then waited about a minute and tried again and it worked fine. Could there be a timing thing where I am not giving Code enough time to load everything, before trying the import & export and various other items?

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

No branches or pull requests

2 participants