menu
Channels
Team

Emmet Extension not wokring

June 6, 2019 at 6:49am

Emmet Extension not wokring

June 6, 2019 at 6:49am
I configured Emmet extension in my docker, but the extension is not working properly. throw an issue in the console.

June 6, 2019 at 6:59am
hello could you report the issue of the console, the version of Theia that you're using, the version of Emmet extension etc.
like-fill
1
  • reply
  • like
here is the console error editor.main.js:158 Uncaught Error: Cannot read property 'items' of undefined
TypeError: Cannot read property 'items' of undefined at editor.main.js:2056 at Object.g [as _notify] (editor.main.js:141) at Object.enter (editor.main.js:145) at n.Class.derive._creator._run (editor.main.js:146) at n.Class.derive._creator._completed (editor.main.js:146) at Object.g [as _notify] (editor.main.js:141) at Object.enter (editor.main.js:145) at n.Class.derive._oncancel._run (editor.main.js:146) at n.Class.derive._oncancel._completed (editor.main.js:146) at Object.g [as _notify] (editor.main.js:141) at editor.main.js:158
  • reply
  • like
this is the pakage.json i am using
{ "private": true, "dependencies": { "/preview": "next", "/editor-preview": "next", "vscode-languageclient":"next", "typescript": "latest", "/core": "next", "/editor": "next", "/editorconfig": "next", "/file-search": "next", "/filesystem": "next", "/git": "next", "/json": "next", "/plugin-ext": "next", "/plugin-ext-vscode": "next", "/keymaps": "next", "/languages": "next", "/markers": "next", "/merge-conflicts": "next", "/messages": "next", "/mini-browser": "next", "/monaco": "next", "/navigator": "next", "/outline-view": "next", "/php": "next", "/output": "next", "/preferences": "next", "/process": "next", "/search-in-workspace": "next", "/task": "next", "/terminal": "next", "/textmate-grammars": "next", "/tslint": "next", "/typescript": "next", "/userstorage": "next", "/workspace": "next" }, "resolutions": { "onigasm": "2.2.1", "vscode-uri": }, "devDependencies": { "/cli": "next" }, "scripts": { "postinstall": "download-debug-adapters" }, "adapterDir": "plugins", "adapters": { "vscode-go": "https://ms-vscode.gallery.vsassets.io/_apis/public/gallery/publisher/ms-vscode/extension/Go/0.9.2/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage" } }
  • reply
  • like
this is the pakage.json i am using
{ "private": true, "dependencies": { "/preview": "next", "/editor-preview": "next", "vscode-languageclient":"next", "typescript": "latest", "/core": "next", "/editor": "next", "/editorconfig": "next", "/file-search": "next", "/filesystem": "next", "/git": "next", "/json": "next", "/plugin-ext": "next", "/plugin-ext-vscode": "next", "/keymaps": "next", "/languages": "next", "/markers": "next", "/merge-conflicts": "next", "/messages": "next", "/mini-browser": "next", "/monaco": "next", "/navigator": "next", "/outline-view": "next", "/php": "next", "/output": "next", "/preferences": "next", "/process": "next", "/search-in-workspace": "next", "/task": "next", "/terminal": "next", "/textmate-grammars": "next", "/tslint": "next", "/typescript": "next", "/userstorage": "next", "/workspace": "next" }, "resolutions": { "onigasm": "2.2.1", "vscode-uri": }, "devDependencies": { "/cli": "next" }, "scripts": { "postinstall": "download-debug-adapters" }, "adapterDir": "plugins", "adapters": { "vscode-go": "https://ms-vscode.gallery.vsassets.io/_apis/public/gallery/publisher/ms-vscode/extension/Go/0.9.2/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage" } }
  • reply
  • like
this is the pakage.json i am using
{ "private": true, "dependencies": { "/preview": "next", "/editor-preview": "next", "vscode-languageclient":"next", "typescript": "latest", "/core": "next", "/editor": "next", "/editorconfig": "next", "/file-search": "next", "/filesystem": "next", "/git": "next", "/json": "next", "/plugin-ext": "next", "/plugin-ext-vscode": "next", "/keymaps": "next", "/languages": "next", "/markers": "next", "/merge-conflicts": "next", "/messages": "next", "/mini-browser": "next", "/monaco": "next", "/navigator": "next", "/outline-view": "next", "/php": "next", "/output": "next", "/preferences": "next", "/process": "next", "/search-in-workspace": "next", "/task": "next", "/terminal": "next", "/textmate-grammars": "next", "/tslint": "next", "/typescript": "next", "/userstorage": "next", "/workspace": "next" }, "resolutions": { "onigasm": "2.2.1", "vscode-uri": }, "devDependencies": { "/cli": "next" }, "scripts": { "postinstall": "download-debug-adapters" }, "adapterDir": "plugins", "adapters": { "vscode-go": "https://ms-vscode.gallery.vsassets.io/_apis/public/gallery/publisher/ms-vscode/extension/Go/0.9.2/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage" } }
  • reply
  • like
this is the pakage.json i am using
{ "private": true, "dependencies": { "/preview": "next", "/editor-preview": "next", "vscode-languageclient":"next", "typescript": "latest", "/core": "next", "/editor": "next", "/editorconfig": "next", "/file-search": "next", "/filesystem": "next", "/git": "next", "/json": "next", "/plugin-ext": "next", "/plugin-ext-vscode": "next", "/keymaps": "next", "/languages": "next", "/markers": "next", "/merge-conflicts": "next", "/messages": "next", "/mini-browser": "next", "/monaco": "next", "/navigator": "next", "/outline-view": "next", "/php": "next", "/output": "next", "/preferences": "next", "/process": "next", "/search-in-workspace": "next", "/task": "next", "/terminal": "next", "/textmate-grammars": "next", "/tslint": "next", "/typescript": "next", "/userstorage": "next", "/workspace": "next" }, "resolutions": { "onigasm": "2.2.1", "vscode-uri": }, "devDependencies": { "/cli": "next" }, "scripts": { "postinstall": "download-debug-adapters" }, "adapterDir": "plugins", "adapters": { "vscode-go": "https://ms-vscode.gallery.vsassets.io/_apis/public/gallery/publisher/ms-vscode/extension/Go/0.9.2/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage" } }
  • reply
  • like
this is the pakage.json i am using
{ "private": true, "dependencies": { "/preview": "next", "/editor-preview": "next", "vscode-languageclient":"next", "typescript": "latest", "/core": "next", "/editor": "next", "/editorconfig": "next", "/file-search": "next", "/filesystem": "next", "/git": "next", "/json": "next", "/plugin-ext": "next", "/plugin-ext-vscode": "next", "/keymaps": "next", "/languages": "next", "/markers": "next", "/merge-conflicts": "next", "/messages": "next", "/mini-browser": "next", "/monaco": "next", "/navigator": "next", "/outline-view": "next", "/php": "next", "/output": "next", "/preferences": "next", "/process": "next", "/search-in-workspace": "next", "/task": "next", "/terminal": "next", "/textmate-grammars": "next", "/tslint": "next", "/typescript": "next", "/userstorage": "next", "/workspace": "next" }, "resolutions": { "onigasm": "2.2.1", "vscode-uri": }, "devDependencies": { "/cli": "next" }, "scripts": { "postinstall": "download-debug-adapters" }, "adapterDir": "plugins", "adapters": { "vscode-go": "https://ms-vscode.gallery.vsassets.io/_apis/public/gallery/publisher/ms-vscode/extension/Go/0.9.2/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage" } }
  • reply
  • like
please open an issue on GitHub repo that we can track it
  • reply
  • like
just to recap, one should install vscode extension in plugins folder somehow
  • reply
  • like
e.g. one can add "vscode-emmet": "https://registry.npmjs.org/@theia/vscode-builtin-emmet/-/vscode-builtin-emmet-0.1.0.tgz" to "adapters" property for the given package json
Edited
  • reply
  • like
working perfectly but still the console error is there. is that because of any dependency issue? editor.main.js:158 Uncaught Error: Cannot read property 'items' of undefined
TypeError: Cannot read property 'items' of undefined at editor.main.js:2056 at Object.g [as _notify] (editor.main.js:141) at Object.enter (editor.main.js:145) at n.Class.derive._creator._run (editor.main.js:146) at n.Class.derive._creator._completed (editor.main.js:146) at Object.g [as _notify] (editor.main.js:141) at Object.enter (editor.main.js:145) at n.Class.derive._oncancel._run (editor.main.js:146) at n.Class.derive._oncancel._completed (editor.main.js:146) at Object.g [as _notify] (editor.main.js:141) at editor.main.js:158
  • reply
  • like
I don't know please opn the issue, we will have a look at some point
  • reply
  • like
private
This channel has been archived