hotheaded-vscode icon indicating copy to clipboard operation
hotheaded-vscode copied to clipboard

Works only on the first error

Open xRealNeon opened this issue 4 years ago • 9 comments

Hello I have Kubuntu 20.04.1 LTS and have compiled it according to your instructions but it always works only at the first error

xRealNeon avatar Jan 15 '21 10:01 xRealNeon

Hi,

Hotheaded-vscode will not complain about all errors. If the same kind of error happens twice in a row, it will only complain about the first. For some languages, and in some cases, it will only complain about the first error to appear on each line. Could this be what happens to you?

Can you test by writing (not copying) this JavaScript code:

const a =

It should cause an error as it's not completed code. Follow by adding this:

const a = b;

Another error, as b is not defined.
Hotheaded-vscode should complain once for each of the two errors.

89netraM avatar Jan 15 '21 12:01 89netraM

Only the first one worked

xRealNeon avatar Jan 15 '21 12:01 xRealNeon

and I noticed that at the end of the sound is such a scratchy noise

xRealNeon avatar Jan 15 '21 12:01 xRealNeon

Well, that's no good. My guess is that it's probably a problem with node-speaker (the library I'm using to playback audio) and Linux.

Can you try with a different audio backend? The instructions for those are listed on node-speakers page. You'll have to install node-speaker the way listed on their page before step 3.

89netraM avatar Jan 15 '21 13:01 89netraM

which one should i use?

xRealNeon avatar Jan 15 '21 13:01 xRealNeon

I don't know, I unfamiliar with Linux. Take a look at the different options an pick one that seems to fit your distro.

89netraM avatar Jan 15 '21 13:01 89netraM

I have already tried it with a few but it always comes the same error (sorry for the german)

make: Verzeichnis „/home/jan/Coden/hotheaded-vscode/node_modules/speaker/build“ wird betreten
make: *** Keine Regel vorhanden, um das Ziel „Release/obj.target/output/deps/mpg123/src/output/pulseaudio.o“, 
  benötigt von „Release/obj.target/deps/mpg123/liboutput.a“, zu erstellen.  Schluss.
make: Verzeichnis „/home/jan/Coden/hotheaded-vscode/node_modules/speaker/build“ wird verlassen

xRealNeon avatar Jan 15 '21 13:01 xRealNeon

It seems to me like a problem with the makefile of either node-speaker or the audio backend you've chosen. If you're up to it, dig into the makefile, or ask them about it.

I understand some German, but no Linux.

89netraM avatar Jan 15 '21 13:01 89netraM

ok i have no idea about makefiles either so i will write to the node-speaker guys

xRealNeon avatar Jan 15 '21 13:01 xRealNeon