Opened 3 years ago

Last modified 3 years ago

#1327 new defect

Padre trunk crashes on Ubuntu 10.04

Reported by: zenogantner Owned by:
Priority: major Milestone:
Component: not classified yet Version: 0.91
Keywords: Cc:

Description

./dev starts without problem.

Invalid or empty options for config 'editor_style' at /usr/local/share/perl/5.10.1/Padre/Config.pm line 86

Change History (15)

comment:1 Changed 3 years ago by szabgab

When you run .dev Padre is using the .padre/config.yml but when you launch without the dev then it uses the system-wide one. For me it is ~/.local/share/.padre/config.yml

Do you have an editor_style config option in the system-wide config.yml file ?
what is its value?

comment:2 Changed 3 years ago by zenogantner

These are the contents of ~/.local/share/.padre/config.yml

---
Version: 0.85
editor_font: 'Tlwg Typo Medium 10'
feature_wx_scintilla: 1
find_case: 0
find_regex: 0
find_reverse: 0
locale: en-gb
main_functions: 0
main_outline: 0
main_singleinstance: 1
main_syntaxcheck: 0
nth_startup: 95
startup_count: 83
version: 1

comment:3 Changed 3 years ago by zenogantner

By the way, removing ~/.local/share/.padre/config.yml did not solve the problem.

comment:4 Changed 3 years ago by azawawi

That's a style 2.0 change. I am sure Alias will fix it tonight. :)

comment:5 Changed 3 years ago by zenogantner

Ah, OK.

I just saw that there is a second config.yml in my system, in ~/.padre/config.yml

---
Version: 0.87
locale: en-gb
main_functions: 0
main_outline: 1
main_output: 0
nth_startup: 39
session_autosave: 0
startup_count: 35
version: 1

comment:6 Changed 3 years ago by azawawi

Can you check if this is still the case or not?

comment:7 Changed 3 years ago by zenogantner

Problem is still there in r16716.

There are also failed tests:

t/76_preferences.t ......... Failed 4/10 subtests 
t/80_newline.t ............. ok     
t/81_search.t .............. ok     
t/82_plugin_manager.t ...... ok     
t/83_autosave.t ............ ok     
t/85_commandline.t ......... ok   
t/90_autocomplete.t ........ ok   
t/91_vi.t .................. ok     
t/92_padre_file.t .......... ok     
t/93_padre_filename_win.t .. ok   
t/94_padre_file_remote.t ... ok   
t/95_search_and_replace.t .. ok     
t/96_edit_patch.t .......... ok     
t/97_help_about.t .......... ok     

Test Summary Report
-------------------
t/76_preferences.t       (Wstat: 11 Tests: 6 Failed: 0)
  Non-zero wait status: 11
  Parse errors: Bad plan.  You planned 10 tests but ran 6.
Files=49, Tests=1103, 76 wallclock secs ( 0.36 usr  0.15 sys + 34.03 cusr  3.24 csys = 37.78 CPU)
Result: FAIL
Failed 1/49 test programs. 0/1103 subtests failed.
make: *** [test_dynamic] Fehler 255

comment:8 Changed 3 years ago by zenogantner

debugger output

  DB<1> 
Padre::Constant::(/usr/local/share/perl/5.10.1/Padre/Constant.pm:172):
172:	1;
  DB<1> 
main::(/usr/local/bin/padre:128):	if ($RESET) {
  DB<1> 
main::(/usr/local/bin/padre:134):	if ($DESKTOP) {
  DB<1> 
main::(/usr/local/bin/padre:146):	unless ( defined $ACTIONS ) {
  DB<1> 
main::(/usr/local/bin/padre:149):		require Padre::Startup;
  DB<1> 
Padre::Startup::(/usr/local/share/perl/5.10.1/Padre/Startup.pm:36):
36:	our $VERSION = '0.91';
  DB<1> 
Padre::Startup::(/usr/local/share/perl/5.10.1/Padre/Startup.pm:38):
38:	my $SPLASH = undef;
  DB<1> 
Padre::Startup::(/usr/local/share/perl/5.10.1/Padre/Startup.pm:205):
205:	1;
  DB<1> 
main::(/usr/local/bin/padre:150):		unless ( Padre::Startup::startup() ) {
  DB<1> 
main::(/usr/local/bin/padre:157):	require Padre;
  DB<1> 
Invalid or empty options for config 'editor_style' at /usr/local/share/perl/5.10.1/Padre/Config.pm line 86
Compilation failed in require at /usr/local/share/perl/5.10.1/Padre.pm line 32.
 at /usr/local/share/perl/5.10.1/Padre.pm line 32
	Padre::BEGIN() called at /usr/local/share/perl/5.10.1/Padre/Config.pm line 32
	eval {...} called at /usr/local/share/perl/5.10.1/Padre/Config.pm line 32
	require Padre.pm called at /usr/local/bin/padre line 157
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/Padre.pm line 32.
 at /usr/local/share/perl/5.10.1/Padre.pm line 32
	require Padre.pm called at /usr/local/bin/padre line 157
Compilation failed in require at /usr/local/bin/padre line 157.
 at /usr/local/bin/padre line 157
Debugged program terminated.  Use q to quit or R to restart,
  use o inhibit_exit to avoid stopping after program termination,
  h q, h R or h o to get additional info.  

comment:9 Changed 3 years ago by zenogantner

I had a little closer look:

The themes method in Padre::Config:: is looking for themes in /usr/local/lib/perl/5.10.1/auto/share/dist/Padre/themes and $HOME/.local/share/.padre/themes.

However, the themes are installed in /usr/local/share/perl/5.10.1/auto/share/dist/Padre/themes.

comment:10 Changed 3 years ago by zenogantner

Ahmad found this potential underlying cause:

https://rt.cpan.org/Public/Bug/Display.html?id=29829

comment:11 Changed 3 years ago by zenogantner

I do not have this problem with Debian testing and File::ShareDir? 1.00, by the way.

comment:12 Changed 3 years ago by adamk

This isn't related to the contents of your config file.

It should just be a File::ShareDir? vs Module::Install thing.

comment:13 Changed 3 years ago by azawawi

  • Priority changed from blocker to major

comment:14 Changed 3 years ago by zenogantner

I currently (r17962) have Module::Install 1.04 and File::ShareDir 1.03, which are the latest versions.

comment:15 Changed 3 years ago by zenogantner

Still a problem with Module::Install 1.06.

Note: See TracTickets for help on using tickets.