{"action":"closed","issue":{"url":"https://api.github.com/repos/redhat-developer/vscode-java/issues/444","repository_url":"https://api.github.com/repos/redhat-developer/vscode-java","labels_url":"https://api.github.com/repos/redhat-developer/vscode-java/issues/444/labels{/name}","comments_url":"https://api.github.com/repos/redhat-developer/vscode-java/issues/444/comments","events_url":"https://api.github.com/repos/redhat-developer/vscode-java/issues/444/events","html_url":"https://github.com/redhat-developer/vscode-java/issues/444","id":297597360,"number":444,"title":"java.import.exclusions preference is ignored during server startup","user":{"login":"fbricon","id":148698,"avatar_url":"https://avatars3.githubusercontent.com/u/148698?v=4","gravatar_id":"","url":"https://api.github.com/users/fbricon","html_url":"https://github.com/fbricon","followers_url":"https://api.github.com/users/fbricon/followers","following_url":"https://api.github.com/users/fbricon/following{/other_user}","gists_url":"https://api.github.com/users/fbricon/gists{/gist_id}","starred_url":"https://api.github.com/users/fbricon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbricon/subscriptions","organizations_url":"https://api.github.com/users/fbricon/orgs","repos_url":"https://api.github.com/users/fbricon/repos","events_url":"https://api.github.com/users/fbricon/events{/privacy}","received_events_url":"https://api.github.com/users/fbricon/received_events","type":"User","site_admin":false},"labels":[{"id":423855029,"url":"https://api.github.com/repos/redhat-developer/vscode-java/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":{"login":"snjeza","id":388609,"avatar_url":"https://avatars2.githubusercontent.com/u/388609?v=4","gravatar_id":"","url":"https://api.github.com/users/snjeza","html_url":"https://github.com/snjeza","followers_url":"https://api.github.com/users/snjeza/followers","following_url":"https://api.github.com/users/snjeza/following{/other_user}","gists_url":"https://api.github.com/users/snjeza/gists{/gist_id}","starred_url":"https://api.github.com/users/snjeza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snjeza/subscriptions","organizations_url":"https://api.github.com/users/snjeza/orgs","repos_url":"https://api.github.com/users/snjeza/repos","events_url":"https://api.github.com/users/snjeza/events{/privacy}","received_events_url":"https://api.github.com/users/snjeza/received_events","type":"User","site_admin":false},"assignees":[{"login":"snjeza","id":388609,"avatar_url":"https://avatars2.githubusercontent.com/u/388609?v=4","gravatar_id":"","url":"https://api.github.com/users/snjeza","html_url":"https://github.com/snjeza","followers_url":"https://api.github.com/users/snjeza/followers","following_url":"https://api.github.com/users/snjeza/following{/other_user}","gists_url":"https://api.github.com/users/snjeza/gists{/gist_id}","starred_url":"https://api.github.com/users/snjeza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snjeza/subscriptions","organizations_url":"https://api.github.com/users/snjeza/orgs","repos_url":"https://api.github.com/users/snjeza/repos","events_url":"https://api.github.com/users/snjeza/events{/privacy}","received_events_url":"https://api.github.com/users/snjeza/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/redhat-developer/vscode-java/milestones/32","html_url":"https://github.com/redhat-developer/vscode-java/milestone/32","labels_url":"https://api.github.com/repos/redhat-developer/vscode-java/milestones/32/labels","id":3123398,"number":32,"title":"End February 2018","description":"","creator":{"login":"fbricon","id":148698,"avatar_url":"https://avatars3.githubusercontent.com/u/148698?v=4","gravatar_id":"","url":"https://api.github.com/users/fbricon","html_url":"https://github.com/fbricon","followers_url":"https://api.github.com/users/fbricon/followers","following_url":"https://api.github.com/users/fbricon/following{/other_user}","gists_url":"https://api.github.com/users/fbricon/gists{/gist_id}","starred_url":"https://api.github.com/users/fbricon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbricon/subscriptions","organizations_url":"https://api.github.com/users/fbricon/orgs","repos_url":"https://api.github.com/users/fbricon/repos","events_url":"https://api.github.com/users/fbricon/events{/privacy}","received_events_url":"https://api.github.com/users/fbricon/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":1,"state":"open","created_at":"2018-02-16T22:15:28Z","updated_at":"2018-02-21T00:15:32Z","due_on":"2018-02-28T08:00:00Z","closed_at":null},"comments":3,"created_at":"2018-02-15T21:09:52Z","updated_at":"2018-02-21T00:15:32Z","closed_at":"2018-02-21T00:15:32Z","author_association":"CONTRIBUTOR","body":"While checking https://github.com/eclipse/eclipse.jdt.ls/issues/539, I realized that `java.import.exclusions` are actually ignored during import, as the import is initialized *before* the preferences are set. See logs:\r\n\r\n```\r\n[Info  - 16:07:58] 15-Feb-2018 4:07:58 PM >> initialize\r\n[Info  - 16:07:58] 15-Feb-2018 4:07:58 PM Initializing Java Language Server 0.13.0.201802152031\r\n[Info  - 16:07:58] 15-Feb-2018 4:07:58 PM >> workspace/didChangeConfiguration\r\n[Info  - 16:07:58] 15-Feb-2018 4:07:58 PM System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences\r\n[Info  - 16:07:58] 15-Feb-2018 4:07:58 PM Creating the default Java project\r\n[Info  - 16:07:58] 15-Feb-2018 4:07:58 PM Finished creating the default Java project\r\n[Info  - 16:07:59] 15-Feb-2018 4:07:58 PM Workspace initialized in 1492ms\r\n[Info  - 16:08:00] 15-Feb-2018 4:07:58 PM >>New configuration: {java={home=/Users/fbricon/.sdkman/candidates/java/8u141-oracle/, jdt={ls={vmargs=-noverify -Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication}}, errors={incompleteClasspath={severity=warning}}, configuration={updateBuildConfiguration=interactive, maven={userSettings=null}}, trace={server=off}, import={gradle={enabled=true}, maven={enabled=true}, exclusions=[**/node_modules/**, **/.metadata/**, **/archetype-resources/**, **/META-INF/maven/**]}, referencesCodeLens={enabled=false}, signatureHelp={enabled=false}, implementationsCodeLens={enabled=false}, format={enabled=true}, saveActions={organizeImports=false}, contentProvider={preferred=fernflower}, autobuild={enabled=true}, completion={favoriteStaticMembers=[org.junit.Assert.*, org.junit.Assume.*, org.junit.jupiter.api.Assertions.*, org.junit.jupiter.api.Assumptions.*, org.junit.jupiter.api.DynamicContainer.*, org.junit.jupiter.api.DynamicTest.*], importOrder=[java, javax, com, org]}, telemetry={enabled=true}}}\r\n```\r\n\r\nNew configuration is set after workspace is initialized.\r\n"}}
{"actor":{"display_login":"fbricon"}}