Vscode-code-runner: After an F# program fails, you can't fix it and run again

Created on 28 Feb 2017  路  2Comments  路  Source: formulahendry/vscode-code-runner

I am learning F#. Trying to use CodeRunner in VSCode to test it. I coped a simple example program and tried to run it. got the F# error:

agents.fs(2,1): error FS0222: Files in libraries or multiple-file applications must begin with a namespace or module declaration, e.g. 'namespace SomeNamespace.SubNamespace' or 'module SomeNamespace.SomeModule'

which is fine, since I'm learning F# and I expect lots of mistakes. however, after fixing the error, I cannot run the program again. I get the error from VSCode:

"Code is already running!"

Which it isn't as far as I can see.

Whether is is running or not, I cannot see anyway to stop it or restart it other than restarting vscode

question

All 2 comments

Hi @gbritton1 , as mentioned in README, to stop the running code, there are there wasys:

  • use shortcut Ctrl+Alt+M
  • or press F1 and then select/type Stop Code Run
  • or right click the Output Channel and then click Stop Code Run in context menu

Then, you would see something like [Done] exited with ...
image

Let me know if it works for you!

got it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

w3adventures picture w3adventures  路  3Comments

waithope picture waithope  路  5Comments

nmchgx picture nmchgx  路  3Comments

seiferthan picture seiferthan  路  4Comments

spacesuitdiver picture spacesuitdiver  路  3Comments