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.

AREPL stops refreshing on MacOS

See original GitHub issue

Describe the bug Installed the AREPL extension. trying it out with.py files, seems to work fine until I start to do anything that is not basic variables/lists etc.

To Reproduce Steps to reproduce the behavior:

  1. Install AREPL on VSCode for Mac OS
  2. create a test.py
  3. add import requests
  4. add a = 1
  5. add r = requests.get('<url>')
  6. start typing in the placeholder to replace with say https://randomuser.me/api
  7. AREPL crashes with Traceback (most recent call last): line 5, in <module> File "/Users/bubble/.pyenv/versions/venv/lib/python3.8/site-packages/requests/api.py", line 76, in get return request('get', url, params=params, **kwargs) File "/Users/bubble/.pyenv/versions/venv/lib/python3.8/site-packages/requests/api.py", line 61, in request return session.request(method=method, url=url, **kwargs) File "/Users/bubble/.pyenv/versions/venv/lib/python3.8/site-packages/requests/sessions.py", line 528, in request prep = self.prepare_request(req) File "/Users/bubble/.pyenv/versions/venv/lib/python3.8/site-packages/requests/sessions.py", line 456, in prepare_request p.prepare( File "/Users/bubble/.pyenv/versions/venv/lib/python3.8/site-packages/requests/models.py", line 316, in prepare self.prepare_url(url, params) File "/Users/bubble/.pyenv/versions/venv/lib/python3.8/site-packages/requests/models.py", line 393, in prepare_url raise InvalidURL("Invalid URL %r: No host supplied" % url) requests.exceptions.InvalidURL: Invalid URL 'https://': No host supplied and doesn’t update until I click on the AREPL icon to turn it off/on

Expected behavior

expected it to just keep updating through any incomplete lines.

Other Information (please complete the following information):

  • OS: Mac OS Mojave 10.14.6
  • Python Version 3.8.7

Additional context

I’ve tried older versions and it is the same situation. With or without venv. Same problem when increasing the delays or changing it to onSave etc.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
krisjcommented, Mar 18, 2021

@krisj I am also having the same issue. Will you be able to provide the steps how to downgrade AREPL to 1.0.19 ??? the oldest version is >1.0.19 in this page. https://marketplace.visualstudio.com/items?itemName=almenon.arepl

@shakir544 Capto_Capture 2021-03-18_10-29-13_p m

1reaction
krisjcommented, Apr 1, 2021

This should be working now in AREPL v2.0.2, can you confirm please @shakir544 @krisj ?

yep working here, thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

arepl/Lobby - Gitter
if you're on a Mac it might be the same problem this guy had (in that the user-sites directory did not exist): Almenon/AREPL-vscode#81....
Read more >
AREPL and console showing different working directories ...
The reason is that the precise locations of the startup paths displayed by default on the two terminals are different.
Read more >
AREPL for python - Visual Studio Marketplace
AREPL automatically evaluates python code in real-time as you type. ... Code after #$end will not be executed in real-time.
Read more >
macOS Monterey: "This app will not… | Apple Developer Forums
framework/Versions/2.7/Python]. I am searching for solutions but could not find any. Hope this will be fixed soon by developer updating it. —.
Read more >
Top 10 Python Extensions for Visual Studio Code
AREPL automatically evaluates Python code in real time as you type. ... This extension is not just a code snippet, it will also...
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