kotlin-language-server icon indicating copy to clipboard operation
kotlin-language-server copied to clipboard

Not finding javax.*, org.apache.*, or other deps (Maven) (VS Code)

Open danieljsummers opened this issue 5 years ago • 1 comments

First up, what a great project! It's enabled me to use a modern language on a legacy system (Java 6 EE), and really enhanced my productivity - so much so, I've been ignoring this for months! :+1:

The short version: VS Code with the plug-in is not resolving anything outside the set of local projects we have. java.* works fine, but javax.* (which I use a lot for HttpServletRequest and HttpServletResponse), org.apache.*, etc., do not. I suspect it's a configuration thing, but I've tried everything I know to try.

A little background about the environment: the "project" I'm working on is actually a collection of projects; there's a parent POM, and then each one is dependent on it. There is also a separate tree (the "dist pattern," as the comments say, though I'd never heard of that) with a separate set of parent/child POMs. The ones in the actual source tree did not used to actually build the project successfully, but I went through and got them all set so that mvn -o package actually works, thinking that this might fix it, but it didn't.

At any rate, I'd be happy to help supply more information. As you may have surmised by the -o parameter, our dependencies are vendored (closed network), so I can't create a public repo with the code. (I had to briefly connect the machine to a commercial network to download the language server!)

Thanks again for this; it's been a lifesaver!

danieljsummers avatar Aug 26 '20 23:08 danieljsummers

I was looking at the source, which led me to the log; mvn wasn't on the path in the environment where I launched VS Code. It is now, and all the referenced libraries are found now. This is not a bug in the project (and I'm crazy-excited to have the issue resolved).

Many thanks for reading my issue. (Feel free to close; I'm leaving it open in case you wanted to remove the labels first.)

danieljsummers avatar Aug 27 '20 01:08 danieljsummers