Giter VIP home page Giter VIP logo

Comments (5)

nwolverson avatar nwolverson commented on July 29, 2024

How did you configure your build command? By default the command is something like pulp build -- --json-errors, but pulp doesn't yet support psc-package.

You can set a custom build command but as the config doesn't support shell syntax, you may want to use a wrapper script.

(If you build externally then rely on rebuild on save, things should be fine with psc-package, but you will need to configure appropriate file globs if you want goto-definition)

from vscode-ide-purescript.

RAbraham avatar RAbraham commented on July 29, 2024

my bad, I should have mentioned that I'm not using pulp. I tried updating my settings.json with the following addition:

"[purescript]": {
            "purescript.buildCommand": "psc-package build"
    }

psc-package is in my path. But when I build, I get the following warning:

file: 'file:///../settings.json'
severity: 'Warning'
message: 'Unknown Identifier. Use language identifiers'

from vscode-ide-purescript.

nwolverson avatar nwolverson commented on July 29, 2024

Try not nesting under [purescript], I think that is just for editor settings. At least I only see autocomplete in settings.json for purescript.blah at the top level

from vscode-ide-purescript.

RAbraham avatar RAbraham commented on July 29, 2024

Unnesting worked +1. But I could have misinterpreted your suggestion but "purescript.buildCommand": "psc-package build" should have worked?

from vscode-ide-purescript.

nwolverson avatar nwolverson commented on July 29, 2024

Also you'll need to run a build command that runs psc with --json-errors flag, if you want to get error results, I don't think psc-package can do this. Otherwise you can run purs compile with some globs directly, or wrap in a script which uses psc-package sources to get the correct globs to pass in.

But again, mostly the rebuild on save which uses purs ide server directly

from vscode-ide-purescript.

Related Issues (20)

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.