Coder Social home page Coder Social logo

elm-lsp's People

Contributors

andys8 avatar antew avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

andys8

elm-lsp's Issues

Doesn't climb directories looking for `elm.json`

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.

Relative dependencies to elm-analyse

Description

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

Change

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.```

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.