geany

Run a node.js server from Geany

牧云@^-^@ 提交于 2019-12-04 11:06:22
问题 A simple question: Is it possible to configure the Geany IDE so that Node.js servers can be run directly from Geany using the "Run" button? 回答1: When inside a JS file, go to Build > Set Build Commands , there should be a section title Execute commands . To use node to execute your files, put: node "%f" in the "Execute" command textbox. When you change this, any .js files you are editing will run node in the virtual terminal when you hit F5 . If you want to set up an entire project to run the

Array of functions and Segmentation fault - invalid memory reference

十年热恋 提交于 2019-12-04 06:39:57
问题 I am trying to set my function f as an array, but I get the following error: Program received signal SIGSEGV: Segmentation fault - invalid memory reference. Backtrace for this error: #0 0x6f8b36e3 #1 0x6f8a2722 #2 0x402752 #3 0x747bd411 I have to solve the Kepler's equation: f=psi-e*sin(psi)-M for each value of M .So, if I have an array M of dimension 8, my program will calculate 8 zeros. The thing is that, if I write f=psi-e*sin(psi)-M(1) I will calculate the first zero,and if I write f=psi

How to stay tab-free in Geany on Ubuntu?

别等时光非礼了梦想. 提交于 2019-12-03 14:24:57
问题 How to stay tab free in Geany on Ubuntu? When I am coding in python, tabs have always annoyed me. And the TAB is invisible. So strange. When I open my code by gEdit, those TAB are visible. 回答1: You are looking for 'soft tabs' http://www.geany.org/manual/dev/index.html#editor-indentation-preferences Edit > Preferences > Editor > Indentation > Type > Spaces After changing the setting, close and reopen the file. To apply the tab settings to every document in the current session, also click:

Array of functions and Segmentation fault - invalid memory reference

…衆ロ難τιáo~ 提交于 2019-12-02 13:13:50
I am trying to set my function f as an array, but I get the following error: Program received signal SIGSEGV: Segmentation fault - invalid memory reference. Backtrace for this error: #0 0x6f8b36e3 #1 0x6f8a2722 #2 0x402752 #3 0x747bd411 I have to solve the Kepler's equation: f=psi-e*sin(psi)-M for each value of M .So, if I have an array M of dimension 8, my program will calculate 8 zeros. The thing is that, if I write f=psi-e*sin(psi)-M(1) I will calculate the first zero,and if I write f=psi-e*sin(psi)-M(8) I will calculate the last zero.But ,my problem is that if I want to calculate all zeros

解决Geany 编辑器无法导入matplotlib包问题

ぃ、小莉子 提交于 2019-12-01 22:10:22
最近在看《Python编程从入门到实践》这本书,在看到第15章,生成数据时,遇到了一个问题:matplotlib 在Geany编辑器中一直显示找不到matplotlib模块。在网上查看了一些资料后找到了原因。 问题原因 你可以做一个测试,看一下符不符合我说的情况: 重新在终端安装matplotlib,这个时候会提示你已经安装过了: 但是你会发现提示安装的路径: 即:在/home/用户名/anaconda3/lib/python3.6/site-packages 下 查看Geany 编辑器查找模块的路径 代码如下: import sys print(sys.path) 此时你会发现,原来Geany取查找包时,并不会到anaconda3目录下取找。这下我们就找出问题的原因了。其实我们安装了两个python解释器,一个是ubuntu系统自带的,另外一个是我们通过anaconda安装的。我们使用Geany编辑器时,实际上使用的是系统自带的python解释器,它查找包的路径也是取该解释器关联的路径下取查找。关联路径默认情况下是不包含anaconda3目录下安装的模块的。因此,需要我们手动解决。 当然,如果你不曾使用anaconda安装过Python就不会出现上述问题。 解决方案 笨方法 在Geany编辑器中的每一个使用到matplotlib的程序中添加如下代码: import sys sys

How can I configure Geany to compile and run my Python programs?

淺唱寂寞╮ 提交于 2019-11-30 18:58:48
Under the Build menu, I can see 'Execute' option, but it is greyed out. The only option available is 'Set Includes and Arguments'. When I click that both fields are already filled out. What do I have to write there? I don't need to configure anything in geany, I just hit F5 and current module is executed. Are you sure, that your file is recognized as python source file? Which version of geany are you using (I am using svn version, which is pretty stable, damn, it's rock solid stable ;-))? I have slightly more developed configuration for python compilation in my version, but the commands are

How do you compile/build/execute a C++ project in Geany?

旧时模样 提交于 2019-11-30 18:09:07
I really didn't think it would be this difficult. Geany clearly has the ability to create projects, add files to the projects, compile the individual files, but then even after googling it I could not find a clear description of how to build and execute the project... It's pretty annoying because I really like the simplicity of Geany and its clean, uncluttered workspace, but this could be a deal breaker. Geany doesn't compile projects. You can use a makefile to serve the same purpose; however, you have to make it manually or use an external command that can figure out dependencies. Geany's

Custom syntax highlighting in Geany

对着背影说爱祢 提交于 2019-11-30 12:34:56
I am trying to create custom syntax highlighting for Kivy '.kv' files in the Geany editor. Although the specific filetype seems irrelavant to the issue I'm having, as any efforts I make at getting syntax highlighting to work for a custom filetype results in a completely non-highlighted file. I believe I have done my homework on this, and nothing seems to work. I have added the following to ~/.config/geany/filetype_extensions.conf Kivy=*.kv; I also have a custom type definition file named 'filetypes.Kivy.conf' in ~/.config/geany/filedefs/. I have tried basing this file off several of the stock

How can I configure Geany to compile and run my Python programs?

与世无争的帅哥 提交于 2019-11-30 03:48:54
问题 Under the Build menu, I can see 'Execute' option, but it is greyed out. The only option available is 'Set Includes and Arguments'. When I click that both fields are already filled out. What do I have to write there? 回答1: I don't need to configure anything in geany, I just hit F5 and current module is executed. Are you sure, that your file is recognized as python source file? Which version of geany are you using (I am using svn version, which is pretty stable, damn, it's rock solid stable ;-))

Make Geany recognize additional file extensions

断了今生、忘了曾经 提交于 2019-11-30 02:40:40
问题 My default Geany installation on Debian does not recognize some file types out of the box. How can I add extensions, using the same syntax highlighting as other known extensions for simplicity's sake? In the current case, I'd like Geany to open all .aspx files with the same highlighting as .html files. 回答1: Use inside the menu Tools->Configuration files->filetype_extensions.conf. This will allow you to configure the filetypes based on suffix for your user. 回答2: Just add new extensions in /usr