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

Scintilla is not working #22

Closed
danielo515 opened this issue Sep 8, 2015 · 6 comments
Closed

Scintilla is not working #22

danielo515 opened this issue Sep 8, 2015 · 6 comments

Comments

@danielo515
Copy link

I just copy pasted the example that is on the wiki, hit F5 and got the following error:


Microsoft JScript runtime error

Exception thrown and not caught

line: 176, pos: 10

OK

I want to use scintilla to style text. If there is an easier way, I would love to know about it.

@sieukrem
Copy link
Owner

What example did you use?

@eight04
Copy link

eight04 commented Feb 24, 2016

I can get this error with following code

require("lib/Scintilla")

Try to print the error

try {
    require("lib/Scintilla")
} catch (err) {
    alert(err);
}
File does not exist: lib/User32.dll.js

It is a bug related to require system.

The require function will look file from:

  1. Current working directory, which is C:\Program Files (x86)\Notepad++.
  2. require.currentDir which is C:\Program Files (x86)\Notepad++\plugins\jN at first. After requiring Scintilla, it becomes C:\Program Files (x86)\Notepad++\plugins\jN\lib

So it just fails to require lib/User32.dll.js (C:\Program Files (x86)\Notepad++\lib/User32.dll.js and C:\Program Files (x86)\Notepad++\plugin\jN\lib\lib/User32.dll.js)

@sieukrem
Copy link
Owner

Try following code

require("lib/scintilla.js")

@eight04
Copy link

eight04 commented Feb 24, 2016

Still the same error
image

@sieukrem
Copy link
Owner

Please verify if recently updated files user32.dll.js, kernel32.dll.js, scintilla.js solve your problem

@eight04
Copy link

eight04 commented Feb 24, 2016

Confirmed the fix with latest commit! Thank you very much 😄

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

No branches or pull requests

3 participants