Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruby extension not working #4200

Closed
vinayb21 opened this issue Jan 31, 2019 · 9 comments
Closed

Ruby extension not working #4200

vinayb21 opened this issue Jan 31, 2019 · 9 comments
Labels
bug bugs found in the application ruby issues related to the ruby language

Comments

@vinayb21
Copy link
Contributor

vinayb21 commented Jan 31, 2019

I installed the ruby extension for theia @theia/ruby but neither the linting nor the autocomplete is working for ruby.
Other languages like Java, Python etc. are working fine.

Also I am getting the following warning message
"The directory referenced by local-dir:../../plugins does not exist." when I start the browser Theia application.

@akosyakov
Copy link
Member

"The directory referenced by local-dir:../../plugins does not exist." when I start the browser Theia application.

it is unrelated

Do you have package.json of your app? Installing @theia/ruby extension within Theia repo won't work.

@vinayb21
Copy link
Contributor Author

vinayb21 commented Jan 31, 2019

examples/browser/package.json

{
  "private": true,
  "name": "@theia/example-browser",
  "version": "0.3.19",
  "theia": {
    "frontend": {
      "config": {
        "applicationName": "Theia Browser Example"
      }
    }
  },
  "dependencies": {
    "@theia/callhierarchy": "^0.3.19",
    "@theia/console": "^0.3.19",
    "@theia/core": "^0.3.19",
    "@theia/cpp": "^0.3.19",
    "@theia/debug": "^0.3.19",
    "@theia/debug-nodejs": "^0.3.19",
    "@theia/editor": "^0.3.19",
    "@theia/editor-preview": "^0.3.19",
    "@theia/editorconfig": "^0.3.19",
    "@theia/extension-manager": "^0.3.19",
    "@theia/file-search": "^0.3.19",
    "@theia/filesystem": "^0.3.19",
    "@theia/getting-started": "^0.3.19",
    "@theia/git": "^0.3.19",
    "@theia/java": "^0.3.19",
    "@theia/java-debug": "^0.3.19",
    "@theia/json": "^0.3.19",
    "@theia/keymaps": "^0.3.19",
    "@theia/languages": "^0.3.19",
    "@theia/markers": "^0.3.19",
    "@theia/merge-conflicts": "^0.3.19",
    "@theia/messages": "^0.3.19",
    "@theia/metrics": "^0.3.19",
    "@theia/mini-browser": "^0.3.19",
    "@theia/monaco": "^0.3.19",
    "@theia/navigator": "^0.3.19",
    "@theia/outline-view": "^0.3.19",
    "@theia/output": "^0.3.19",
    "@theia/plugin-ext": "^0.3.19",
    "@theia/plugin-ext-vscode": "^0.3.19",
    "@theia/preferences": "^0.3.19",
    "@theia/preview": "^0.3.19",
    "@theia/process": "^0.3.19",
    "@theia/python": "^0.3.19",
    "@theia/ruby": "^0.1.0",
    "@theia/search-in-workspace": "^0.3.19",
    "@theia/task": "^0.3.19",
    "@theia/terminal": "^0.3.19",
    "@theia/textmate-grammars": "^0.3.19",
    "@theia/tslint": "^0.3.19",
    "@theia/typescript": "^0.3.19",
    "@theia/userstorage": "^0.3.19",
    "@theia/variable-resolver": "^0.3.19",
    "@theia/workspace": "^0.3.19"
  },
  "scripts": {
    "prepare": "yarn run clean && yarn build",
    "clean": "theia clean && rimraf errorShots",
    "build": "theiaext compile && theia build --mode development",
    "watch": "concurrently -n compile,bundle \"theiaext watch --preserveWatchOutput\" \"theia build --watch --mode development\"",
    "start": "export THEIA_DEFAULT_PLUGINS=local-dir:../../plugins && theia start",
    "start:debug": "yarn start --log-level=debug",
    "test": "wdio wdio.conf.js",
    "test-
```non-headless": "wdio wdio-non-headless.conf.js",
    "coverage:compile": "yarn build --config coverage-webpack.config.js",
    "coverage:remap": "remap-istanbul -i coverage/coverage.json -o coverage/coverage-final.json --exclude 'frontend/index.js' && rimraf coverage/coverage.json",
    "coverage:report:html": "istanbul report --root coverage --format html",
    "coverage:report:lcov": "istanbul report --root coverage --format lcov",
    "coverage": "yarn coverage:compile && yarn test && yarn coverage:remap && yarn coverage:report:lcov && yarn coverage:report:html"
  },
  "devDependencies": {
    "@theia/cli": "^0.3.19"
  }
}

@akosyakov
Copy link
Member

As i said it cannot work witinin Theia repo. @theia/ruby depends on published @theia/core@latest which is different from local @theia/core. Do yarn why @theia/core and you will see that you get 2 of them, not one.

Follow https://www.theia-ide.org/doc/Composing_Applications.html, replace next with latest, and add @theia/ruby extension, such app should be built properly.

@vinayb21
Copy link
Contributor Author

vinayb21 commented Jan 31, 2019 via email

@vinayb21
Copy link
Contributor Author

vinayb21 commented Jan 31, 2019

I built the Theia IDE by following https://www.theia-ide.org/doc/composing_applications and replaced next with latest. I am still facing the same issue. Following is the package.json.

  "private": true,
  "dependencies": {
    "@theia/callhierarchy": "latest",
    "@theia/console": "latest",
    "@theia/core": "latest",
    "@theia/cpp": "latest",
    "@theia/debug": "latest",
    "@theia/debug-nodejs": "latest",
    "@theia/editor": "latest",
    "@theia/editor-preview": "latest",
    "@theia/editorconfig": "latest",
    "@theia/extension-manager": "latest",
    "@theia/file-search": "latest",
    "@theia/filesystem": "latest",
    "@theia/getting-started": "latest",
    "@theia/git": "latest",
    "@theia/java": "latest",
    "@theia/java-debug": "latest",
    "@theia/json": "latest",
    "@theia/keymaps": "latest",
    "@theia/languages": "latest",
    "@theia/markers": "latest",
    "@theia/merge-conflicts": "latest",
    "@theia/messages": "latest",
    "@theia/metrics": "latest",
    "@theia/mini-browser": "latest",
    "@theia/monaco": "latest",
    "@theia/navigator": "latest",
    "@theia/outline-view": "latest",
    "@theia/output": "latest",
    "@theia/plugin-ext": "latest",
    "@theia/plugin-ext-vscode": "latest",
    "@theia/preferences": "latest",
    "@theia/preview": "latest",
    "@theia/process": "latest",
    "@theia/python": "latest",
    "@theia/ruby": "^0.1.0",
    "@theia/search-in-workspace": "latest",
    "@theia/task": "latest",
    "@theia/terminal": "latest",
    "@theia/textmate-grammars": "latest",
    "@theia/tslint": "latest",
    "@theia/typescript": "latest",
    "@theia/userstorage": "latest",
    "@theia/variable-resolver": "latest",
    "@theia/workspace": "latest"
  },
  "devDependencies": {
    "@theia/cli": "next"
  }
}

@akosyakov akosyakov added question user / developer questions bug bugs found in the application ruby issues related to the ruby language and removed question user / developer questions labels Jan 31, 2019
@akosyakov
Copy link
Member

akosyakov commented Jan 31, 2019

@vinayb21 thanks for reporting

ruby extension is broken:
screen shot 2019-01-31 at 13 41 56

Someone has to update it to latest APIs: https://github.com/theia-ide/theia-ruby-extension

Unfortunately, we always publish against @theia/core@laltest. We MUST publish external extensions against proper core version not latest, i.e. @theia/core@^0.3.19. Right now there is no working version of @theia/ruby even for 0.3.18.

//cc @svenefftinge @marcdumais-work

@vinayb21
Copy link
Contributor Author

Thanks for confirming.

@svenefftinge
Copy link
Contributor

There has been no 'latest' release of the ruby-extension.
You need to use next tag instead.
closing this in favor of theia-ide/theia-ruby-extension#7

@ManishAgrawal1410
Copy link

ManishAgrawal1410 commented Aug 1, 2019

Hello @vinayb21 ,
Can you guide me to get autocomplete features for java/python language?
What I did: I just added "@theia/java":"next" and "@theia/python":"next" in my package.json. and ran "yarn" and "yarn theia build" and started theia. When I start a java project I get an error saying : "languages ERROR Error occurred while starting language contribution. /services/languages/java/:id. Error: The Java server launcher is not found".
When I start a python project, I don't get anything on pressing Ctrl+space. Is there anything I need to do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application ruby issues related to the ruby language
Projects
None yet
Development

No branches or pull requests

4 participants