ide

Eclipse CDT indexing and std::unique_ptr

不问归期 提交于 2019-12-04 04:39:39
I am using std::unique_ptr in this piece of code which compiles and runs as I expected. std::stringstream out; out << std::setw(3) << std::setfill('0') << i; std::unique_ptr<std::string> s(new std::string(out.str())); s->insert(s->end()-2, 1, '.'); return std::move(s); However, I am getting error messages from Eclipse CDT. At the fourth line: Method 'insert' could not be resolved, Method 'end' could not be resolved. Previously, I was also getting errors on appearances of the name std::unique_ptr. This was solved by setting the pre-processor symbol __GXX_EXPERIMENTAL_CXX0X__ and rebuilding the

Preprocessor-aware code navigation in IDE for C project

一曲冷凌霜 提交于 2019-12-04 04:26:24
Background I spend a lot of time navigating and editing convoluted scientific C codes. Usually they contain hundreds of optional features switched on and off with preprocessor directives. This makes it almost impossible to say at a glance whether the current block of code is activated in my current setup or not. The code itself does not help as every feature is smudged all over the place and everything is usually done using global variables. Question Is there an IDE that can handle preprocessor directives by folding/shading the inactive code? I imagine one can maintain a project with a config

“executable not specified” error in Pycharm

时光总嘲笑我的痴心妄想 提交于 2019-12-04 04:06:34
问题 When I try to run a python script in Pycharm, I get this error message: error running myscript: Executable is not specified and the script does not run. How do I run my script through Pycharm? 回答1: You need to designate an interpreter for the project. File -> Settings -> Project -> Project Interpreter , and then select an interpreter at the right. It looks like this on PyCharm Community Edition 4.0.3: The official JetBrains guide to setting up an interpreter can be found here. 来源: https:/

What IDE / Editor do you use for Ruby on Linux? [closed]

落花浮王杯 提交于 2019-12-04 03:59:35
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . I've been using vim, but after reading this question was wondering what is being used in the linux world. There's also Netbeans: http://ruby.netbeans.org/ If you'd rather be using a light text editor instead of a heavy IDE, then I'd

Can you stop PyCharm from automatically closing script files when you click out of the program?

ⅰ亾dé卋堺 提交于 2019-12-04 03:55:31
I am having a problem with PyCharm (Community Edition) in that, when I open a .py file in the program, I can happily read and write in the file as usual, however when I click out of PyCharm (to look my emails for example) and then click back into it to carry on with my code, the file automatically closes and the project tree structure collapses (so I have to re-open it every time). So far I have tried changing the tab limit to a high number, but this doesn't seem to help (and it shouldn't be related, since this happens when I open just one file). Any help is much appreciated! I had the same

In what order does Class Completion put its results?

倾然丶 夕夏残阳落幕 提交于 2019-12-04 03:51:41
问题 Example: I create a new unit, declare a class with several methods like constructor, destructor, method1, method2, method3 in that order and then hit Ctrl-Shift-C. The IDE creates all the method bodies automatically, but the order is mixed up and not as it was declared in the interface section. Now, this is not a problem, but is there a reason for it. It seems to be more difficult to mix that up than to just do it in the order of the declaration. Or is there some rule to it that makes sense

What is the IDE of choice for Erlang development? [closed]

烂漫一生 提交于 2019-12-04 03:23:07
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I want to get into Erlang programming, specifically some yaws stuff. (Currently, I use Eclipse for Java development.) What is the IDE of choice for Erlang development? While there are several choices of plugins for NetBeans or Eclipse,

VS Code search.exclude doesn't work

戏子无情 提交于 2019-12-04 02:56:16
问题 I can't make search.exclude settings to work, so that it excludes build folder. Here's screenshot: 回答1: This looks like this bug: https://github.com/Microsoft/vscode/issues/31819 - search.exclude won't apply to open files. 回答2: Just in case this helps anyone else, here's a list of things that could be affecting whether your file/search exclusion settings are working as expected. Double-check whether you're using the right patterns; you can see what kinds of patterns VS Code supports here. One

How do I run the code from a scratch file in IntelliJ 14?

余生长醉 提交于 2019-12-04 02:54:15
I've created a simple Java scratch file containing a class named " TestGenerics " containing some code and a main method. The code seems to be fine, however when I try to run it (by right clicking > Run 'TestGenerics.main()', I get this error: "Module not specified" Similar situation occurs with a scratch file containing Lua code, error message: ' Error running scratch.1 (2): Executable is not specified ' Any ideas? Meo This was previously not possible, but is now supported for some languages. such as Java and Ruby . For these languages, you should be able to run the scratch file in the same

How can I debug a VB6 IIS Application on Windows 7 64-bit

有些话、适合烂在心里 提交于 2019-12-04 02:46:43
I have a need to be able to debug a Visual Basic 6 IIS Application on Windows 7 64-bit. Not just for a single problem but for continuing development. An attempt to debug results in an error "An unspecified error has occurred" from the WebClass runtime. If I do not debug and simply access the compiled webclass the page loads just fine. Therefore, I don't believe there is anything wrong with the registration / configuration of the application but rather this is somehow related to Windows OS security blocking the VB6 IDE from hooking into IIS and allowing it to debug. Here are all of the things