Open nlfiedler opened 6 years ago
Hmmm that's not a very helpful error message :/
I just released version 1.0.4 -- could you try with that? I cloned reductive
& it worked just fine.
Thanks for looking int to. I'm attaching the log file, after quitting, deleting the file, and starting VS Code again, so it's as small as I can make it. As I said earlier, it was working and suddenly stopped working. I assume there's something subtle and mysterious that I did to mess it up. My question is, what do I do to clear the cache or whatever so it works again? I really want this to work because the other reason extension gets hung up on my "syntax errors" much too often.
P.S. I tried 1.0.4, didn't make any difference. But thanks for updating this great extension.
Hmm @nlfiedler that error message means "we couldn't find the ./lib
directory". Is it there?
@jaredly I have figured it out. It was indeed the change I made earlier, and that was to switch from npm
to yarn
for use with reductive. When I first cloned reductive I was not yet familiar with yarn, so I used npm i
instead. Everything was fine. Eventually I switched to yarn, so I cleared everything away and ran yarn
. That's when the trouble started. I think what "fixed" it this time was that I removed everything, including node_modules
, and ran npm i
to fetch and rebuild everything. Whatever yarn is doing, it's not sufficient for reason-vscode.
Just to be sure, I removed the build artifacts and node_modules
, then ran yarn cache clean
, and yarn --force install
, opened VS Code; still not happy. Closed VS Code, deleted everything, ran npm i
, opened VS Code, and it's happy. Nothing installed in yarn globally. For npm, I have bs-platform@4.0.5
and reason-cli@3.3.3-macos-1
installed globally. Not sure if that makes a difference.
ooh, thanks for figuring out the cause!
I am using yarn with this plugin & never got any issue. @jaredly it seems the situation is better now.
Using VS Code 1.26.1 and reason-vscode 1.0.3 on macOS. It keeps insisting that I run bsb. It was fine yesterday. Since then I installed yarn via Homebrew, and deleted the
package-lock.json
file. Out of pure superstition, I rannpm i
to get thepackage-lock.json
back, but that didn't help. So how do I clean this thing ("thing" being whatever needs cleaning) so it works again?The project in question is reductive, which has bsb 3.1.1 installed locally, if that matters. I happen to have bsb 4.0.5 installed globally via npm.
The last chunk of the
.lsp/debug.log
file:Thanks for this extension, it's been really nice so far.