Skip to content

Commit

Permalink
Merge pull request #223 from fakusb/hotfix221
Browse files Browse the repository at this point in the history
Hotfix for #221
  • Loading branch information
fakusb authored Apr 6, 2021
2 parents f65a093 + e4070a0 commit a302529
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions server/src/coqtop/CoqTop8.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,14 @@ export class CoqTop extends IdeSlave8 implements coqtop.CoqTop {
this.console.log('starting coqtop');

let coqtopVersion = await coqtop.detectVersion(this.coqtopBin, this.projectRoot, this.console);

if(coqtopVersion)
this.console.log(`Detected coqtop version ${coqtopVersion}`)
else
this.console.warn(`Could not detect coqtop version`)
else {
let fallbackVersion = "8.10"; //no changed behaviour in vscoq since this version
this.console.warn(`Could not detect coqtop version, defaulting to >= ${fallbackVersion}.`);
coqtopVersion = fallbackVersion;
}

this.coqtopVersion = semver.coerce(coqtopVersion);
this.console.log(`Coqtop version parsed into semver version ${this.coqtopVersion.format()}`);
Expand Down

0 comments on commit a302529

Please sign in to comment.