Skip to content

VSCode Extension on MacOSX - Couldn't start client Kotlin Language Server #19

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

Closed
rmaclean opened this issue Jun 20, 2018 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@rmaclean
Copy link

So on MacOSX, the extension just does not run when installed from the store. I get a notification with Couldn't start client Kotlin Language Server

The cause is that the kotlin-language-server is not marked as executable, so doing the following chmod +x ~/.vscode/extensions/fwcd.kotlin-0.1.3/build/install/kotlin-language-server/bin/kotlin-language-server helped resolve this particular issue.

Not sure how, but if you can give me a pointer, happy to do a PR to add this into the build maybe?

In the developer tools console this is the stack trace

INFO no standard startup: not just one text editor
extensionService.ts:870 [xabikos.JavaScriptSnippets]: Unknown language in `contributes.JavaScriptSnippets.language`. Provided value: vue
w._logMessageInConsole @ extensionService.ts:870
console.ts:136 [Extension Host] Activating Kotlin language server...
console.ts:136 [Extension Host] Looking for java in PATH
console.ts:136 [Extension Host] /Users/rmaclean/.vscode/extensions/fwcd.kotlin-0.1.3/build/install/kotlin-language-server/bin/kotlin-language-server 
notificationsAlerts.ts:42 Couldn't start client Kotlin Language Server
e.onDidNotificationChange @ notificationsAlerts.ts:42
console.ts:136 [Extension Host] rejected promise not handled within 1 second
t.log @ console.ts:136
mainThreadExtensionService.ts:43 [fwcd.kotlin]spawn EACCES
e.$onExtensionRuntimeError @ mainThreadExtensionService.ts:43
mainThreadExtensionService.ts:44 Error: spawn EACCES
	at exports._errnoException (util.js:1050:11)
	at ChildProcess.spawn (internal/child_process.js:319:11)
	at Object.exports.spawn (child_process.js:390:9)
	at _getServerWorkingDir.then.serverWorkingDir (/Users/rmaclean/.vscode/extensions/fwcd.kotlin-0.1.3/node_modules/vscode-languageclient/lib/main.js:346:40)
	at <anonymous>
e.$onExtensionRuntimeError @ mainThreadExtensionService.ts:44
@fwcd fwcd added the bug Something isn't working label Jun 20, 2018
@fwcd
Copy link
Owner

fwcd commented Jun 20, 2018

@rmaclean According to this stackoverflow thread, the solution is apparently to call chmod through Gradle:

task filepermission(type: Exec) {
    commandLine 'chmod', '700', '<file_path>'
}

Not sure if this will work on Windows though...

@fwcd fwcd closed this as completed in acaa908 Jul 20, 2018
@fwcd
Copy link
Owner

fwcd commented Jul 20, 2018

@rmaclean Should be fixed with version 0.1.6 which is now live on the marketplace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants