webdesus / polymer-ide.vim Goto Github PK
View Code? Open in Web Editor NEWProvides autocompletion, and more for web components
License: MIT License
Provides autocompletion, and more for web components
License: MIT License
Make better polymer syntaxis highlighting
Write tests for plugin, for example using vader.vim
Progress:
Some users use nvm
program wich allows set on a computer different version node js(#14). Needed make opportunity run using different versions node.js.
Hi,
I'm very happy to see there is a vim plugin, but my attempts to get it installed have not been successful. I wonder if there could be instructions that start from scratch.
So far, I've used pathogen to clone this repo into ~/.vim/bundles, added the pathogen commands to ~/.vimrc, and also done a npm install polymer-analyzer
(and also tried with -g since that seemed to make more sense).
What I get when I edit a src/shop-app.html in the shop app is :
"src/shop-app.html" 542L, 16846C
Error detected while processing function polymer_ide#Enable..<SNR>31_bufferModified..<SNR>31_send_command..<SNR>31_get_process:
line 2:
E117: Unknown function: job_start
E15: Invalid expression: job_start(['node', s:plugin_path . '/../node_modules/polymer-editor-service/lib/polymer-editor-server.js'], {'callback': function('s:_on_stdout')})^I
line 3:
E121: Undefined variable: job
E15: Invalid expression: { 'job': job, 'cmd_id': 0, 'chanel': job_getchannel(job) }
Error detected while processing function polymer_ide#Enable..<SNR>31_bufferModified..<SNR>31_send_command..<SNR>31_get_process..<SNR>31_make_project_processes..<SNR>31_send_command..<SNR>31_get_process:
line 2:
E117: Unknown function: job_start
E15: Invalid expression: job_start(['node', s:plugin_path . '/../node_modules/polymer-editor-service/lib/polymer-editor-server.js'], {'callback': function('s:_on_stdout')})^I
line 3:
E121: Undefined variable: job
E15: Invalid expression: { 'job': job, 'cmd_id': 0, 'chanel': job_getchannel(job) }
Error detected while processing function polymer_ide#Enable..<SNR>31_bufferModified..<SNR>31_send_command..<SNR>31_get_process..<SNR>31_make_project_processes..<SNR>31_send_command..<SNR>31_get_process..<SNR>31_make_project_processes..<SNR>31_send_command..<SNR>31_get_process:
line 2:
E117: Unknown function: job_start
E15: Invalid expression: job_start(['node', s:plugin_path . '/../node_modules/polymer-editor-service/lib/polymer-editor-server.js'], {'callback': function('s:_on_stdout')})^I
line 3:
E121: Undefined variable: job
E15: Invalid expression: { 'job': job, 'cmd_id': 0, 'chanel': job_getchannel(job) }
-- More --
It seems clear that I've not done some basic setup step correctly, or at all.
Any clues to help me get this working?
Thanks.
I'm trying to fully appreciate what this plugin can offer, and I have a couple more basic questions.
When I run :w
on this file, the plugin complains that, among other things, <template>
and <dom-module>
, <paper-spinner>
, etc are not recognized. Looking at the gifs you've included in the readme, I'm wondering if you are assuming different code structure than I'm using, or maybe I'm using an old version of Polymer or something, or maybe it is a different plugin that is causing the error. Should all the tags in that file be recognized and not generate errors with your plugin? Should I be disabling my other checkers if using this plugin?
As for completions, should the IDE-like behavior you're showing in the gifs work with YouCompleteMe as the completer?
I use vim-commentary for commenting. When editing Polymer .html
files, even in script tags, it introduces comments with <!-- -->
rather than js //
. Is that the kind of thing this plugin could handle, even if it requires some sort of plumbing with vim-commentary
?
Hi when trying to use polymer-ide. I'm getting the following error:
Error detected while processing function <SNR>41__on_stdout:
line 2:
E474: Invalid argument
line 3:
E121: Undefined variable: id
E116: Invalid arguments for function exists('s:handlers['. msg.id .']')
E15: Invalid expression: exists('s:handlers['. msg.id .']')
After search and replace I found it corresponds to:
~/.vim/plugged/polymer-ide.vim/autoload/polymer_ide.vim:17: if exists('s:handlers['. msg.id .']')
I've did the NPM install inside the folder (which was a previous error I had). And I even swtiched to Plug
Hi, looks like a nice plugin! Unfortunately I'm not able to get it to work. Seeing the following errors:
Error detected while processing function <SNR>48__on_stdout:
line 2:
E474: Invalid argument
line 3:
E121: Undefined variable: id
E116: Invalid arguments for function exists('s:handlers['. msg.id .']')
E15: Invalid expression: exists('s:handlers['. msg.id .']')
line 2:
E474: Invalid argument
line 3:
E121: Undefined variable: id
E116: Invalid arguments for function exists('s:handlers['. msg.id .']')
E15: Invalid expression: exists('s:handlers['. msg.id .']')
I'm using Vim 8.0. Node version is 8.5.0.
If make error on a file, then go to another file in this window, but first file with error not see on the screen, but then go back and decided error. Mark sign error not be deleted.
Invalid argument when open empty files
Make opportunity to find all places of use component in a code.
Make highlighting error words in the line.
The ability to implement linting in a code.
Next features should be:
Call lint function after saving;
Call lint function using shortkey;
Call lint function after edit document;
Auto fix errors(if it is possible);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.