jEdit Community - Resources for users of the jEdit Text Editor
4.3 pre9 hangs when opening specific perl file
Submitted by dougis on Wednesday, 18 April, 2007 - 22:35
I need some help if possible.
I have a perl lib file that causes jedit to hang whenever I open it (runs CPU to 50% and I have to kill the task to get out of it).
I am running on windows and running version 4.3pre9 (my linux box running 4.2 does not seem to have the same issue).
Is there a way to figure out what it is in the file that is causing the hang up? I have tried saving the file in another editor to try and mess with the formatting, also attempted pulling it off my server via SFTP to reload the file and it still hangs.
Any ideas I can try to track down what causes this?
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
problem in syntax mode regex
by rhowardiv on Tue, 18/09/2007 - 15:25
I was able to trace this down to a problem in the syntax highlighting when it hits a s/// statement.

I fixed it by commenting out lines 228-232 of the perl.xml mode file. They look like this:

<SEQ_REGEXP TYPE="MARKUP" HASH_CHAR="s"
AT_WORD_START="TRUE">s\s*\{.*?[^\\]\}\s*\{(?:.*?[^\\])*\}[egimosx]*</SEQ_REGEXP>

<SEQ_REGEXP TYPE="MARKUP" HASH_CHAR="s"
AT_WORD_START="TRUE">s([^\p{Alnum}\p{Space}\}])(?:.*?)\1(?:.*?)\1[egimosx]*</SEQ_REGEXP>

Judging from the bugtracker, this has been fixed in the code currently under svn.
More info
by dougis on Fri, 20/04/2007 - 16:00
I have tried copying the content of the file in question to clipboard and then pasting to a new file.
No dice, as soon as I attempt to save the file, jedit hangs and I have to kill it to continue.
Any ideas as to how I can track down what is causing the hangup?
 
Plugins?
by elberry on Fri, 20/04/2007 - 16:55
Which plugins do you have installed? I've seen this happen to me when using the XML and SideKick plugins and certain Javascript or JSP files.

I haven't seen this issue in a while though, so thought that maybe it was fixed. However, perhaps there's a similar problem in the Perl parser you are using. You can try downgrading your XML & SideKick plugins to see if that helps.

Learn from the past. Live in the present. Plan for the future.
User login
Browse archives
« November 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   101634
Context Free Art (*.cfdg)   0.31   46062
BBEdit scheme   1.0   18601
JBuilder scheme   .001   18502
ColdFusion scheme   1.0   18031
R Edit Mode - extensive version   0.1   17481
Advanced HTML edit mode   1.0   16213
Matlab Edit Mode   1.0   16075
jEdit XP icons   1.0   15236
XP icons for jEdit   1.1   14300