{"action":"created","issue":{"url":"https://api.github.com/repos/joaotavora/eglot/issues/63","repository_url":"https://api.github.com/repos/joaotavora/eglot","labels_url":"https://api.github.com/repos/joaotavora/eglot/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/joaotavora/eglot/issues/63/comments","events_url":"https://api.github.com/repos/joaotavora/eglot/issues/63/events","html_url":"https://github.com/joaotavora/eglot/issues/63","id":347987887,"node_id":"MDU6SXNzdWUzNDc5ODc4ODc=","number":63,"title":"workspace path as lsp server command line option","user":{"login":"gavocanov","id":1512839,"node_id":"MDQ6VXNlcjE1MTI4Mzk=","avatar_url":"https://avatars1.githubusercontent.com/u/1512839?v=4","gravatar_id":"","url":"https://api.github.com/users/gavocanov","html_url":"https://github.com/gavocanov","followers_url":"https://api.github.com/users/gavocanov/followers","following_url":"https://api.github.com/users/gavocanov/following{/other_user}","gists_url":"https://api.github.com/users/gavocanov/gists{/gist_id}","starred_url":"https://api.github.com/users/gavocanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gavocanov/subscriptions","organizations_url":"https://api.github.com/users/gavocanov/orgs","repos_url":"https://api.github.com/users/gavocanov/repos","events_url":"https://api.github.com/users/gavocanov/events{/privacy}","received_events_url":"https://api.github.com/users/gavocanov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":27,"created_at":"2018-08-06T16:10:05Z","updated_at":"2018-08-08T15:15:05Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI'm trying to use [java lsp](https://github.com/eclipse/eclipse.jdt.ls) and all is working great, but I need to pass a command line argument for the workspace path when starting the lsp server.\r\n\r\nI do not see a way to do it with the current options, is there anyway I can accomplish that ?\r\n\r\n```elisp\r\n(add-to-list 'eglot-server-programs '(java-mode . (\"java\"\r\n                                                      \"-Declipse.application=org.eclipse.jdt.ls.core.id1\"\r\n                                                      \"-Dosgi.bundles.defaultStartLevel=4\"\r\n                                                      \"-Declipse.product=org.eclipse.jdt.ls.core.product\"\r\n                                                      \"-Dlog.protocol=true\"\r\n                                                      \"-Dlog.level=ALL\"\r\n                                                      \"-noverify\"\r\n                                                      \"-Xmx1G\"\r\n                                                      \"-jar\" \"plugins/org.eclipse.equinox.launcher_1.5.100.v20180611-1436.jar\"\r\n                                                      \"-configuration\" \"config_mac\")))\r\n```\r\nI should ad \"-data\" as the last option with project root. If I add a hardcoded path all works fine but I need this to be dynamic, ideally using `(projectile-project-root)` or something similar.\r\n\r\nThnx in advance and keep up the good work, eglot is really great!"},"comment":{"url":"https://api.github.com/repos/joaotavora/eglot/issues/comments/411442472","html_url":"https://github.com/joaotavora/eglot/issues/63#issuecomment-411442472","issue_url":"https://api.github.com/repos/joaotavora/eglot/issues/63","id":411442472,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTQ0MjQ3Mg==","user":{"login":"mkcms","id":10572727,"node_id":"MDQ6VXNlcjEwNTcyNzI3","avatar_url":"https://avatars2.githubusercontent.com/u/10572727?v=4","gravatar_id":"","url":"https://api.github.com/users/mkcms","html_url":"https://github.com/mkcms","followers_url":"https://api.github.com/users/mkcms/followers","following_url":"https://api.github.com/users/mkcms/following{/other_user}","gists_url":"https://api.github.com/users/mkcms/gists{/gist_id}","starred_url":"https://api.github.com/users/mkcms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkcms/subscriptions","organizations_url":"https://api.github.com/users/mkcms/orgs","repos_url":"https://api.github.com/users/mkcms/repos","events_url":"https://api.github.com/users/mkcms/events{/privacy}","received_events_url":"https://api.github.com/users/mkcms/received_events","type":"User","site_admin":false},"created_at":"2018-08-08T15:15:05Z","updated_at":"2018-08-08T15:15:05Z","author_association":"CONTRIBUTOR","body":"Hmm, I don't see any difference in how the server behaves. In fact I don't see any difference with `:workspaceFolders` in `initializationOptions` neither (I thought the wiki said it was required, I was wrong). But I'm only testing this on a very simple project."}}
{"actor":{"display_login":"mkcms"}}