Comments (5)
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.
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.
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.
Unnesting worked +1. But I could have misinterpreted your suggestion but "purescript.buildCommand": "psc-package build"
should have worked?
from vscode-ide-purescript.
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)
- GoTODefination having issue HOT 2
- 'PureScript: Clean' resulted in an error (command 'purescript.clean' not found) HOT 3
- Web extension support HOT 2
- Enable for vscode.dev? HOT 1
- Wrong purs path taken when using nvm HOT 3
- How to disable overlay of export options HOT 1
- Pursuit search doesn't work HOT 2
- formatters fails on windows HOT 5
- New option for syntax highlighting of MissingTypeDeclaration HOT 1
- Is there a way to remove "export (export only this) | export everything else" HOT 3
- Go to symbol in workspace does nothing in 0.26 HOT 3
- Is there any way to see var types? HOT 1
- Warnings can stick around even when no longer relevant.
- Keep formatting/indentation in problems pane error messages HOT 1
- Ctrl + click on a type named Field always opens Data.Field
- Reloading VSCode window sometimes results in exceptions
- Autocomplete for qualified values not optimal HOT 4
- Question:Can it support data constructor autocomplete? HOT 2
- Outline shows only exported values/types HOT 1
- Formatter local installation HOT 3
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 vscode-ide-purescript.