Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot import Markdown files #1566

Open
cplager opened this issue Sep 1, 2024 · 5 comments
Open

Cannot import Markdown files #1566

cplager opened this issue Sep 1, 2024 · 5 comments
Labels
bug Something isn't working vector

Comments

@cplager
Copy link

cplager commented Sep 1, 2024

Problem to Solve

Unable to import Markdown file

To Reproduce

Steps to reproduce the behavior:
more...file...import, then chose markdown file

Expected Behavior

Expects to load Markdown to formatted OneNote

Screenshots

If applicable, add screenshots to help explain your problem.

Environment (if applicable)

Off365 OneNote
Latest OneMore

Log file attached.

16|03:01:41.838| Running command ImportCommand
16|03:01:52.344| ..importing markdown C:\Users\cplag\Downloads\readme.md
16|03:01:52.393| ..System.TypeLoadException
Message: Could not load type 'System.Numerics.Vector`1' from assembly 'System.Numerics.Vectors, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Source: System.Memory

Additional Context

Add any other context about the problem here. Attach page XML file or the app log file as appropriate. You can find the log file here: %localappdata%\temp\OneMore.log

THE FINE PRINT This is a hobby project that I started for myself. I'm happy to take requests and will promise to
consider each one carefully but offer no guarantees that I will ultimately agree to their
usefulness or have time to implement any of them. If OneNote offers a "close enough" work-around
then I will probably reject the request - you've been warned!

OneMore.log

@cplager cplager added bug Something isn't working unread I have seen it or had time to refine it yet labels Sep 1, 2024
@cplager
Copy link
Author

cplager commented Sep 1, 2024

I get the same error if I try converting text to Markdown using more->Edit->Convert Markdown

@stevencohn stevencohn removed the unread I have seen it or had time to refine it yet label Sep 1, 2024
@stevencohn
Copy link
Owner

Which version of OneMore are you running? It should have been fixed in 6.5.1 by #1538, although this is not a recommended version due to the critical issue explained with table formulas. If you're skipping 6.5.1 because of that, then the subsequent release will also have the patch.

@cplager
Copy link
Author

cplager commented Sep 1, 2024 via email

@cplager
Copy link
Author

cplager commented Sep 7, 2024

Update I am already running 6.5.1 (not 6.5.0)

Version 6.5.1 with OneNote 16.0.17928.20114

@stevencohn stevencohn added the markdown Related to markdown label Sep 23, 2024
@stevencohn stevencohn added vector and removed markdown Related to markdown labels Oct 20, 2024
@swiwchar
Copy link

swiwchar commented Dec 19, 2024

I am running Version 6.6.1 with OneNote 16.0.17328.20670 and still get this 'Error running command ConvertMarkdownCommand.'

01|01:42:04.476| Starting dllhost 39116, 2496 Mhz, 64 MB, en-US/en-US, v6.6.1, OneNote 15.0, Office 16.0, 2024-12-19 13:42
01|01:42:04.476| ..Windows 11 Enterprise, Version 23H2, Build 22621, 64 bit
01|01:42:04.491| ..C:\Program Files\Microsoft Office\root\Office16\ONENOTE.EXE (16.0.17328.20670)
01|01:42:04.507| ..OnConnection(ConnectionMode:ext_cm_Startup,custom[1:Int32])
01|01:42:04.507| ..OneAddInsUpdate(custom[])
01|01:42:05.072| ..building ribbon
01|01:42:05.082| ..building ribbon colorizer commands
01|01:42:05.248| ..building ribbon language proofing commands
01|01:42:05.249| ..building ribbon groups
01|01:42:05.249| ..building context menu
01|01:42:05.341| ..OnStartupComplete(custom[])
01|01:42:05.352| ..starting command service
01|01:42:05.352| ..starting reminder service
01|01:42:05.353| ..starting navigation service
01|01:42:05.353| ..hashtag service is disabled
01|01:42:05.353| ..ready
09|01:42:06.007| defined 52 hotkeys for input locale 1033

14|01:42:39.754| Running command ConvertMarkdownCommand
13|01:42:40.005| Error running command ConvertMarkdownCommand
13|01:42:40.005| System.TypeLoadException
Message: Could not load type 'System.Numerics.Vector' from assembly 'System.Numerics.Vectors, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Source: System.Memory
StackTrace:    at System.SpanHelpers.SequenceEqual(Byte& first, Byte& second, NUInt length)
   at System.MemoryExtensions.Equals(ReadOnlySpan`1 span, ReadOnlySpan`1 other, StringComparison comparisonType)
   at Markdig.Helpers.CompactPrefixTree`1.TryMatchExact(ReadOnlySpan`1 text, KeyValuePair`2& match)
   at Markdig.Parsers.HtmlBlockParser.TryParseTagType16(BlockProcessor state, StringSlice line, Int32 startColumn, Int32 startPosition)
   at Markdig.Parsers.HtmlBlockParser.MatchStart(BlockProcessor state)
   at Markdig.Parsers.HtmlBlockParser.TryOpen(BlockProcessor processor)
   at Markdig.Parsers.BlockProcessor.TryOpenBlocks(BlockParser[] parsers)
   at Markdig.Parsers.BlockProcessor.TryOpenBlocks()
   at Markdig.Parsers.BlockProcessor.ProcessLine(StringSlice newLine)
   at Markdig.Parsers.MarkdownParser.ProcessBlocks(BlockProcessor blockProcessor, String text)
   at Markdig.Parsers.MarkdownParser.Parse(String text, MarkdownPipeline pipeline, MarkdownParserContext context)
   at River.OneMoreAddIn.Commands.OneMoreDig.ConvertMarkdownToHtml(String path, String markdown)
   at River.OneMoreAddIn.Commands.ConvertMarkdownCommand.<Execute>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at River.OneMoreAddIn.CommandFactory.<Run>d__6.MoveNext()
TargetSite: [System.Memory] System.SpanHelpers::SequenceEqual()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working vector
Projects
None yet
Development

No branches or pull requests

3 participants