Sublime Forum

Is it normal for the sublime console log to refer to remote files?

#1

I have an extension thats been acting up. The developer of the extension asked me what my log said when I reported it on his Github page. I checked, and I see that the traceback is referring to a python file (engine.py) that appears to be from his personal computer, not mine. Its a Windows directory (I am on Linux) and the username after the Users directory in the file path matches the developer’s github ID. Is this normal? If it is, I feel like a dummy for asking, but for the type of extension it is, phoning home seems a little out of place. I doubt the developer would ask me to check the logs if he was up to something, so maybe I just need some schooling on how extensions in Sublime work behind the scenes.

0 Likes

#2

That sounds indeed a little bit strange. ST’s plugin engine is just a bundled python 3.3 which works as any other standalone python interpreter.

The only reason I can imagine for “wrong paths” being displayed in the traceback might be the python files to be compiled (*.pyc). They contain a “string” reference to the uncompiled source, which is the path on the developers machine.

If you are in doubt you could post the name or link to the github repository to enable the community to check it.

0 Likes

#3

Yeah, I left his name out because I like the extension and I’d rather not do unnecessary reputation damage until I know a little more. Let me see how debugging the [original] issue goes with the developer, and if it’s still weird I will some more info to this post.

0 Likes

#4

Actually, the guy did not answer my question when I showed him the log with filenames from his computer on it so here is a link to the repo for his extension, particularly to an issue I opened up for a bug I ran into. In my second post on the linked page, I pasted in the error log from my computer that had the file names and paths from his computer.

I get the impression that there’s no bad intentions behind the odd file paths, it is probably caused by the mechanism you explained to me earlier. The extension itself is not the kind of thing one would use as bait for malware. That said, I used his extension for quite a while. So if you would not mind taking a quick look at his extension, I would appreciate it.

0 Likes

#5

Don’t need to worry. You see the strange paths because the plugins are compiled *.pyc. These compiled files contain the original path of the uncompiled source, which is displayed in tracebacks.

The plugin uses webbrowser library to open the readme and urllib.request to receive whether information from http://api.openweathermap.org/.

The plugin is safe to use.

1 Like

#6

Thank you sir. And for the github remarks too. It’ll be great to have my favorite theme back without the autoclosing issue.

0 Likes