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

script error #1

Closed
brayanmano opened this issue Sep 18, 2017 · 22 comments
Closed

script error #1

brayanmano opened this issue Sep 18, 2017 · 22 comments

Comments

@brayanmano
Copy link

When I click on draw molecule, a script error appears.
  What should I do?

@MikeWilliams-UK
Copy link
Contributor

What operating system and version of word are you using?

@MikeWilliams-UK
Copy link
Contributor

Please ensure you have IE 11 installed.

@MikeWilliams-UK
Copy link
Contributor

Also if you are using server is please make sure IE enhanced security is off.

@brayanmano
Copy link
Author

brayanmano commented Sep 19, 2017 via email

@MikeWilliams-UK
Copy link
Contributor

The script error is happening when the embedded IE Control runs the JavaScript of the ChemDoodle Web editor.
You could try clearing the chem4word folder in your appdata\local folder

@MikeWilliams-UK
Copy link
Contributor

Sorry closed in error

@brayanmano
Copy link
Author

brayanmano commented Sep 19, 2017 via email

@MikeWilliams-UK
Copy link
Contributor

MikeWilliams-UK commented Sep 19, 2017 via email

@MikeWilliams-UK
Copy link
Contributor

MikeWilliams-UK commented Sep 19, 2017 via email

@brayanmano
Copy link
Author

brayanmano commented Sep 19, 2017 via email

@MikeWilliams-UK
Copy link
Contributor

MikeWilliams-UK commented Sep 25, 2017

brayanmano,

I have checked the telemetry for Version3 and I can't see any errors being recorded.
Are you definatly using version 3, which you would have to have compiled yourself using Visual Studio 2015?

Please can you check in the folder C:\Users\[UserName]\AppData\Local\Chem4Word.V3
Can you please list the files in this folder.
does a folder "ChemDoodleWeb" exist? (I think you have already answered this)
does a folder "Telelmetry" exist?
If the folder Telemetry exists do log files exist inside it?
If so can you post one of them for when the JavaScript error occurs.

@MikeWilliams-UK
Copy link
Contributor

MikeWilliams-UK commented Sep 25, 2017

brayanmano,

If you are using version 2 please post in the version 2 issues at https://github.com/Chem4Word/Version2/issues

For version 2 the log file is inside "C:\Users\[UserName]\AppData\Local\Chemistry Add-in for Word" and will be called "C4WLog.txt"

@MikeWilliams-UK
Copy link
Contributor

brayanmano,

I can see some telemetry from your most recent attempts.
Have you now got the editor working? From the telemetry it appears that you have.

I can see that you are getting "Referência de objeto não definida para uma instância de um objeto.", which translates to "Object reference not set to an instance of an object."

The recorded stack trace is as follows
at Chem4Word.Helpers.CustomXmlPartHelper.GuidFromTag(String tag) na C:\Dev\vso\chem4word\C4W V.Next\Mike\Chem4Word.V3\Helpers\CustomXMLPartHelper.cs:line 47
at Chem4Word.Navigator.NavigatorViewModel.<>c__DisplayClass13_0.b__1(ContentControl cc) na C:\Dev\vso\chem4word\C4W V.Next\Mike\Chem4Word.V3\Navigator\NavigatorViewModel.cs:line 130
at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext() at System.Linq.Enumerable.First[TSource](IEnumerable1 source)
at Chem4Word.Navigator.NavigatorViewModel.OnPartAfterLoad(CustomXMLPart NewPart) na C:\Dev\vso\chem4word\C4W V.Next\Mike\Chem4Word.V3\Navigator\NavigatorViewModel.cs:line 128

We will look into this and let you know what our findings are.

@MikeWilliams-UK
Copy link
Contributor

brayanmano,

It would also appear that you have version 2 and version 3 installed, which we know causes issues.

@MikeWilliams-UK
Copy link
Contributor

brayanmano,

Where did you get the link to the v3 installers from?
We have not released this officially yet as it is still in very early beta stage!

@brayanmano
Copy link
Author

brayanmano commented Sep 27, 2017 via email

@brayanmano
Copy link
Author

brayanmano commented Sep 27, 2017 via email

@MikeWilliams-UK
Copy link
Contributor

When using v3 you MUST let it convert the structures (it should ask you this when a file is opened)

@MikeWilliams-UK
Copy link
Contributor

Please confirm that all is well with v3 and I can close this issue

@brayanmano
Copy link
Author

brayanmano commented Sep 27, 2017 via email

@brayanmano
Copy link
Author

brayanmano commented Sep 27, 2017 via email

@MikeWilliams-UK
Copy link
Contributor

With V3 we encode data into the content controls tag, if this is empty (which could happen if a V2 chemistry did not convert properly) then these sort of errors will occur.

This will explain why you are seeing it working fine today with new structures or ones with correct tags.

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

No branches or pull requests

2 participants