Geany wrongly colors sequences starting with a percentage sign (%).
Program that illustrates some issues:
```
n = 1337;
w = r = 5
x = n%w + 1; # "%w " is recognised as the beginning of an array of words, like %w[ ... ]
y = n%r ; # "%r " is recognised as the beginning of a regular expression
string = %= this is a string = ; # this one is correctly colored
n %= w; # this is the most important issue, the expression is equivalent to n = n % w; but it's recognised like the previous line
print x%r # %r is also recognised like a beginning of regex, but in this case, the %= of the previous line is still not terminated (no equal sign encoutered).
```
Tested on Geany 1.33 on Linux (Debian).
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2038
Several times ran into serious problems (scratching a file) because I confuse the highlight in red of the unsaved files' tab with the highlight of the currentlly displaid file. I would like to be able to inverse the parameters, that is:
have in red the tab's title of the currentlys displaid file
have inversed background for the tab of not yet saved files.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2046
Hi,
with the file browser plugin one can easily filter out files by name patterns (in a new sidebar tab named "Files" in case you don't know that). Unfortunately, the check that prevents elements added to the viewed list (`check_filtered()`) is guarded by a `if (dir)` (literally :):
https://github.com/geany/geany/blob/bf5c9eddd8a500577719af7fc7f1c1ffb8044a4…
I have not tried it but I don't expect any problems if it's applied to all elements, i.e. to directories as well. Would you accept a patch that adds this?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2075
I really love geany because its light weight and fast for writing python codes but I really hate how it handles indentation. When I send pyton code to vte **send selection to terminal** some times it throws **IndentationError: unexpected indent**. A simple example would be this function.
```
def load_data(mode='train'):
mnist=input_data.read_data_sets("MNIST/",one_hot=True)
if mode=='train':
x_train,y_train,x_valid,y_valid=mnist.train.images, mnist.train.labels,mnist.validation.images, mnist.validation.labels
return x_train,y_train,x_valid,y_valid
elif=='test':
x_test,y_test=mnist.test.images, mnist.test.labels
return x_test,y_test
```
This error occurs everywhere were I write multi-line indents and mostly happens with codes copied from elsewhere. Because of this I always have to use a second ide to correct these problems.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2098
This is an improved version of PR #637.
No more "--" - not needed.
No guard for is_osx_bundle() under Windows - does not belong here.
Split into proper sequential commits.
Fixed the encoding of options and doc_name.
Fixed the OSX bundle executable name.
Created a function to return the reproduced arguments instead of exposing global variables.
Re-tested under Windows and Linux.
There is only one problem left. As described in PR #637, under Windows, mscvrt often breaks unquoted locale strings on 2+ pieces, considering some characters "spaces". So spawn should quote any argv elements containing locale. But that must obviously be a separate PR.
You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/653
-- Commit Summary --
* Add reverse option parser to main
* Add support for geany executable to utils_resource_dir()
* Improve New Window: pass the proper arguments and save configuration
-- File Changes --
M src/libmain.c (121)
M src/main.h (2)
M src/plugins.c (2)
M src/utils.c (111)
M src/utils.h (17)
-- Patch Links --
https://github.com/geany/geany/pull/653.patchhttps://github.com/geany/geany/pull/653.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/653
Hi all,
I created a share object (so) - libdsso
I am trying, successfully to debug it through gdb:
gcc -g testc -lds
However, when i am trying to debug through geany, i get an error immediately:
program existed with error 127
just to mention - everything else is working just fine (compiling with static library, makefiles etc)
---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/837
I'm in Windows 7, running Geany 1.29, which I downloaded from http://download.geany.org/geany-1.29_setup.exe . When I save a file, previous Windows permissions for that file are lost. It seems the permissions afterwards probably always just inherit from the directory the file is in.
This is annoying when using Cygwin and its git. Any file saved by Geany is seen as executable by Cygwin, and then git would commit that change. I know I could `git config core.fileMode false`, but I shouldn't need to. Both Notepad and Notepad++ preserved permissions.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1420
The following error should be triggered for Python scripts which start with `#!/usr/bin/env python3` as in Python 3 UTF-8 is assumed and encoding preamble is no longer obligatory.
File "*****.py", line 23
SyntaxError: Non-ASCII character '\x**' in file process.py on line **, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
------------------
(program exited with code: 1)
Press return to continue
Reported for version `built on or after Sep 23 2016` or according to dpkg version `1.28-2` on Unutu Yakkety.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1298
Sometimes we don't want the sidebar on at all the times, thus it'd great if we can have a shortcut which can toggle it.
Ideally, I'd request that items in the menu bar have a shortcut. (line wrapping, going to next tab).
I searched through the keyboard shortcuts but couldn't find it. If they are indeed present, it'd be great to display them in the menu bar itself, it is immensely helpful.
Thank you!
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1324