antew / elm-lsp Goto Github PK
View Code? Open in Web Editor NEWLanguage server linting support for Elm using elm-analyse
License: MIT License
Language server linting support for Elm using elm-analyse
License: MIT License
This is so great -- thanks for putting this together.
Currently, it only seems to work if I'm my Vim cwd
is the same as the directory with the elm.json
. It'd be nice if it could recursively check parent directories for elm.json
, that way I can work in subdirectories.
There are relative paths used in dependencies. This could be the cause for a problem with local installations of elm-analyse. It's just a guess, and I have to few information to recreate the issue consistently. If there is no drawback, it could make sense to remove relative paths anyway :)
This is the current dist output:
var vscode_languageserver_1 = require("vscode-languageserver");
var fileLoadingPorts = __importStar(require("../node_modules/elm-analyse/ts/file-loading-ports"));
// import * as dependencies from '../node_modules/elm-analyse/ts/util/dependencies';
var dependencies = __importStar(require("../node_modules/elm-analyse/ts/util/dependencies"));
var Elm = require("../../node_modules/elm-analyse/dist/app/backend-elm.js").Elm;
This is output is without relative paths:
var vscode_languageserver_1 = require("vscode-languageserver");
var fileLoadingPorts = __importStar(require("elm-analyse/ts/file-loading-ports"));
// import * as dependencies from 'elm-analyse/ts/util/dependencies';
var dependencies = __importStar(require("elm-analyse/ts/util/dependencies"));
var Elm = require("elm-analyse/dist/app/backend-elm.js").Elm;
The result compiles and runs:
$ tsc -p tsconfig.json
$ chmod +x dist/lib/index.js
$ ./dist/lib/index.js
There is no elm.json file in this directory. elm-lsp will only work in directories where such a file is located.```
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.