question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Auto suggestions only working for JavaScript and not for other languages

See original GitHub issue

I’m using react-monaco-editor in my application. But the autosuggestions only work if the language is set as javascript. Even if I add more languages to the monaco-editor-webpack-plugin in webpack.config.js file, it’s still doesn’t make a difference. new MonacoWebpackPlugin({ languages: [ 'javascript','cpp','java','python'] }),

I also tried the example in this repo, even in that if I add more languages to the webpack plugin and use one of those languages in the monaco editor component, the autosuggest still doesn’t show up. But if the language is set as javascript in the monaco editor component, auto suggestions show up.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
domoritzcommented, Jul 18, 2019

I think you need a language server. See https://github.com/Microsoft/monaco-editor/issues/955 for example.

0reactions
reddybhargavacommented, Jul 18, 2019

@domoritz Yes, I agree. But how do I add/use IntelliSense/Autosuggestions for other languages like python, c++ and java which are not supported by monaco?

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS Code autocomplete/intellisense not working - Stack Overflow
js it is a JavaScript file type. Use Change Language Mode (through command palette) command to change it manually.
Read more >
JavaScript IntelliSense using legacy language service
The JavaScript legacy language is no longer supported but the feature is available on the new language service. I strongly suggest to give...
Read more >
Should You Use AI Autocomplete? - YouTube
Get 50% Off Tabnine For A Year: https://www.tabnine.com/pricing/checkout?planInterval=month&promotionCode=WDSAIAI autocomplete is slowly ...
Read more >
How to Select Vim Code Completion for Any Language
Now press the *Enter* key. Autocomplete is enabled for Javascript. Note that auto-complete is set only for the current session. If you want...
Read more >
Code completion | WebStorm Documentation - JetBrains
To reject all suggestions auto-completion offers, press Escape. ... Completion from the TypeScript Language Service in JavaScript.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found