Giter VIP home page Giter VIP logo

polymer-ide.vim's People

Contributors

webdesus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

polymer-ide.vim's Issues

Understanding expected behavior

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?

Error SNR 41

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

Use different nodejs version

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.

Undefined variable :id

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.

more basic instructions?

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.

Linting

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);

Does not remove signs

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.