Windows 7.
I’m reading about reseting the code intel database (see link) Maybe that will help, but I have a lot of files in that directory, so I’m not sure what to do…
Windows 7.
I’m reading about reseting the code intel database (see link) Maybe that will help, but I have a lot of files in that directory, so I’m not sure what to do…
Just remove codeintel folder from your profile directory. This will reset the CodeIntel. Also you can do it using Help - Troubleshooting - Reset CodeIntel Database
Not able to reproduce. Could you try to restart Komodo in Safe Mode? (Help - Troubleshooting - Restart in Safe Mode)
Well…after restarting in safe mode and reseting CodeIntel Database every worked fine!!..but…when restarting in normal mode the code browser failed again
Maybe you were doing something wrong.
C:\Users\<user>\AppData\Local\ActiveState\KomodoIDE\10.0
)After these steps, are you able to reproduce the issue?
Yes, the issue persists after doing those steps
Do you have any add-ons installed? Can you share your log file? (Help - Troubleshooting - View log file)
No addons, just a fresh install
log:
[2016-06-11 20:31:11,224] [INFO] Startup: Welcome to Komodo IDE 10.0.0 build 89159 (platform win32-x86, running on Windows 7 version 6.1.7601)
[2016-06-11 20:31:11,224] [INFO] Startup: C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\komodo.exe built on Wed May 11 15:04:59 2016
[2016-06-11 20:31:12,186] [WARNING] console-logger: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create (1) in resource://gre/modules/Preferences.jsm:381
[2016-06-11 20:31:12,256] [WARNING] root: ko.logging has been converted to a CommonJS module; use require("ko/logging") instead (since Komodo 9.0.0a1).
@chrome://komodo/content/komodo.js:15:1
[2016-06-11 20:31:12,684] [ERROR] console-logger: TypeError: redeclaration of variable val (2) in chrome://analytics/content/analytics.js:204
Traceback (most recent call last):
File "chrome://analytics/content/analytics.js", line 204, in
[2016-06-11 20:31:12,990] [ERROR] console-logger: bad script XDR magic number (0) in :0
Traceback (most recent call last):
File "", line 0, in
[2016-06-11 20:31:13,694] [WARNING] keybindings: [Ctrl+0] was used for 'cmd_goToQuickBookmark_0', overriding to use 'cmd_fontZoomReset'
[2016-06-11 20:31:14,903] [WARNING] koLanguageServiceBase.indenting: Found non-positive guess of 0 (min 1)
[2016-06-11 20:31:15,500] [INFO] koInitService: Adding pre startup service for 'koFileStatusService': '@activestate.com/koFileStatusService;1'
[2016-06-11 20:31:15,711] [INFO] elastic_tabstops: Elastic tabstops loaded.
[2016-06-11 20:31:15,799] [INFO] komodospellchecker: Spell checker loaded.
[2016-06-11 20:31:15,799] [INFO] komodospellchecker: Using dictionary en-US
[2016-06-11 20:31:15,920] [ERROR] koScopeDocs-Py: Could not find cix for ext
[2016-06-11 20:31:15,934] [ERROR] koScopeDocs-Py: Could not find cix for html5
[2016-06-11 20:31:19,200] [INFO] koInitService: Adding pre startup service for 'KoMemoryReporter': '@activestate.com/koMemoryReporter;1'
[2016-06-11 20:31:19,204] [INFO] koInitService: Adding pre startup service for 'koCommandmentService': '@activestate.com/koCommandmentService;1'
[2016-06-11 20:31:19,216] [INFO] koInitService: Adding pre startup service for 'koDBGPManager': '@activestate.com/koDBGPManager;1'
[2016-06-11 20:31:22,444] [WARNING] console-logger: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create (1) in file:///C:/Program%20Files%20(x86)/ActiveState%20Komodo%20IDE%2010/lib/mozilla/components/koamAddonManager.js:138
[2016-06-11 20:31:22,453] [ERROR] codeintel.oop.driver:
Traceback (most recent call last):
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\oop\driver.py", line 568, in run
handler.handleRequest(request, self)
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\oop\driver.py", line 626, in handleRequest
meth(request, driver)
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\oop\driver.py", line 911, in do_get_scopes
scopes = self._do_get_scopes_aux(buf, pos)
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\oop\driver.py", line 916, in _do_get_scopes_aux
scoperef = buf.scoperef_from_pos(pos)
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\udl.py", line 305, in scoperef_from_pos
blob = self.blob_from_lang[lang]
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\citadel.py", line 202, in blob_from_lang
self.scan()
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\udl.py", line 483, in scan
super(XMLParsingBufferMixin, self).scan(mtime, skip_scan_time_check)
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\citadel.py", line 290, in scan
skip_scan_time_check=skip_scan_time_check)
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\database\database.py", line 1046, in update_buf_data
skip_scan_time_check=skip_scan_time_check)
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\database\multilanglib.py", line 871, in update_buf_data
conn = self._get_symbols_db_conn()
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\database\langlib.py", line 923, in _get_symbols_db_conn
conn = apsw.Connection(symbols_db)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xed in position 12: ordinal not in range(128)
[2016-06-11 20:31:22,497] [ERROR] codeintel.oop.driver:
Traceback (most recent call last):
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\oop\driver.py", line 568, in run
handler.handleRequest(request, self)
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\oop\codebrowser.py", line 26, in handleRequest
return meth(request, driver)
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\oop\codebrowser.py", line 50, in do_get_buffer
buf.scan()
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\udl.py", line 483, in scan
super(XMLParsingBufferMixin, self).scan(mtime, skip_scan_time_check)
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\citadel.py", line 290, in scan
skip_scan_time_check=skip_scan_time_check)
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\database\database.py", line 1046, in update_buf_data
skip_scan_time_check=skip_scan_time_check)
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\database\multilanglib.py", line 871, in update_buf_data
conn = self._get_symbols_db_conn()
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\database\langlib.py", line 923, in _get_symbols_db_conn
conn = apsw.Connection(symbols_db)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xed in position 12: ordinal not in range(128)
[2016-06-11 20:31:22,513] [ERROR] codeintel.oop.driver: 'NoneType' object has no attribute 'get'
Traceback (most recent call last):
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\oop\driver.py", line 568, in run
handler.handleRequest(request, self)
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\oop\driver.py", line 626, in handleRequest
meth(request, driver)
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\oop\driver.py", line 889, in do_get_sections
sections = buf.get_sections()
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\buffer.py", line 411, in get_sections
return self.cached_sections
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\buffer.py", line 330, in cached_sections
self._sections_cache = (now, md5sum, list(self.sections))
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\udl.py", line 386, in sections
sections += list(langintel.sections_from_buf(self))
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\citadel.py", line 55, in sections_from_buf
blob = buf.blob_from_lang.get(self.lang)
AttributeError: 'NoneType' object has no attribute 'get'
[2016-06-11 20:31:22,530] [ERROR] koCodeIntel: 'NoneType' object has no attribute 'get'
Traceback (most recent call last):
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\oop\driver.py", line 568, in run
handler.handleRequest(request, self)
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\oop\driver.py", line 626, in handleRequest
meth(request, driver)
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\oop\driver.py", line 889, in do_get_sections
sections = buf.get_sections()
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\buffer.py", line 411, in get_sections
return self.cached_sections
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\buffer.py", line 330, in cached_sections
self._sections_cache = (now, md5sum, list(self.sections))
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\udl.py", line 386, in sections
sections += list(langintel.sections_from_buf(self))
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\citadel.py", line 55, in sections_from_buf
blob = buf.blob_from_lang.get(self.lang)
AttributeError: 'NoneType' object has no attribute 'get'
[2016-06-11 20:31:23,859] [ERROR] codeintel.oop.driver:
Traceback (most recent call last):
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\oop\driver.py", line 568, in run
handler.handleRequest(request, self)
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\oop\codebrowser.py", line 26, in handleRequest
return meth(request, driver)
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\oop\codebrowser.py", line 50, in do_get_buffer
buf.scan()
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\udl.py", line 483, in scan
super(XMLParsingBufferMixin, self).scan(mtime, skip_scan_time_check)
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\citadel.py", line 290, in scan
skip_scan_time_check=skip_scan_time_check)
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\database\database.py", line 1046, in update_buf_data
skip_scan_time_check=skip_scan_time_check)
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\database\multilanglib.py", line 871, in update_buf_data
conn = self._get_symbols_db_conn()
File "C:\Program Files (x86)\ActiveState Komodo IDE 10\lib\mozilla\python\komodo\codeintel2\database\langlib.py", line 923, in _get_symbols_db_conn
conn = apsw.Connection(symbols_db)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xed in position 12: ordinal not in range(128)
[2016-06-11 20:32:45,450] [WARNING] console-logger: Key event not available on GTK2: key="u" modifiers="control,shift" (1) in chrome://komodo/content/tail/tail.xul:0
[2016-06-11 20:32:45,450] [WARNING] console-logger: Key event not available on some keyboard layouts: key="v" modifiers="control,alt" (1) in chrome://komodo/content/tail/tail.xul:0
Did you have Komodo 9 installed before this one? Komodo merges some of the old settings into a new profile.
yes, 9.2 wich is currently installed right now (and code browser is working there), could that be it?
Not sure, but yeah. I’ll leave it to the devs, this is out of my knowledge
When I reported this issue I was at home with my personal computer. I’m at work right now, with a different machine and I’m having the same issue with the code browser
It appears you have an invalid character in your file (0xed). Removing that invalid character should fix the problem.
But this is happening even with a new file created with komodo 10. Also, keep in mind that the problem goes away when running in safe mode
@Matias you are correct. Sorry for the oversight. Please post the path to your codeintel folder (c:…). I think there’s a character in that path that is causing trouble.
C:\Users\Matías\AppData\Local\ActiveState\KomodoIDE\10.0\codeintel
Yep, there it is.
@mitchell can we add support for this or would this potentially be a huge hurdle? If the latter is the case we should at least provide a fallback.
@Matias to work around this issue you would have to specify an alternate profile directory, you can do this as follows:
On Windows you could create a batch file with the contents:
set KOMODO_USERDATADIR=c:\path\to\custom\folder\ko C:\Program Files (x86)\ActiveState Komodo IDE 10\komodo.exe
Then use that batch file to start Komodo.