nwolverson / vscode-ide-purescript

PureScript IDE support for VS Code

Home Page:https://marketplace.visualstudio.com/items/nwolverson.ide-purescript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'PureScript: Clean' resulted in an error (command 'purescript.clean' not found)

wclr opened this issue · comments

commented

This happens always when I want to run it.

image

This seems fine to me. Perhaps PureScript extension was not loaded when you run the command? That would happen if you didn't load a .purs file or didn't have some src/**/*.purs or spago.dhall in the open folder

commented

This still seemed strange for me happened when it was expected to work. Probably ideally extension should start not when the purs file is opened but for example, if there are certain files are in the folder and the IDE server should start on the file open.

Extension start is already exactly as you say

    "activationEvents": [
        "onLanguage:purescript",
        "workspaceContains:src/**/*.purs",
        "workspaceContains:spago.dhall"
    ],

The IDE server starts if there is exactly one folder in the workspace, or if you open a file:
https://github.com/nwolverson/vscode-ide-purescript/blob/master/src/extension.ts#L160

Please provide steps to reproduce this issue. Given that it always happens, there must be something different about your workflow as I cannot reproduce.