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
Vue Support - #83 #1241
Vue Support - #83 #1241
Conversation
what now? |
@zulus Thanks for contributing! It would be great if you add at least some simple JUnit tests with vue.js cases (like to see if vue.js specific diagnostic/code assist/etc. is provided by the LS), |
/request-license-review |
Workflow run (with attached summary files): |
/request-license-review |
Workflow run (with attached summary files): |
Sure! |
I prepared basic tests, similar to angular:
|
BTW: during playing with tests, I realized that TestAngular and TestESLint might use system node, rather than built-in |
Why do you think so? They both use In case of your test, you're generating a command that runs Node.js executable, which gets a path to NPM executable as first argument, then arguments for options...
not sure how this supposed to work... |
On mac, this code produces me only path to NPM location. NPM for *nix have |
See https://github.com/eclipse/wildwebdeveloper/blob/e52e0990f609f3dcbac5648a4bd012ecf9d753a5/org.eclipse.wildwebdeveloper.embedder.node/src/org/eclipse/wildwebdeveloper/embedder/node/NodeJSManager.java#L120, on *nix will return true, This is also reason why windows build not working. So I dropped attaching node path in Vue tests. |
I wonder why nobody else did complain about Mac & Win NPM run failures until now... If it's true then it's worth reporting it as an issue But looking at the GitHub/Jenkins check logs I see NPM executable started from
on Windows and
on Linux - which are surely the Embedded versions, not the system ones. |
Maybe because I've run tests via Junit plugin launcher inside eclipse, not by mvn verify, or other contributors have node inside main PATH (so tests just uses it), my PATH for JUnit Launcher is always fresh ;) I'll prepare ticket. As I see build fail on mvn-license-check, can I do something? Npm licenses has been successfully resolved by IP Team as I see. Any other suggestions for my contribution? I act intuitively now and probably haven't enough experience with LSP4E/TM4E, so just tell me what I should do :D ( this patch is an initiation before I start some PDT improvements :P ) |
That's a question, but, imho, yes the system Node.js/Npm may be used in this case (and that's expected)
Just give me some time to review the PR.
Yes, and that's great.
If you have nothing to add to the PR at this moment we can merge it (after review) as is and then improve the code later. Imho, this is a great improvement. |
(Sorry, closed unintentionally by clicking the wrong button. Everything is restored and open) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good. Please see the requested changes to be fixed before we can merge
org.eclipse.wildwebdeveloper.tests/src/org/eclipse/wildwebdeveloper/tests/TestVue.java
Outdated
Show resolved
Hide resolved
org.eclipse.wildwebdeveloper.tests/src/org/eclipse/wildwebdeveloper/tests/TestVue.java
Outdated
Show resolved
Hide resolved
org.eclipse.wildwebdeveloper.tests/testProjects/vue-app/package-lock.json
Outdated
Show resolved
Hide resolved
org.eclipse.wildwebdeveloper/src/org/eclipse/wildwebdeveloper/vue/VueClientImpl.java
Show resolved
Hide resolved
org.eclipse.wildwebdeveloper/src/org/eclipse/wildwebdeveloper/vue/VueLanguageServer.java
Outdated
Show resolved
Hide resolved
...clipse.wildwebdeveloper/src/org/eclipse/wildwebdeveloper/vue/VueLanguageServerExtention.java
Show resolved
Hide resolved
@zulus Could you please rebase and resolve the requested changes? |
Done, I updated license headers, added missing one, and rebased to current HEAD (I see license problems now :/) BTW, in the meantime vue-language server has been upgraded (1.7.0 to 1.8.3 - https://github.com/vuejs/language-tools/blob/master/CHANGELOG.md), so after merge I'll prepare another pull request with new version |
/request-license-review |
I created the Review requests for the updated modules, hope they will be resolved soon.
Actually you can add this change right now - it will require an additional review for the LS (as it's minor version is changed), but we haven't had any problems with the IP Team review for the previous version, so I don't expect any with the latest one. |
Done |
/request-license-review |
org.eclipse.wildwebdeveloper.tests/testProjects/vue-app/package-lock.json
Outdated
Show resolved
Hide resolved
I've started the IP Team review for Vue.js LS 1.8.3 - so need to wait until it finshes @zulus please follow #1241 (comment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good to me.
@zulus Thank you for the contribution!
I wasn't sure howto correctly register other language files defined in https://github.com/vuejs/language-tools/blob/master/packages/vscode-vue/package.json
*.java classes are mostly copy-paste from typescript server