Built theia-apps/theia-full-docker but lots of warnings no language support

no syntax highlighting or language support working

[1/4] Resolving packages…
warning @theia/callhierarchy > @theia/languages > @theia/application-package > request@2.88.2: request has been deprecated, see https://github.com/request/request/ issues/3142

warning Resolution field “vscode-languageserver@6.0.0-next.1” is incompatible with requested version “vscode-languageserver@^6.0.1”
warning Resolution field “vscode-languageserver-types@3.15.0-next.5” is incompatible with requested version “vscode-languageserver-types@^3.15.1”
warning @theia/plugin-ext > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning @theia/plugin-ext-vscode > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning @theia/cli > mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported.
warning @theia/cli > mocha > mkdirp@0.5.3: Legacy versions of mkdirp are no longer supported.
warning @theia/cli > puppeteer > extract-zip > mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported.
warning @theia/cli > puppeteer-to-istanbul > mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported.
warning @theia/cli > @theia/application-manager > babel-loader > mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported.
warning @theia/cli > @theia/application-manager > less > mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported.
warning @theia/cli > @theia/application-manager > less > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning @theia/cli > @theia/application-manager > webpack > mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported.
warning @theia/cli > @theia/application-manager > webpack-cli > mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported.
warning @theia/cli > @theia/application-manager > copy-webpack-plugin > cacache > mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported.
warning @theia/cli > @theia/application-manager > electron-rebuild > node-gyp > mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported.
warning @theia/cli > @theia/application-manager > electron-rebuild > node-gyp > request@2.88.2: request has been deprecated
warning @theia/cli > @theia/application-manager > webpack > terser-webpack-plugin > cacache > mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported.
warning @theia/cli > @theia/application-manager > copy-webpack-plugin > cacache > move-concurrently > mkdirp@0.5.4: Legacy versions of mkdirp are no longer support ed. )
warning @theia/cli > @theia/application-manager > css-loader > cssnano > autoprefixer > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning @theia/cli > @theia/application-manager > css-loader > cssnano > postcss-merge-rules > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslis t >3.0 config used in other tools.
warning @theia/cli > @theia/application-manager > webpack-cli > webpack-addons > jscodeshift > recast > core-js@2.6.11: core-js@ @theia/application-manager > @theia/compression-webpack-plugin > cacache > mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported.
warning @theia/cli > @theia/application-manager > webpack > watchpack > chokidar > fsevents > node-pre-gyp > mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported.
warning @theia/cli > @theia/application-manager > webpack-cli > jscodeshift > babel-register > core-js@2.6.11: core-js@ @theia/application-manager > webpack-cli > jscodeshift > babel-register > mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported.
warning @theia/cli > @theia/application-manager > webpack-cli > jscodeshift > babel-preset-es2015@6.24.1:

warning @theia/cli > @theia/application-manager > webpack-cli > webpack-addons > jscodeshift > babel-preset-es2015@6.24.1: Thanks for using Babel: we recommend using babel-preset-env now: please read https://babeljs.io/env to update!
warning @theia/cli > @theia/application-manager > webpack-cli > jscodeshift > nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.
warning @theia/cli > @theia/application-manager > webpack-cli > webpack-addons > jscodeshift > nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.
warning @theia/cli > @theia/application-manager > webpack-cli > yeoman-generator > mem-fs-editor > mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
warning @theia/cli > @theia/application-manager > copy-webpack-plugin > cacache > move-concurrently > copy-concurrently > mkdirp@0.5.4: Legacy versions of mkdirp a re no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
warning @theia/cli > @theia/application-manager > css-loader > cssnano > postcss-merge-rules > caniuse-api > browserslist@1.7.7: Browserslist 2 could fail on readi ng Browserslist >3.0 config used in other tools.
warning @theia/cli > @theia/application-manager > css-loader > cssnano > postcss-svgo > svgo > mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported. Ple ase update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
[2/4] Fetching packages…
warning monaco-languageclient@0.10.2: The engine “vscode” appears to be invalid.
warning vscode-languageclient@5.3.0-next.9: The engine “vscode” appears to be invalid.
info fsevents@2.1.2: The platform “linux” is incompatible with this module.

warning “@theia/debug > requestretry@3.1.0” has unmet peer dependency “request@2..”.
warning “@theia/git > @theia/scm > react-autosize-textarea@7.0.0” has unmet peer dependency “react@^0.14.0 || ^15.0.0 || ^16.0.0”.
warning “@theia/git > @theia/scm > react-autosize-textarea@7.0.0” has unmet peer dependency “react-dom@^0.14.0 || ^15.0.0 || ^16.0.0”.
warning “@theia/messages > react-perfect-scrollbar@1.5.8” has unmet peer dependency “react@>=16.3.3”.
warning “@theia/messages > react-perfect-scrollbar@1.5.8” has unmet peer dependency “react-dom@>=16.3.3”.
warning “@theia/cli > @theia/application-manager > font-awesome-webpack@0.0.5-beta.2” has unmet peer dependency “font-awesome@>=4.3.0”.
warning “@theia/cli > @theia/application-manager > font-awesome-webpack > less-loader@2.2.3” has incorrect peer dependency “less@^2.3.1”.

any ideas?

[original thread by joeysmart]

The logs when building are normal, do you see errors when actually starting the application?

[joeysmart]

I am not seeing severe errors - meanwhile I have added some additional plugins - currently on CMakeLists syntax is recognized.

root WARN Backend MiniBrowserEndpoint.configure is slow, took: 73.4 ms
root WARN Backend MetricsBackendApplicationContribution.onStart is slow, took: 73.3 ms
root INFO Configuring to accept webviews on '.+.webview..+' hostname.
root ERROR No plugin resolver found for the entry local_dir://home/project/theia_plugins
root INFO Theia app listening on http://0.0.0.0:3000.
root INFO [FireBlackHat.conan-tools-0.1.1.vsix]: trying to decompress into "/home/builduser/.theia/extensions/FireBlackHat.conan-tools-0.1.1.vsi                            x"...
root INFO [ms-python.python-2020.3.69010.vsix]: trying to decompress into "/home/builduser/.theia/extensions/ms-python.python-2020.3.69010.vsix"                            ...
root INFO [ms-vscode.cpptools-0.26.3.vsix]: trying to decompress into "/home/builduser/.theia/extensions/ms-vscode.cpptools-0.26.3.vsix"...
root INFO [tchojnacki.cpp-compile-0.0.2.vsix]: trying to decompress into "/home/builduser/.theia/extensions/tchojnacki.cpp-compile-0.0.2.vsix"..                            .
root INFO [twxs.cmake-0.0.17.vsix]: trying to decompress into "/home/builduser/.theia/extensions/twxs.cmake-0.0.17.vsix"...
root INFO [tchojnacki.cpp-compile-0.0.2.vsix]: decompressed
root INFO [FireBlackHat.conan-tools-0.1.1.vsix]: decompressed
root INFO [twxs.cmake-0.0.17.vsix]: decompressed
root INFO [ms-vscode.cpptools-0.26.3.vsix]: decompressed
root INFO [ms-python.python-2020.3.69010.vsix]: decompressed
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /home/builduser/.theia/extensions/FireBlackHat.conan-tools-0.1.1.vsix
root INFO Resolved "FireBlackHat.conan-tools-0.1.1.vsix" to a VS Code extension "conan-tools@0.1.1" with engines: { vscode: '^1.26.0' }
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /home/builduser/.theia/extensions/ms-python.python-2020.3.69010.vsix
root INFO Resolved "ms-python.python-2020.3.69010.vsix" to a VS Code extension "python@2020.3.69010" with engines: { vscode: '^1.42.0' }
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /home/builduser/.theia/extensions/ms-vscode.cpptools-0.26.3.vsix
root INFO Resolved "ms-vscode.cpptools-0.26.3.vsix" to a VS Code extension "cpptools@0.26.3" with engines: { vscode: '^1.30.0' }
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /home/builduser/.theia/extensions/tchojnacki.cpp-compile-0.0.2.vsix
root INFO Resolved "tchojnacki.cpp-compile-0.0.2.vsix" to a VS Code extension "cpp-compile@0.0.2" with engines: { vscode: '^1.20.0' }
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /home/builduser/.theia/extensions/twxs.cmake-0.0.17.vsix
root INFO Resolved "twxs.cmake-0.0.17.vsix" to a VS Code extension "cmake@0.0.17" with engines: { vscode: '^1.10.0' }
root INFO Deploying backend plugin "conan-tools@0.1.1" from "/home/builduser/.theia/extensions/FireBlackHat.conan-tools-0.1.1.vsix/extension/out                            /extension"
root INFO Deploying backend plugin "python@2020.3.69010" from "/home/builduser/.theia/extensions/ms-python.python-2020.3.69010.vsix/extension/ou                            t/client/extension"
root INFO Deploying backend plugin "cpptools@0.26.3" from "/home/builduser/.theia/extensions/ms-vscode.cpptools-0.26.3.vsix/extension/dist/main"
root INFO Deploying backend plugin "cpp-compile@0.0.2" from "/home/builduser/.theia/extensions/tchojnacki.cpp-compile-0.0.2.vsix/extension/exten                            sion"
root INFO Deploying backend plugin "cmake@0.0.17" from "/home/builduser/.theia/extensions/twxs.cmake-0.0.17.vsix/extension/out/extension"
root INFO Deploy plugins list took: 3901.2 ms
root INFO Using Git [2.17.1] from the PATH. (/usr/bin/git)
root INFO Detected keyboard layout from pressed keys: German (PC)
root WARN Collided keybinding is ignored;  {"command":"actions.find","keybinding":"ctrl+f","when":null}  collided with  {"command":"core.find","keybinding":"ctrlcmd+f"}
root WARN Could not register keybinding:
  {"command":"actions.find","keybinding":"ctrl+f","when":null}
Error: "ctrl+f" is in collision with something else [scope:0]
root WARN Collided keybinding is ignored;  {"command":"passthrough","keybinding":"ctrl+f","context":"terminalActive"}  collided with  {"command":"terminal:find","keybinding":"ctrlcmd+f","context":"terminalActive"}
root WARN Could not register keybinding:
  {"command":"passthrough","keybinding":"ctrl+f","context":"terminalActive"}
Error: "ctrl+f" is in collision with something else [scope:0]
root WARN Collided keybinding is ignored;  {"command":"passthrough","keybinding":"ctrl+k","context":"terminalActive"}  collided with  {"command":"terminal:clear","keybinding":"ctrlcmd+k","context":"terminalActive"}
root WARN Could not register keybinding:
  {"command":"passthrough","keybinding":"ctrl+k","context":"terminalActive"}
Error: "ctrl+k" is in collision with something else [scope:0]
root INFO [nsfw-watcher: 18] Started watching: /home/builduser/.theia
root WARN Frontend e.onStart is slow, took: 475.1 ms
root INFO Changed application state from 'init' to 'started_contributions'.
root INFO Changed application state from 'started_contributions' to 'attached_shell'.
root INFO >>> Restoring the layout state...
terminal ERROR Couldn't attach - can't find terminal with id: 0
terminal ERROR Couldn't attach - can't find terminal with id: 1
root INFO Checking whether '--no-optional-locks' can be used with the current Git executable. Minimum required version is '2.15.0'.
root INFO '--no-optional-locks' is a valid Git option for the current Git version: '2.17.1'.
root ERROR Couldn't resize terminal -1, because it doesn't exist.
root ERROR Couldn't resize terminal -1, because it doesn't exist.
root INFO [nsfw-watcher: 18] Started watching: /home/project/.theia/launch.json
root INFO [24f56abc-68bc-486a-8ba2-910f4395cbd7] Sync of 5 plugins took: 485.8 ms
root INFO [nsfw-watcher: 18] Started watching: /home/project/.theia/settings.json
terminal ERROR Error attaching to terminal id 0, the terminal is most likely gone. Starting up a new terminal instead.
terminal ERROR Error attaching to terminal id 1, the terminal is most likely gone. Starting up a new terminal instead.
root INFO [nsfw-watcher: 18] Started watching: /home/project/gdews/osal_support/CMakeLists.txt
root INFO [nsfw-watcher: 18] Started watching: /home/project
root INFO [nsfw-watcher: 18] Started watching: /home/project
root INFO [hosted-plugin: 41] PLUGIN_HOST(41) starting instance
root INFO  reply:initialize(0) 41 ms

root ERROR C/C++: I[08:03:08.770] <-- initialized

root ERROR C/C++: I[08:03:08.772] <-- workspace/didChangeConfiguration

root INFO Registering scopes for language: cpp.
root INFO The scopes have been successfully registered for cpp.
root INFO [nsfw-watcher: 18] Started watching: /home/project/gdews/osal_support/osal_support/include/pid_type.h
root INFO [nsfw-watcher: 18] Stopped watching: /home/project/gdews/osal_support/osal_support/include/osal_support.h
root INFO [nsfw-watcher: 18] Started watching: /home/project/gdews/osal_support/osal_support/include/osal_support.h
root INFO [nsfw-watcher: 18] Stopped watching: /home/project/gdews/osal_support/osal_support/include/pid_type.h

@joeysmart I haven’t tested theia-apps yet, but using the following cmake extension I am able to see syntax highlighting in CMakeLists when starting Theia normally.

For example:

[joeysmart]

First of all - thanks a lot for your immediate responses!
Yes - CMake ist the only one working for me
I also need C ++ and Python and last but not least I need to be able to debug C ++ code

No problem :slight_smile: The theia-full image does not seem to have the cpp-debug extension (an internal extension for debugging C++ which is present in theia-cpp (https://github.com/theia-ide/theia-apps/blob/master/theia-cpp-docker/latest.package.json#L20-L21)). If the following extension does not meet your needs, you can use vscode-cpptools. We are unable to use such a plugin due to licensing issues.

For information, in theia-apps we have many different examples of images specialized for different languages which you can most certainly use for inspiration.

[joeysmart]

thanks I’ll try