CodeLite 16.0.0 Autocomplete Isn't Working - autocomplete

Hi all I've just started using CodeLite Version 16.0.0 . I was told by an instructor to set up autocomplete so that it should pop up after typing the first three letters. However, multiple times on this first program that the autocomplete list should have popped up failed to do so. In the included image, you'll see at the top that I was trying to get autocomplete to populate a list with iostream as one of the entries and that the list didn't show up after the first three letters were entered. Can anyone help me get this working correctly? I'm using CodeLite Version 16.0.0 on Windows 11. Thanks for all assistance!

This looks like an old version of CodeLite.
so you should:
(Important) Upgrade to the latest 16.4.0 from here
Windows system are always trickier to setup, so make sure you have a working MSYS environment as described here
Last step: make sure that the Language Server Plugin is configured properly
Build your project -> code completion should be working for you now
HTH,
Eran

Related

Why am I getting an error when loading webviews in VS Code?

I'm using a portable install of VS Code 1.56.1 on Windows 10. Whenever open an extension from the marketplace, I get the following error:
Error loading webview: Error: Could not register service workers: TypeError: Failed to register a ServiceWorker for scope ('vscode-webview://extensioneditor/') with script ('vscode-webview://extensioneditor/service-worker.js?platform=electron&id=extensionEditor&vscode-resource-origin=https%3A%2F%2FextensionEditor.vscode-webview-test.com'): ServiceWorker cannot be started.
Same thing happens for other things using webviews, with a slightly different path (like VS Code release notes). I'm able to install plugins and view the Feature Contributions tab, but I cannot view the Details and Changelog tabs.
Any thoughts on what could be causing this? This is on a managed machine where security settings might be changing. I'm using a portable install because my installed version stopped working out of the blue last week and this was supposed to be the workaround until that was figured out.
I was getting the same error, it looks like an issue introduced on version 1.56.0.
For me the fix was running VS Code without elevated permissions.
I always run as administrator and running without it fixed the issue for me.
I had this problem, in terminal use code . --no-sandbox
Updating python3 to the most recent version may also help.

Getting "Error: Failed to connect to OmniSharp"

I'm trying to get VSCode working with my Unity projects, and every time I select the Project icon (the little fire at the bottom) I get the following error:
Error: Failed to connect to OmniSharp
Is anyone else getting this?
You need to download the most recent version of "mono". Open up terminal and pass in brew install mono. Then "Pick a project" and select the ..-csharp.sln file and you should be up and running.
Ok, made some progress and gotten a few Unity projects working. It seems that you need some prerequisites installed, a clean up of your Unity project folder, and possibly some hand editing of your .sln and .csproj files.
I posted a (possibly) better answer over on Reddit. Hope that's not breaking stack etiquitte.
http://www.reddit.com/r/Unity3D/comments/34d6gc/visual_studio_for_mac_help_us_vote_for_unity/
i get this on windows when my project directory has a space in it
i removed the space and removed the error
i expect it will be fixed soom
I have a completely different answer: it's the runtime that VSCode is using. It doesn't match up with what it thinks it needs. I have to remember that we're still in beta and that things are changing rapidly. I had my dnvm running beta 7, but VSCode (and OmniSharp, by extension) is looking for beta 6, so it was failing. I updated my runtime using this this post as a clue. Now I have VSCode 0.7.0 using the beta 6 runtime. I have no idea how to tell what it's looking for...I just guessed based on when they were both released. HTH

Pylint in Sublime Text 2

So, I've been using Sublime for a while as a simple text editor, but I'm venturing into the land of plugins for work and I've run into an issue getting pylint to work. Specifically I have it installed and have the Sublime package manager working, but I'm not sure how to include paths in my sublime settings.
I haven't found very useful documentation on this point, but if you are willing to point me towards it that would be a perfectly acceptable answer. My basic issue is that currently every time I save a file, the following error message shows up:
"Please define the full path to 'lint.py' in the settings"
I understand this error message which is great, I just have no idea where the sublime settings are or what the standard format for defining a path is. Any help would be appreciated.
There are quite complete directions at the SublimeLinter GitHub page that should describe how to set everything up. Briefly, go to Preferences->Package Settings->SublimeLinter->Settings - Default to see where the different settings are defined. Then, open Preferences->Package Settings->SublimeLinter->Settings - User to change anything, as the main settings will be overwritten when the package is updated. Remember that settings files are in JSON format, so you'll need opening and closing curly brackets to enclose settings, and a comma between them:
{
"sublimelinter_delay": 30,
"sublimelinter_mark_style": "none"
}
I haven't gotten the error you have, are you sure you're using the regular SublimeLinter and not the new beta version? I just installed it fresh on my work machine (I've been using it for a while at home) and after restarting ST2 it's working like a charm with Python.
I had the same problem. I found it to be coming from the package "Pylinter". I removed Pylinter and added SublimeLinter, it covers more than python and is well used. I'm enjoying it quite a bit.
From your command line just run:
sudo easy_install pylint
sudo easy_install pep8
After that restart your sublime.
I encounter the same situation today. In my case, that is because I have not installed the 'pylint' in my system yet. It works fine after I installed the 'pylint' through pip.
Just for other people reference.

IntelliJ IDEA 12.0 Scala worksheet errors under Standard User account but works under Administrator

When I try to evaluate Scala worksheet in IntelliJ IDEA 12.0 with latest Scala plugin (December 5 2012 version) under Standard User in Windows 7 (32) it says:
Cannot start process, the working directory
C:\Program Files\JetBrains\IntelliJ IDEA 12.0\bin does not exist
The directory really exists.
Evaluating Scala worksheet on the same machine under Administrator account works as expected.
What do I do wrong (besides using Windows)? What can I do to fix the problem (besides using it from Admin account)?
Thank you!
It seems that IntelliJ IDEA is using the installation directory as the default working directory for Scala worksheets. You can change this setting in the Run configurations settings: go to Run > Edit configurations... Once here expand Defaults and select Worksheet. On the right pane you will see an empty text field named Working directory:
Either enter an existing directory or select one using the button on the right. The directory you specify here will be used for all the worksheets you create. You may also specify a per run configuration working directory if you enter the directory in the corresponding worksheet run configuration instead of in the Defaults section.
i have had the same issue with Scala Plugin but the problem is resolved if you use the Edit Configuration to set working directory to current working directory (basically anything other than empty)
this also happens if you do not use external build mode.
Obviously change permission to directory. Do not run any single non-daemon task under Administrator. If similar troubles continue to repeat - consider switching from deprecated OS, to something more stable, to ease your development efforts.
Please follow the issue http://youtrack.jetbrains.com/issue/SCL-5049 to get information when it will be fixed.

I can't get qml to use my custom plugin

I'm working in QtQuick and right now struggling with a weird problem: I can't get my custom plugin to work in Qml. There's a simple demo in the SDK (Examples/4.7/declarative/tutorials/extending/chapter6-plugins) and this doesn't work on my computer either. I don't get any error messages except that it doesn't recognize my custom items. Has anybody seen this problem? Any suggestions?
My setup:
Win 7 Home Premium, Qt Creator 2.1.0, Qt 4.7.3 (MinGW 4.4)
Thanks
Beside the qmldir issue already mentioned by blakharaz, also make sure to set QML_IMPORT_PATH in your pro file or setting the path via QDeclarativeEngine::addImportPath() so the module can be found on your development environment (if you don't install them systemwide before using).
And when using subfolders, make sure they are part of the import (see http://doc.qt.nokia.com/4.7-snapshot/qdeclarativemodules.html)
It would be nice to have some code. One possible issue could be the directory structure or the qmldir file. If you want to have a plugin called Foo you basically need a directory Foo which contains the Foo.dll (or libFoo.so) and a qmldir file (content is at least "plugin Foo")
If you have that "import Foo 1.0" should load the library.
I just had the exact same problem.
Build your .dlls as release instead of debug, that fixed it for me.