Giter Site home page Giter Site logo

Comments (5)

RickStrahl avatar RickStrahl commented on May 26, 2024

Can you duplicate the behavior from the command line with mm.exe or markdownmonster.exe?

im not sure I understand what the issue is and what launch command causes it, so Iā€™m going to need a repro case outside of your IQ tool.

I suspect the issue has to do with filenames not being escaped? Spaces in files and missing quotes? Long paths (over 260 chars) perhaps?

from markdownmonster.

1comvox avatar 1comvox commented on May 26, 2024

Thank you for your reply.

Oops, I didn't realize that mm.exe was also a file that could be used to launch Markdown Monster.exe, so I retried everything with mm.exe. So far I get the same results with MarkdownMonster.exe and mm.exe.

I also tried with a markdown file being passed to Markdown Monster with a total name and path of only 78 characters. No difference from my previous results. But I doubt think the problem is in the file names, as the correct file is displayed in Markdown Monster -- it's how it is displayed, as well as what happens to Markdown Monster itself, that is the issue.

If Markdown Monster is already open, then everything works right when IQ calls it.

If Markdown Monster is not already open, then it calls up Markdown Monster, but it displays the file in a weird way, with even a row of Markdown Monster icons missing (I'm not sure what to call this, a taskbar? toolbar?). I have attached two pictures. The top one shows what the malfunction is like, and the bottom line is what happens when things go right.

(The pictures show I was using Tiles2 from Stardock. I tried again without Tiles2, and it didn't make a difference.)

Malfunction:
MM malfunction

Correct:
MM correct

As for the calling up Markdown Monster from the command line, everything works right.

This is true even if the command line is in a batch file -- so long as I don't have IQ calling the batch file.
In order to check if a suspect parameter was being passed to MarkdownMonster, I tried using a batch file, MarkdownMonster.bat, consisting of four lines:

echo off
echo %1
pause
C:\P\W\MarkdownMonster\MarkdownMonster.exe %1

I nstalled MarkdownMonster.bat in IQ via Tools>Options>Markdown Editor Path.
This allowed me to see the parameter passed by IQ, which was the file name and path, as it should be.
The parameter was right, but again, the result depended on whether MarkdownMonster was already open or not prior to my calling it up with IQ.

Let me try to explain more about what I did in IQ.
I have already tried to indicate how I configured IQ to use Markdown Monster.
What is left is how IQ edits "documents" attached to items in a grid.

In InfoQube I focused on the document pane of an item.
I use Menu>File>New>New Markdown FIle.
It asks for a file name, which I enter.
I can then add text to the file in one of two ways.
I can use Menu>Edit>Edit Document (it has the shortcut F2). That works. But it edits the document pane with IQ's own internal editors.

But later I decide to edit this item with Markdown Monster, so I use
Menu>Edit>Edit With Markdown Editor.
Since I have configured IQ to use Markdown Monster, it calls Markdown Monster
and passes the name of the file which is displayed in the document window.

If Markdown Monster is already open (for example, if I opened it before calling up IQ, or at least before I tried to use it to edit the document pane), then the file opens properly in Markdown Monster.

If Markdown Monster is not already open, then it calls up Markdown Monster, but it displays the file with the malfunction I have described above.i

I hope this is clear; I don't seem to have the skill of clear technical writing.

from markdownmonster.

RickStrahl avatar RickStrahl commented on May 26, 2024

I understand what you're saying but I have no idea about what's different between how InfoCube is launching MM and how it's launched from the command line. The behavior should be the same.

There must be something about how InfoCube launches the application...

From the looks of it seems the previewer is not launching. We did have a brief problem in .36-.37 with parameters passed to the browser, but that should ALWAYS cause a problem not sometimes. Unless - you have multiple copies of MM installed and are actually launching a different executable that's a different version? This would account for the different behavior when you launch manually and when you launch with an instance already running,

from markdownmonster.

1comvox avatar 1comvox commented on May 26, 2024

Thank you very much for the reply, and sorry to take so long to reply. I ended up at an impasse but good news-- the problem is gone in the latest version of InfoQube v122u., which plays well with Markdown Monster!

from markdownmonster.

RickStrahl avatar RickStrahl commented on May 26, 2024

I really wonder what the heck they could have been doing for this to fail. MM is pretty flexible - only thing I can think of is some weird permissions.

from markdownmonster.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.