Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

The file SciLexer.dll is not valid. #122

Closed
vezdeneszter opened this issue Sep 23, 2015 · 8 comments
Closed

The file SciLexer.dll is not valid. #122

vezdeneszter opened this issue Sep 23, 2015 · 8 comments

Comments

@vezdeneszter
Copy link

I want to add Scintilla to Visual Studio 2015. I added the directory to my path on windows, And when I try to choose the dll file in Visual Studio to my Windows Forms Application project I get this error message. Adding SciLexer.dll is enough? I had the Scintilla v 2.6 before, and it worked fine. I tried it again, I added the ScintillaNET.dll to Visual Studio 2015 and it worked fine again, I do not get any error.

Thank you.
M

@vezdeneszter vezdeneszter changed the title The file SciLexer.dll is not valid. The file SciLexer.dll is not valid. #question Sep 23, 2015
@jacobslusser
Copy link
Owner

Can you please include the exact error message you are seeing and what version/build of ScintillaNET release and/or nuget package you are using?

@vezdeneszter
Copy link
Author

"The file SciLexer.dll is not valid." is the error message. It is version 3.6.0 what I would like to add.
But when I add version 2.6 I don't get any error. When I used this (2.6) version, I added the ScintillaNET.dll file to Visual Studio and it worked fine. But I downloaded version 3.6.0. and I did not find any dll file named "ScintillaNET.dll" in the src dictionary so I thought I should add the SciLexer.dll to Visual Studio instead of ScintillaNET.dll. So maybe this is the reason of my problem. If it is, than could you send me a download link to the file including the dll files of version 3.6.0?

Thanks,
M

@jacobslusser
Copy link
Owner

The instructions for using v3.x have changed from v2.x. In the past you had to have an external SciLexer.dll present in your DLL search path and there were instructions for placing it there that you had to follow. Version 3.x does not require a separate file. The single ScintillaNET file is all you need.

What I suspect is happening is that you have your old SciLexer.dll file in the search path somewhere and the new ScintillaNET.dll is attempting to load that one by mistake. Trying removing those old SciLexer DLLs from your search path.

@jacobslusser jacobslusser changed the title The file SciLexer.dll is not valid. #question The file SciLexer.dll is not valid. Sep 25, 2015
@vezdeneszter
Copy link
Author

Okay, thank you. But can you please send me the link, where I can download the new ScintillaNET.dll file? Because I did not find any .dll file named "ScintillaNET.dll" on this site: https://github.com/jacobslusser/ScintillaNET/tree/master/src
or this site:
http://www.scintilla.org/ScintillaDownload.html

Thanks,
M

@jacobslusser
Copy link
Owner

Compiled versions which are production ready can be downloaded from NuGet or the Releases page.

@vezdeneszter
Copy link
Author

Thank you!

M

@vezdeneszter
Copy link
Author

I downloaded the signed version, but it does not have "verilog" lexer when I want to choose lexer in Visual Studio. Is this a way to use a verilog lexer, when I use only the ScintillaNET.dll for Visual Studio?

@jacobslusser
Copy link
Owner

I've been adding lexer support on an "as needed" basis and you are the first to request Verilog. I've added support in commit 7accb08. You can find instructions for configuring lexers in the documentation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants