Comments (4)
Find the reason, the code should be transformed.
from node-client.
@chemzqm Can you give example before/after code in case it helps others?
from node-client.
The module babel-plugin-transform-es2015-modules-commonjs
should be used for transform the code, the code like:
import { Plugin, Function, Autocmd, Command } from 'neovim'
would be transformed to:
var _neovim = require('neovim');
....
babel-plugin-transform-decorators-legacy
is also required for transform decorators, plugin author could also use babel-preset-env
to support older node version.
It fails with untransformed code, but it could only be observed by NVIM_NODE_LOG_FILE
, it would be valuable if the failure could be detected by UpdateRemotePlugins
command
from node-client.
Yeah sorry, this is still on my todo: #43
from node-client.
Related Issues (20)
- more lint checks
- findNvim should work without $PATH
- docs: List projects that use node-client in README.md HOT 1
- Example in README doesn't work HOT 2
- E475: Invalid argument: Channel doesn't exist HOT 4
- unreliable test: `emits "disconnect" after quit`
- Quick start example does not work on Windows: getNvimFromEnv fails HOT 6
- Quickstart example does not work (SyntaxError: Named export 'findNvim' not found. The requested module 'neovim' is a CommonJS module...) HOT 2
- Nvim crashes or node exits when accessing any NeovimClient api HOT 1
- console.log() crashes Nvim or exits node HOT 9
- tests: replace jest with mocha or something else
- logging: default to log level "error" instead of "debug"
- this.logger.info() sends data to nvim.exe (with ALLOW_CONSOLE) HOT 5
- ALLOW_CONSOLE should write to stderr instead of stdout, to avoid breaking stdio RPC channel HOT 1
- client.executeLua() might return a singleton (like "string") which is incompatible with "object" HOT 4
- build: enable full typescript checking of test files
- Remote plugins: Add support for registering functions after host is loaded HOT 1
- docs: recommended way to test a node plugin on GitHub CI? HOT 4
- call a function in already started nvim after it has started HOT 2
- findNvim - Add an option to "stop searching after a match" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-client.