question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problems when installed as a `.sublime-package` file

See original GitHub issue

I saw this at https://github.com/wbond/package_control_channel/pull/6294 and was interested to try it. Unfortunately, there seems to be a few problems at the moment. (I like the descriptiveness of your PR on the PC channel btw 😃)

Summary

When Requester is installed via Package Control, trying to use the Requester: Show Tutorial item in the Command Palette throws lots of errors in the ST console instead of showing the tutorial.

Expected behavior

The functionality described in the readme would work, for example, the tutorial.

Actual behavior

Nothing happens (except the traceback) when trying to run the tutorial.

Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 797, in run_
    return self.run()
  File "other_commands in C:\Users\Keith\AppData\Roaming\Sublime Text 3\Installed Packages\Requester.sublime-package", line 42, in run
  File "./python3.3/shutil.py", line 109, in copyfile
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Keith\\AppData\\Roaming\\Sublime Text 3\\Packages\\Requester\\docs\\_tutorial.md'

Steps to reproduce

  1. Open ST
  2. Open Command Palette
  3. Type PC: AR
  4. Select Package Control: Add Repository
  5. Paste in https://github.com/kylebebak/Requester and press <kbd>Enter</kbd>
  6. Open Command Palette
  7. Select Package Control: Install Package
  8. Type Requester
  9. Open Command Palette
  10. Type rtut and select Requester: Show Tutorial
  11. Notice nothing happens. Open the ST console and see the traceback

Tips

Maybe add a .no-sublime-package file to fix this problem, or ideally, find a way to make it work in a package 😃

Environment

  • Operating system and version: Windows 7 x64
  • Sublime Text Build: 3131
  • Package Control version: 3.2.1
  • Requester version: 1.2.0

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
kylebebakcommented, May 13, 2017

@keith-hall

Hey Keith,

It would definitely be a good idea to mention it, tomorrow I’m going to push a release with some nice changes and close this issue:

  • add instructions to use Package Control: Satisfy Dependencies, and a pop suggesting that user do this if one of these AttributeErrors is raised because requests isn’t being imported properly
  • allowing requests to be executed from a view that hasn’t yet been saved
  • allowing users to specify path to env file with absolute or relative path
  • assume you execute a request that matches a request in an open tab: instead of closing and reopening this tab, which might change its position relative to other tabs, simply reset the content in the matching tab when the response returns
  • make the default Markdown syntax the fallback (I don’t know why I couldn’t find this)

I would be very grateful if you wanted to improve syntax highlighting, the HTTP headers, or anything else that could use some work =)

0reactions
kylebebakcommented, May 13, 2017

@keith-hall

I uploaded release 1.3.0 which includes the features in my previous comment.

There is information in the README, the tutorial, and the install message advising users to run Package Control: Satisfy Dependencies if nothing is working.

Also, the default Markdown syntax is used as a fallback if MardownEditing syntax isn’t found. Neither of these syntaxes causes an error popup to appear if it’s not present.

I’m going to close this issue, and let AlexKvazos the package is ready. Thanks a lot!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - Package Control
There are no packages available for installation · Select the View > Show Console menu entry · Look for any lines starting with...
Read more >
Install package not working - Technical Support - Sublime Forum
when i open the package control and input install package, the console s log tell me 'Package Control: Error downloading channel.
Read more >
Problem to install Package Control on Sublime Text 3
It means your "packages control" is installed already. Now you can open your command plate (ctrl+shift+p) and type "Packages control:Install ...
Read more >
Error after installing via Package Control #46 - GitHub
The error seems to happen when I interact with Package Control (add/remove packages). Syntax highlighting still works, so it's not a big deal....
Read more >
plugins - SublimeText 3 and ConvertCase package beginner ...
1 Answer 1 · Click the Preferences > Browse Packages… menu · Browse up a folder and then into the Installed Packages/ folder...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found