-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
Copy link to Paragraph can copy from the wrong instance of OneNote (as does XML view) #1563
Comments
I have added steps to the 1st post to make it clear how to reproduce. |
I was just doing system documentation so had 2 virtual desktop (i.e. one W11 PC with 2 virtual desktops). I was on the 2nd desktop and was copying links to a para and then pasting into another instance. Because I was on the same page on the main virtual desktop, it kept copying the same link regardless of where I was on the page :-). |
Have you managed to reproduce this / have you had time to look? |
TBH I haven't tried. But TBH, I believe you and can envision exactly why it would happen. Solutions might include:
|
From your reply, I'm not sure I have described it quite right - is the issue clear? i.e. it is like when your command asks ON for the current page, it is given the wrong one. I am not sure how the system decides how to ask for a page. I can't see 1 working as it is exactly the same page, it is just I invoked the "copy para to clipboard" from another instance. So it would have the same ID? When a command is invoked, how does it know what page it was invoked from and how does it know which instance (which active window) it was invoked from? |
Yes I can reproduce it |
This has bitten me a few times in the last week..... I have been reviewing a large project and putting in links on various pages to various other pages to make it easier for a novice to consume. Having a bunch of pages open and editing, putting links all over the place. I realised that on another virtual desktop I had an instance on ON open and on the main page I was referencing. The outcome was a bunch of "random" links to the main page throughout the notes...... Just enough to convince a newbie I was off my rocker and trying to confuse them more :-). Also, came across another expression of the project: #1585 Cheers for all the hard work.... still building up to setting the environment to build this. |
Bitten again - Doing documentation for a project, one page with bits of development, project mgmt. Pulling together references for a meeting. All on muscle memory. Reviewed my list on links and one liners, only to find all the reference links pointed to the same para on the source page :-(. Dev: Did refresh my fork and opened solution, got the first set of requirements, but wouldn't compile - as expected as I hadn't completed the pre-req's for compile..... but then ran out of time. As an aside where should i be looking for the "get the XML for the current page with this name", which is where I assume the issue lies. |
Hi @jasonjac2. I believe this to be an internal problem with the OneNote API. After opening up two windows viewing the same page, the API thinks the context is the first window. It's not until you modify the page content in a secondary window will OneNote set the context of the API to that window. You can replicate this just using the Show XML command as you suggested. |
Hi @stevencohn I can't replicate this, i.e.
|
@stevencohn so on this one, it looks like for me the editing of the page "flipping" ON into realising which the current Instance of a page doesn't actually make any difference. For me, it is predictable which instance it will use, based on (I think) the either the ordering of them being opened OR the order of them on the taskbar (when I press the ON icon on the taskbar and it shows me n instances). |
@stevencohn I've just replicated the issue in OneTastic's XML view, not that I was doubting you :-). |
Yes, that's possible |
I would count that as a weak bite. Kind of like my answer to questions in development meetings "anything is possible". :-) |
Ha! Yes it's quite possible and easy enough to add to the next release. Better? |
thats the best answer, thank you. I was warming up my VS to complete the build pre-requisite. If you are going to build a structure for instances & active pages on those instances, can you consider in the architecture grabbing dekstop | position | Max/Min or make it so that the structure can be enhanced to get these, then the next step to a large thumbnail for all instances on all desktops and hotkeys to goto them immediately would be a smaller step for someone to develop. Thanks again for entertaining my brain guff. Also, can you give me concise wording to raise in a MS eedback that explains the problem? |
I entered a question myself here |
I didn't even know https://learn.microsoft.com/ was a thing! |
Problem to Solve
I have 8 OneNote windows open. I use OM copy link to paragraph from a window. If there is another windows that has the same page open (which is often the case), the copy Link to Paragraph MAY copy the one from the wrong windows (not the one I am on).
The impact is the link has the wrong text and takes you to the wrong part of the page. This can be very confusing.
It does the same thing with the "XML viewer", i.e. the XML will show the selection as the one from the wrong window.
I haven't done any additional testing, but my assumption is, it is either using the first instance that has the correct page open (instead of the one with focus).
I think I noticed it a couple of versions ago, but only just realised when it happens as it take a certain set of circumstanced.
I have tried on 2 different PCs with different pages. You can show the problem with just 2 instances of OneNote.
Steps:
Environment (if applicable)
Version 6.5.1 with OneNote 16.0.17928.20114
Additional Context
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!
The text was updated successfully, but these errors were encountered: