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

Style Configurations Not Applied When Dragging Files to Another Instance #5589

Open
Cryptexx opened this issue Apr 26, 2019 · 6 comments

Comments

@Cryptexx
Copy link

commented Apr 26, 2019

Description of the Issue

The style configuration for code is not being applied when drag/dropping subsequent files to a new window.

Steps to Reproduce the Issue

  1. Open a file of any extension that Notepad++ has a style configuration for.
  2. Open up two more files.
  3. Drag File #2 offscreen to open a new Notepad++ instance.
  4. Drag File #3 to the new instance.

You'll notice that File #2 will have code highlighting. File #3 does not; neither will any subsequent file added to the new instance.

Expected Behavior

Code should be highlighted for any file when moving to new view.

Actual Behavior

Beyond the first file, any subsequent file will not have a code style markup applied.

Debug Information

Notepad++ v7.6.6 (64-bit)
Build time : Apr 3 2019 - 23:52:32
Path : C:\Program Files\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS : Windows 10 (64-bit)
Plugins : mimeTools.dll NppConverter.dll

@MetaChuh MetaChuh added the verified label Apr 26, 2019
@sasumner

This comment has been minimized.

Copy link
Contributor

commented Apr 26, 2019

Just a note on "nomenclature": This issue is meaning "another instance of Notepad++" even though the terminology used is all over the place:

"...moving to another view"
"...to a new window"
"...when moving to a new view".

This is not merely pedantic: the concept of a "view" in Notepad++ is something different than another "instance".

@MetaChuh

This comment has been minimized.

Copy link

commented Apr 26, 2019

@Cryptexx

confirmed.
thank you for your debug information and details.

verified issue: tab to tab drag and drop, from one open notepad++ multi-instance window to another, breaks code highlighting on 7.6.6 x86 and x64.

  • open two window instances of notepad++
  • open e.g. config.xml in window 1
  • drag the config.xml tab to window 2

the dragged and dropped config.xml is now shown as normal text at window 2.

last version without this issue: 7.6.3.

best regards

@Cryptexx Cryptexx changed the title Style Configurations Not Applied When Moving to Another View Style Configurations Not Applied When Dragging Files to Another Instance Apr 26, 2019
@SinghRajenM

This comment has been minimized.

Copy link
Contributor

commented Apr 27, 2019

It seems to be duplicate of #4883, #4769, #3475, #3451 and may be few more.

@MetaChuh, are you sure about V7.6.3? I'm asking because similar defects were logged prior to V7.6.3 as well.

@MetaChuh

This comment has been minimized.

Copy link

commented Apr 27, 2019

@SinghRajenM

you are correct, thanks and my apologies.
it only worked at the test, as my 7.6.3 had xml tools installed and i used xml files for testing.

i've re-checked now on w7 and w10 with clean test instances:
7.6.3 dnd also not working with highlighting on both window 7 & 10 (see screencast)

7 6 3  w10 multiinst dnd not working

Notepad++ v7.6.3 (32-bit)
Build time : Jan 27 2019 - 17:20:30
Path : C:\Users\User\Desktop\npp.7.6.3.bin.multi\notepad++.exe
Admin mode : OFF
Local Conf mode : ON
OS : Windows 10 (64-bit)
Plugins : DSpellCheck.dll mimeTools.dll NppConverter.dll NppExport.dll

@sasumner

This comment has been minimized.

Copy link
Contributor

commented May 1, 2019

So what is really happening here is that the file that doesn't have the coloring is being loaded as type "Normal text file" for some reason. If you then go to the Language menu and select XML, then all is good (it gets colored and has a correct filetype on the status bar).

I noticed the same thing will happen if you use a right-click Explorer extension to send an XML file to a single instance of Notepad++. It doesn't have to be Notepad++'s right-click association. Note however that if you simply drag-n-drop from Explorer to N++, it works just fine. (Not sure if that is or should be a separate "issue").

@AdamH12113

This comment has been minimized.

Copy link

commented Jul 23, 2019

This issue is still present in 7.7.1 (64-bit) under Windows 10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.