Skip to content

Docker build now fails with what look like latest commits related to xterm-addon-ligatures #3000

@exinknighthigh

Description

@exinknighthigh

The current xtermjs code (commit 01432a3) in a Docker container on Windows (Docker For Windows) fails when doing a build on the stock DockerFile: docker build -t stockxtermjs .

The problems seems related to the xterm-addon-ligatures

Error:

Step 9/9 : RUN npm run build && npm run test
---> Running in 92bc2fd18903

xterm@4.7.0 build /usr/src/app
tsc -b ./tsconfig.all.json

addons/xterm-addon-ligatures/src/font.ts(6,29): error TS2307: Cannot find module 'font-finder' or its corresponding type declarations.
addons/xterm-addon-ligatures/src/font.ts(7,32): error TS2307: Cannot find module 'font-ligatures' or its corresponding type declarations.
addons/xterm-addon-ligatures/src/index.ts(7,22): error TS2307: Cannot find module 'font-ligatures' or its corresponding type declarations.
addons/xterm-addon-ligatures/src/index.ts(75,14): error TS2347: Untyped function calls may not accept type arguments.
addons/xterm-addon-ligatures/src/index.ts(76,9): error TS7006: Parameter 'range' implicitly has an 'any' type.
addons/xterm-addon-ligatures/src/index.test.ts(7,24): error TS2307: Cannot find module 'sinon' or its corresponding type declarations.
addons/xterm-addon-ligatures/src/index.test.ts(9,29): error TS2307: Cannot find module 'font-finder' or its corresponding type declarations.
addons/xterm-addon-ligatures/src/index.test.ts(10,32): error TS2307: Cannot find module 'font-ligatures' or its corresponding type declarations.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! xterm@4.7.0 build: tsc -b ./tsconfig.all.json
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the xterm@4.7.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-07-10T02_46_18_037Z-debug.log
The command '/bin/sh -c npm run build && npm run test' returned a non-zero code: 2

Details

  • Browser and browser version: Any
  • OS version: Windows 10 (Docker For Windows)
  • xterm.js version: 4.7.0

Steps to reproduce

This error should easily reproduced by pulling the latest code and simply attempting a docker build command in Docker For Windows. Whether it can be reproduced on Docker running on a Linux host is unknown.

Metadata

Metadata

Assignees

Labels

type/debtTechnical debt that could slow us down in the long run

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions