bugGNU Octave - Bugs: bug #53854, error message about failing to...

 
 

bug #53854: error message about failing to load Notepad++ on startup

Submitter:  None
Submitted:  Sun 06 May 2018 09:08:21 PM UTC
   
 
Category:  GUI Severity:  2 - Minor
Priority:  3 - Low Item Group:  Unexpected Error or Warning
Status:  Fixed Assigned to:  lostbard
Originator Name:  Gadi Bental Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.4.0
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sat 07 Jul 2018 08:02:48 AM UTC, comment #13: 

is there a beta to try it today?

Anonymous
Fri 06 Jul 2018 05:25:35 PM UTC, comment #12: 

It should be in the 4.4.1 release when it comes

John Donoghue <lostbard>
Group Member
Fri 06 Jul 2018 05:22:23 PM UTC, comment #11: 

so, is there an official build with the fix available?

Anonymous
Sun 20 May 2018 10:36:24 PM UTC, comment #10: 

closing as fixed

John Donoghue <lostbard>
Group Member
Wed 16 May 2018 02:42:24 PM UTC, comment #9: 

The issue appears to be that when building the installer (or zipfile) and running strip on the files, it is removing something needed in the dll files for notepad.

I pushed a change http://hg.octave.org/mxe-octave/rev/62d71f1bb5f5
that doesnt strip the notepad++ files and it appears to work after that.

John Donoghue <lostbard>
Group Member
Tue 15 May 2018 05:49:37 PM UTC, comment #8: 

I think it would be worth polling the maintainers mailing list to see if anyone objects to removing it from the installer, if it's more trouble than it's worth.

Mike Miller <mtmiller>
Group Member
Tue 15 May 2018 10:17:36 AM UTC, comment #7: 

Do we even need to package notepad++ with octave? Since octave has its own editor, and if you choose not to use it, then you may install whatever you want to use instead.

John Donoghue <lostbard>
Group Member
Tue 15 May 2018 08:06:11 AM UTC, comment #6: 

In reply to Comment #4:
I confirm the same problem on Windows 7. Replacing Notepad++ fixed the problem.

Petr Lobaz <lobaz>
Tue 15 May 2018 06:32:15 AM UTC, comment #5: 

In reply to Comment #4:
Yes, I confirm the same problem on Windows 10.


Renato <yamane>
Mon 14 May 2018 10:45:37 PM UTC, comment #4: 

This bug report seems to be widely ranging over various topics having to do with Notepad++ bundled with Octave for Windows.

The original report states that an error message pops up when Octave is started:


Title Bar: C:\Octave\...\plugins\NppConverter.dll

Load Library is failed.
Make "Runtime Library" setting of this project as "Multi-threaded(/MT)" may cure this problem.

This plugin is not compatible with current version of Notepad++.

Do you want to remove this plugin from plugins directory to prevent this message from the next launch time?


Can anyone confirm that this error message appears for them as well, or this a local configuration problem on one person's system?

The other comments on this bug report do not seem to have anything to do with this original reported problem.

Mike Miller <mtmiller>
Group Member
Mon 14 May 2018 08:55:05 PM UTC, comment #3: 

My previous "solution" did not work when Octave was launched witout attempt to edit a file, e.g. when clicking on the desktop icon "GNU Octave (GUI)".

Here is a refined solution. Edit the original file octave.vbs located in the Octave root folder.
Replace lines 39 to 47 (from "check args to see..." to "Next") by


' check args to see if told to run gui or command line
' and build other args to use
GUI_MODE=1
ADD_PAUSE=0
AllArgs = ""
Set wshArgs = WScript.Arguments
For I = 0 to wshArgs.Count - 1
  If wshArgs(I) = "--no-gui" Then GUI_MODE=0
  If ADD_PAUSE=1 AND GUI_MODE=1 Then
    AllArgs = AllArgs & " " & chr(34) & "pause(1); " & wshArgs(I) & chr(34)
    ADD_PAUSE=0
  Else
    AllArgs = AllArgs & " " & chr(34) & wshArgs(I) & chr(34)
  End If
  If wshArgs(I) = "--eval" Then ADD_PAUSE=1
Next


Description

The loop waits for the argument "--eval". It then assumes that the next argument will be "edit 'FILENAME'". Based on this assumption (that is not checked) is adds "pause(1); " before the edit command.
If there is no "--eval" command, no pause is added. Adding pause would result in waiting one second and terminating Octave.

You can tweak the delay. On my computer, even pause(0.5) works fine.

Petr

Petr Lobaz <lobaz>
Mon 14 May 2018 11:20:47 AM UTC, comment #2: 

"when I make a double click in a .m-file, it opens in Notepad++ instead "Editor Window" of Octave, as the previous version of Octave"

Quick and dirty workaround:
Edit the file octave.vbs located in the Octave root folder.
Change line 52 from
  wshShell.Run chr(34) & OctavePath & "\bin\octave-gui.exe" & Chr(34) & AllArgs, 0
to
  wshShell.Run chr(34) & OctavePath & "\bin\octave-gui.exe" & Chr(34) & "--eval pause(1);" & AllArgs, 0

Description:

Octave is launched with a parameter
  --eval "edit 'FILENAME'"

It seems that when the 'edit' command starts, GUI is not yet initialized (function isguirunning () returns 0).
The command 'pause' in the workaround waits a bit. For me, one second is OK.

Hope it helps
Petr

Petr Lobaz <lobaz>
Wed 09 May 2018 12:55:37 PM UTC, comment #1: 

Another symptom on Octave 4.4.0 and windows 10: when I make a double click in a .m-file, it opens in Notepad++ instead "Editor Window" of Octave, as the previous version of Octave.

Renato <yamane>
Sun 06 May 2018 09:08:21 PM UTC, original submission:  

I installed octave 4.4.0 (octave-4.4.0-w64-installer.exe) on windows 10 64 bit.
When I start octave I get an error message as in the attached file. The notepad++ version in C:\Octave\Octave-4.4.0\notepad++ is v6.2.3. I installed the latest version of Notepad++ (v7.5.6) and copied it onto C:\Octave\Octave-4.4.0\notepad++ and that fixed the problem.

Regrads
Gadi Bental
-email is unavailable-

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #44107:  octaveErrorMessage.PNG added by None (9KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by lostbard (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by lobaz (Posted a comment)
  • -email is unavailable- added by yamane (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 11 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-05-20 lostbard StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2018-05-16 lostbard StatusNeed Info Ready For Test
        Assigned toNone lostbard
    2018-05-14 mtmiller CategoryNone GUI
        Severity3 - Normal 2 - Minor
        Priority5 - Normal 3 - Low
        Item GroupNone Unexpected Error or Warning
        StatusNone Need Info
        SummaryAn error massage about failing to load notepad++ on startup error message about failing to load Notepad++ on startup
    2018-05-06 None Attached File- Added octaveErrorMessage.PNG, #44107

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code