Skip to content

Commit fee4391

Browse files
committed
Merge commit '0da4b0fb1b43e28d3b95a9563ca3d1f6e9c0f5cb'
2 parents ea67c40 + 0da4b0f commit fee4391

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66

7+
## [Unreleased]
8+
9+
### Fixed
10+
11+
- Fixed Slang & Verilator: cant run under WSL [#418](https://github.com/mshr-h/vscode-verilog-hdl-support/issues/418)
12+
713
## [1.11.4] - 2023-04-19
814

915
### Fixed

src/linter/SlangLinter.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ export default class SlangLinter extends BaseLinter {
7676
let command: string = binPath + ' ' + args.join(' ');
7777

7878
let cwd: string = this.runAtFileLocation
79-
? docFolder
79+
? isWindows
80+
? path.dirname(docUri)
81+
: docFolder
8082
: vscode.workspace.workspaceFolders[0].uri.fsPath;
8183

8284
this.logger.info('[slang] Execute');

src/linter/VerilatorLinter.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ export default class VerilatorLinter extends BaseLinter {
9999
let command: string = binPath + ' ' + args.join(' ');
100100

101101
let cwd: string = this.runAtFileLocation
102-
? docFolder
102+
? isWindows
103+
? path.dirname(docUri)
104+
: docFolder
103105
: vscode.workspace.workspaceFolders[0].uri.fsPath;
104106

105107
this.logger.info('[verilator] Execute');

0 commit comments

Comments
 (0)