Skip to content

Commit 69dc786

Browse files
committed
Merge remote-tracking branch 'origin/master' into als/aarch64
2 parents 12b9ad2 + 3582cfd commit 69dc786

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

build/scripts/uberjar.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,9 +354,10 @@ def write_script(file, command, code):
354354
print('Creating script', basename(file.name))
355355
file.write(command.encode('ascii'))
356356
file.write(code)
357-
flags = os.fstat(file.fileno()).st_mode
358-
flags |= stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH
359-
os.fchmod(file.fileno(), stat.S_IMODE(flags))
357+
if os.name != 'nt':
358+
flags = os.fstat(file.fileno()).st_mode
359+
flags |= stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH
360+
os.fchmod(file.fileno(), stat.S_IMODE(flags))
360361

361362
def stop(msg):
362363
errPrint('[ERROR] ' + msg)

language-server/de.cau.cs.kieler.language.server/src/de/cau/cs/kieler/language/server/kicool/KeithCompilationUpdater.xtend

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ class KeithCompilationUpdater implements Observer {
101101
currentSnapshotList.add(new SnapshotDescription(processor.name, currentIndex, currentSnapshotList.length, errors, warnings, infos))
102102
kicoolExt.objectMap.get(uri).add(impl)
103103
currentIndex++
104+
if (!environment.logs.files.isEmpty) {
105+
currentSnapshotList.add(new SnapshotDescription(processor.name + " Log", currentIndex, currentSnapshotList.length, null, null, null))
106+
kicoolExt.objectMap.get(uri).add(environment.logs)
107+
currentIndex++;
108+
}
104109
maxIndex = context.processorInstances.length
105110
kicoolExt.update(uri, context, clientId, command, inplace, false, showResultingModel, currentIndex, maxIndex)
106111
}

test/de.cau.cs.kieler.cli.test/src/de/cau/cs/kieler/cli/test/SCChartsCLITest.xtend

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import org.junit.BeforeClass
1818
import org.junit.Test
1919

2020
import static org.junit.Assert.*
21-
import java.nio.file.Files
21+
import static org.junit.Assume.assumeFalse
2222

2323
/**
2424
* @author als
@@ -180,10 +180,12 @@ class SCChartsCLITest extends AbstractCLITest {
180180
val dir = setupTest("complex-compile")
181181

182182
val wd = new File(dir, "sctx/abo")
183-
val rel_compiler = new File("../../../../" + compiler.path)
183+
val local_compiler = wd.toPath.toAbsolutePath.relativize(compiler.toPath.toAbsolutePath)
184184

185-
// compiler
186-
val command = #[rel_compiler.path, "-v", "-s", "de.cau.cs.kieler.sccharts.netlist", "-o", "code", "-ig", "kieler-gen", "abo.sctx"]
185+
assumeFalse(Platform.isWindows) // FIXME! als: I have no idea why only Windows fails to start the scc.bat despite the correct path
186+
187+
// compile
188+
val command = #[local_compiler.toString, "-v", "-s", "de.cau.cs.kieler.sccharts.netlist", "-o", "code", "-ig", "kieler-gen", "abo.sctx"]
187189
assertEquals("Exit value not zero", 0, command.invoke(wd))
188190

189191
// check results

0 commit comments

Comments
 (0)