Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Creating a new file does not work with java ide until file is reopened #32

Closed
seaside98 opened this issue Sep 27, 2017 · 5 comments
Closed

Comments

@seaside98
Copy link

When you right click in the tree view and create a new java file, neither the linter or autocomplete works on the file until you close it and open it back up again.

Version 0.6.4

@damieng
Copy link
Contributor

damieng commented Sep 27, 2017

Hmm, this is actually going to be a problem over in atom-languageclient (also me, not shifting the blame - I'll just need to create an issue there and cross-link it here)

Good find, will be affecting all ide-x packages. I thought the grammar change detection would have fired when you save the file. Did you choose the java grammar before saving? Or just the moment you saved it started syntax highlighting but didn't state the ide services?

@fbricon
Copy link
Contributor

fbricon commented Nov 3, 2017

be aware jdt.ls needs to be able to read the file from disk, so you can't get enhanced java support until the file is saved.

@damieng
Copy link
Contributor

damieng commented Nov 3, 2017

not even if we send the entire file contents over with the text doc sync message?

@fbricon
Copy link
Contributor

fbricon commented Nov 3, 2017

No, I had it to work like that initially (it was pretty cool) but ran into a shitload of problems, so decided against.

@fbricon
Copy link
Contributor

fbricon commented Mar 15, 2018

seems to be working now (v 0.8.2)

@damieng damieng closed this as completed Mar 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants