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

command 'clojureVSCode.manuallyConnectToNRepl' not found #68

Open
sc-lewis-notestine opened this issue Sep 25, 2017 · 7 comments
Open

Comments

@sc-lewis-notestine
Copy link

PROBLEM:
cannot connect to running REPL.

REPRO:

  1. Install extension and reload per normal.
  2. Set the "clojureVSCode.autoStartNRepl" setting to false
  3. Try to attach to a running repl by Cmd+Shift+P : Clojure: connect to a running nREPL

EXPECTED:
Successful connect to running REPL

OBSERVED:
"command 'clojureVSCode.manuallyConnectToNRepl' not found"

ENVT:
Mac OSX 10.12
VSCODE 1.16.1

NOTE: Also found that the nREPL was also taking an indefinite amt of time when automatically starting-

@sc-lewis-notestine
Copy link
Author

NOTE: was able to get workaround by going into the extensions directory for VSCode and manually building with NPM install per
microsoft/vscode#18537

However did not expect to have to do this - installed via the Extension Mktplace from within Vs Code.

@avli
Copy link
Owner

avli commented Sep 27, 2017

That's weird. Could you try to delete the extension completely, remove all its directories from the VSCode extension directory and try to install it from Marketplace again and share the results?

@mradke
Copy link

mradke commented Sep 29, 2017

UPDATE:
I don't know why but somehow it does not throw the error message anymore.


Same problem, same environment.
The suggested workaround of sc-lewis did not work for me either.

Steps taken:

  • deleted ~/.vscode/extensions/avli.clojure-0.9.0 manually, via rm -r
  • restarted code
  • reinstalled from the Marketplace
  • closed code
  • restarted code, error still present
  • ran npm install && npm run vscode:prepublish in the extension directory
  • this fails for me

Maybe relevant info: node v8.5.0 / npm v5.3.0

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/8.5.0/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'run-script',
1 verbose cli   'vscode:prepublish' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prevscode:prepublish',
4 verbose run-script   'vscode:prepublish',
4 verbose run-script   'postvscode:prepublish' ]
5 info lifecycle [email protected]~prevscode:prepublish: [email protected]
6 info lifecycle [email protected]~vscode:prepublish: [email protected]
7 verbose lifecycle [email protected]~vscode:prepublish: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~vscode:prepublish: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/$USER/.vscode/extensions/avli.clojure-0.9.0/node_modules/.bin:/Users/$USER/.local/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
9 verbose lifecycle [email protected]~vscode:prepublish: CWD: /Users/$USER/.vscode/extensions/avli.clojure-0.9.0
10 silly lifecycle [email protected]~vscode:prepublish: Args: [ '-c', 'tsc -p ./' ]
11 silly lifecycle [email protected]~vscode:prepublish: Returned: code: 1  signal: null
12 info lifecycle [email protected]~vscode:prepublish: Failed to exec vscode:prepublish script
13 verbose stack Error: [email protected] vscode:prepublish: `tsc -p ./`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:289:16)
13 verbose stack     at emitTwo (events.js:125:13)
13 verbose stack     at EventEmitter.emit (events.js:213:7)
13 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14)
13 verbose stack     at emitTwo (events.js:125:13)
13 verbose stack     at ChildProcess.emit (events.js:213:7)
13 verbose stack     at maybeClose (internal/child_process.js:927:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
14 verbose pkgid [email protected]
15 verbose cwd /Users/$USER/.vscode/extensions/avli.clojure-0.9.0
16 verbose Darwin 16.6.0
17 verbose argv "/usr/local/Cellar/node/8.5.0/bin/node" "/usr/local/bin/npm" "run-script" "vscode:prepublish"
18 verbose node v8.5.0
19 verbose npm  v5.3.0
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] vscode:prepublish: `tsc -p ./`
22 error Exit status 1
23 error Failed at the [email protected] vscode:prepublish script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

@jc776
Copy link

jc776 commented Sep 30, 2017

The extension only 'activates' after you open a Clojure file, "onLanguage:clojure", but the Command Palette entries are are visible immediately.

With 0.9.0 from the Marketplace, I had this error when trying the commands immediately after opening the folder. After opening any .clj, .cljs, .cljc file, the commands do exist. build.boot counts as Plain Text unless registered by another extension or manually in User Settings.

The copy from the Marketplace does not have the src directory, so you can't re-compile it with prepublish. The node_modules and out/src directories look OK, though.

    "files.associations": {
        "*.boot": "clojure"
    }

@avli
Copy link
Owner

avli commented Oct 9, 2017

@sc-lewis-notestine does the solution from the previous post work for you?

@cswl
Copy link

cswl commented Nov 27, 2017

I too had the same error.. I set clojureVSCode.autoStartNRepl to false and reinstalled then I was able to connect manually..

However start nREPL from VSCode doesnt work.. this error is thrown


/home/shared/VSCode-linux-x64/resources/app/out/vs/workbench/workbench.main.js:10 spawn lein ENOENT: Error: spawn lein ENOENT
	at exports._errnoException (util.js:1050:11)
	at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
	at onErrorNT (internal/child_process.js:367:16)
	at _combinedTickCallback (internal/process/next_tick.js:80:11)
	at process._tickCallback (internal/process/next_tick.js:104:9)
e.onUnexpectedError @ /home/shared/VSCode-linux-x64/resources/app/out/vs/workbench/workbench.main.js:10
/home/shared/VSCode-linux-x64/resources/app/out/vs/workbench/workbench.main.js:9 nREPL already started.
e.doShow @ /home/shared/VSCode-linux-x64/resources/app/out/vs/workbench/workbench.main.js:9

Kind of strange since I do have lein installed..

@antons1
Copy link

antons1 commented Jan 12, 2018

I had this exact error, appearing after i set clojureVSCode.autoStartNRepl to false. It worked after opening a .clj file.

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

6 participants