No answers

Hey I just tried your trivia bot but for every answer i always got 0 matches i think something was wrong with the searching urls could you please help me

Could you post a screenshot of the problem?

Unfortunately I already closed the window :/

No problem. If this issue occurs again please screenshot it and post it in this issue.

I got again the issue and here is the screenshot of an example:

So?

now i just get this

That is incredibly strange. As for the "Server response not JSON" message, the HQ servers might be overloaded. I'll be looking into this issue further.

Okay but actually the thing with the json file is fine because it works again the problem is more with that what I send on the other picture

Yep, that's what I was saying above. The "Server response not JSON" is probably just due to HQ.

Okay keep me informed then if you have any news please

So any news?

I'm getting the following:
Show active, connecting to socket at https://ws-quiz.hype.space/ws/44151
Connected

Question detected.
Question 10 out of 12
In the Bible, which son of Jacob has the same mother as Joseph?
['Benjamin', 'Levi', 'Simeon']

Searching
['Benjamin', 'Levi', 'Simeon']
['bible', 'son', 'jacob', 'mother', 'joseph']
['https://en.wikipedia.org/wiki/Rachel', 'https://en.wikipedia.org/wiki/Jacob', 'https://en.wikipedia.org/wiki/Simeon_(son_of_Jacob)', 'http://www.aboutbibleprophecy.com/p34.htm', 'https://www.lds.org/scriptures/gs/joseph-son-of-jacob?lang=eng']
Running method 1
{'benjamin': 29, 'levi': 18, 'simeon': 57}
simeon

Traceback (most recent call last):
  File "W:\HQ Trivia\HackQ-Trivia\hq_main.py", line 47, in <module>
    asyncio.get_event_loop().run_until_complete(networking.websocket_handler(socket, headers))
  File "C:\Users\Blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 467, in run_until_complete
    return future.result()
  File "W:\HQ Trivia\HackQ-Trivia\networking.py", line 66, in websocket_handler
    print(await question.answer_question(question_str, answers))
  File "W:\HQ Trivia\HackQ-Trivia\question.py", line 67, in answer_question
    key_nouns.update(search.find_nouns(question, num_words=5, reverse=True))
  File "W:\HQ Trivia\HackQ-Trivia\search.py", line 33, in find_nouns
    tokens = word_tokenize(text)
  File "C:\Users\Blah\AppData\Local\Programs\Python\Python36-32\lib\site-packages\nltk\tokenize\__init__.py", line 128, in word_tokenize
    sentences = [text] if preserve_line else sent_tokenize(text, language)
  File "C:\Users\Blah\AppData\Local\Programs\Python\Python36-32\lib\site-packages\nltk\tokenize\__init__.py", line 94, in sent_tokenize
    tokenizer = load('tokenizers/punkt/{0}.pickle'.format(language))
  File "C:\Users\Blah\AppData\Local\Programs\Python\Python36-32\lib\site-packages\nltk\data.py", line 834, in load
    opened_resource = _open(resource_url)
  File "C:\Users\Blah\AppData\Local\Programs\Python\Python36-32\lib\site-packages\nltk\data.py", line 952, in _open
    return find(path_, path + ['']).open()
  File "C:\Users\Blah\AppData\Local\Programs\Python\Python36-32\lib\site-packages\nltk\data.py", line 673, in find
    raise LookupError(resource_not_found)
LookupError:
**********************************************************************
  Resource punkt not found.
  Please use the NLTK Downloader to obtain the resource:

  >>> import nltk
  >>> nltk.download('punkt')

  Searched in:
    - 'C:\\Users\\Blah/nltk_data'
    - 'C:\\nltk_data'
    - 'D:\\nltk_data'
    - 'E:\\nltk_data'
    - 'C:\\Users\\Blah\\AppData\\Local\\Programs\\Python\\Python36-32\\nltk_data'
    - 'C:\\Users\\Blah\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\nltk_data'
    - 'C:\\Users\\Blah\\AppData\\Roaming\\nltk_data'
    - ''
**********************************************************************

>>> import nltk

>>> nltk.download("stopwords")

[nltk_data] Downloading package stopwords to
[nltk_data]     C:\Users\Blah\AppData\Roaming\nltk_data...
[nltk_data]   Package stopwords is already up-to-date!
True
>>> nltk.download("averaged_perceptron_tagger")

[nltk_data] Downloading package averaged_perceptron_tagger to
[nltk_data]     C:\Users\Blah\AppData\Roaming\nltk_data...
[nltk_data]   Package averaged_perceptron_tagger is already up-to-
[nltk_data]       date!
True

Try downloading punkt as well. Will be adding this to the README.

How do you download it? I'm quite new to this. What I've done is create a file called requirements.txt and add the following in there:
aiohttp
bs4
nltk
unidecode
Then I run this:
pip install -r requirements.txt
And it works fine. I tried doing the same thing by just adding punkt into requirements.txt and it says this:
Collecting punkt (from -r requirements.txt (line 1))
Could not find a version that satisfies the requirement punkt (from -r requirements.txt (line 1)) (from versions: )
No matching distribution found for punkt (from -r requirements.txt (line 1))

Any news for my problem @Exaphis ?

Still not working.

`Question detected.
Question 10 out of 12
Workers throughout Victoria, Australia get a day off every November for what sporting event?
['Cricket match', 'Horse race', 'Rugby game']
Searching
['Cricket match', 'Horse race', 'Rugby game']
['workers', 'throughout', 'victoria', 'australia', 'get', 'day', 'every', 'november', 'sporting', 'event']
['http://www.traveller.com.au/no-contest-why-melbourne-is-the-nations-sporting-capital-gus8fc', 'http://www.visitmelbourne.com/United-Kingdom/Sports-and-events', 'http://www.visitvictoria.com/Events/Sports', 'https://en.wikipedia.org/wiki/Public_holidays_in_Australia', 'https://en.wikipedia.org/wiki/Victoria_(Australia)']
Server timeout/error to http://www.visitvictoria.com/Events/Sports
Running method 1
{'cricket match': 0, 'horse race': 0, 'rugby game': 0}
Running method 2
{'Cricket match': {'cricket': 11, 'match': 4}, 'Horse race': {'horse': 2, 'race': 12}, 'Rugby game': {'rugby': 8, 'game': 6}}
Cricket match
[('Workers', 'NNS'), ('throughout', 'IN'), ('Victoria', 'NNP'), (',', ','), ('Australia', 'NNP'), ('get', 'VB'), ('a', 'DT'), ('day', 'NN'), ('off', 'IN'), ('every', 'DT'), ('November', 'NNP'), ('for', 'IN'), ('what', 'WP'), ('sporting', 'VBG'), ('event', 'NN'), ('?', '.')]
Question nouns: ['australia', 'workers', 'victoria']
Running method 3
Search processed
URLs fetched
Cricket match: {'australia': 59, 'workers': 0, 'victoria': 0}
Horse race: {'australia': 16, 'workers': 0, 'victoria': 1}
Rugby game: {'australia': 28, 'workers': 0, 'victoria': 0}
Keyword scores: {'Cricket match': 75, 'Horse race': 64, 'Rugby game': 73}
Noun scores: {'Cricket match': 59, 'Horse race': 17, 'Rugby game': 28}
Cricket match
Search took 9.303157091140747 seconds
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\logging_init_.py", line 994, in emit
stream.write(msg)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f45f' in position 151: character maps to
Call stack:
File "", line 1, in
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 144, in main
ret = method(*args, **kwargs)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 474, in runcode
exec(code, self.locals)
File "W:\HQ Trivia\HackQ-Trivia\hq_main.py", line 47, in
asyncio.get_event_loop().run_until_complete(networking.websocket_handler(socket, headers))
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 454, in run_until_complete
self.run_forever()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 421, in run_forever
self._run_once()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 1431, in _run_once
handle._run()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\events.py", line 145, in _run
self._callback(*self.args)
File "W:\HQ Trivia\HackQ-Trivia\networking.py", line 52, in websocket_handler
logging.info(message_data)
Unable to print the message and arguments - possible formatting error.
Use the traceback above to help find the error.
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\logging_init.py", line 994, in emit
stream.write(msg)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f625' in position 255: character maps to
Call stack:
File "", line 1, in
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 144, in main
ret = method(*args, **kwargs)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 474, in runcode
exec(code, self.locals)
File "W:\HQ Trivia\HackQ-Trivia\hq_main.py", line 47, in
asyncio.get_event_loop().run_until_complete(networking.websocket_handler(socket, headers))
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 454, in run_until_complete
self.run_forever()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 421, in run_forever
self._run_once()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 1431, in _run_once
handle._run()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\events.py", line 145, in _run
self._callback(*self.args)
File "W:\HQ Trivia\HackQ-Trivia\networking.py", line 52, in websocket_handler
logging.info(message_data)
Unable to print the message and arguments - possible formatting error.
Use the traceback above to help find the error.
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\logging_init.py", line 994, in emit
stream.write(msg)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f622' in position 151: character maps to
Call stack:
File "", line 1, in
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 144, in main
ret = method(*args, **kwargs)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 474, in runcode
exec(code, self.locals)
File "W:\HQ Trivia\HackQ-Trivia\hq_main.py", line 47, in
asyncio.get_event_loop().run_until_complete(networking.websocket_handler(socket, headers))
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 454, in run_until_complete
self.run_forever()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 421, in run_forever
self._run_once()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 1431, in _run_once
handle._run()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\events.py", line 145, in _run
self._callback(*self.args)
File "W:\HQ Trivia\HackQ-Trivia\networking.py", line 52, in websocket_handler
logging.info(message_data)
Unable to print the message and arguments - possible formatting error.
Use the traceback above to help find the error.
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\logging_init.py", line 994, in emit
stream.write(msg)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 151-170: character maps to
Call stack:
File "", line 1, in
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 144, in main
ret = method(*args, **kwargs)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 474, in runcode
exec(code, self.locals)
File "W:\HQ Trivia\HackQ-Trivia\hq_main.py", line 47, in
asyncio.get_event_loop().run_until_complete(networking.websocket_handler(socket, headers))
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 454, in run_until_complete
self.run_forever()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 421, in run_forever
self._run_once()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 1431, in _run_once
handle._run()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\events.py", line 145, in _run
self._callback(*self.args)
File "W:\HQ Trivia\HackQ-Trivia\networking.py", line 52, in websocket_handler
logging.info(message_data)
Unable to print the message and arguments - possible formatting error.
Use the traceback above to help find the error.
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\logging_init.py", line 994, in emit
stream.write(msg)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 151-209: character maps to
Call stack:
File "", line 1, in
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 144, in main
ret = method(*args, **kwargs)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 474, in runcode
exec(code, self.locals)
File "W:\HQ Trivia\HackQ-Trivia\hq_main.py", line 47, in
asyncio.get_event_loop().run_until_complete(networking.websocket_handler(socket, headers))
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 454, in run_until_complete
self.run_forever()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 421, in run_forever
self._run_once()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 1431, in _run_once
handle._run()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\events.py", line 145, in _run
self._callback(*self.args)
File "W:\HQ Trivia\HackQ-Trivia\networking.py", line 52, in websocket_handler
logging.info(message_data)
Unable to print the message and arguments - possible formatting error.
Use the traceback above to help find the error.
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\logging_init.py", line 994, in emit
stream.write(msg)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 151-219: character maps to
Call stack:
File "", line 1, in
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 144, in main
ret = method(*args, **kwargs)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 474, in runcode
exec(code, self.locals)
File "W:\HQ Trivia\HackQ-Trivia\hq_main.py", line 47, in
asyncio.get_event_loop().run_until_complete(networking.websocket_handler(socket, headers))
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 454, in run_until_complete
self.run_forever()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 421, in run_forever
self._run_once()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 1431, in _run_once
handle._run()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\events.py", line 145, in _run
self._callback(*self.args)
File "W:\HQ Trivia\HackQ-Trivia\networking.py", line 52, in websocket_handler
logging.info(message_data)
Unable to print the message and arguments - possible formatting error.
Use the traceback above to help find the error.
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\logging_init.py", line 994, in emit
stream.write(msg)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 151-167: character maps to
Call stack:
File "", line 1, in
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 144, in main
ret = method(*args, **kwargs)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 474, in runcode
exec(code, self.locals)
File "W:\HQ Trivia\HackQ-Trivia\hq_main.py", line 47, in
asyncio.get_event_loop().run_until_complete(networking.websocket_handler(socket, headers))
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 454, in run_until_complete
self.run_forever()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 421, in run_forever
self._run_once()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 1431, in _run_once
handle._run()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\events.py", line 145, in _run
self._callback(*self.args)
File "W:\HQ Trivia\HackQ-Trivia\networking.py", line 52, in websocket_handler
logging.info(message_data)
Unable to print the message and arguments - possible formatting error.
Use the traceback above to help find the error.
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\logging_init.py", line 994, in emit
stream.write(msg)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 187-189: character maps to
Call stack:
File "", line 1, in
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 144, in main
ret = method(*args, **kwargs)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 474, in runcode
exec(code, self.locals)
File "W:\HQ Trivia\HackQ-Trivia\hq_main.py", line 47, in
asyncio.get_event_loop().run_until_complete(networking.websocket_handler(socket, headers))
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 454, in run_until_complete
self.run_forever()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 421, in run_forever
self._run_once()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 1431, in _run_once
handle._run()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\events.py", line 145, in _run
self._callback(*self.args)
File "W:\HQ Trivia\HackQ-Trivia\networking.py", line 52, in websocket_handler
logging.info(message_data)
Unable to print the message and arguments - possible formatting error.
Use the traceback above to help find the error.
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\logging_init.py", line 994, in emit
stream.write(msg)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 151-152: character maps to
Call stack:
File "", line 1, in
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 144, in main
ret = method(*args, **kwargs)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 474, in runcode
exec(code, self.locals)
File "W:\HQ Trivia\HackQ-Trivia\hq_main.py", line 47, in
asyncio.get_event_loop().run_until_complete(networking.websocket_handler(socket, headers))
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 454, in run_until_complete
self.run_forever()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 421, in run_forever
self._run_once()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 1431, in _run_once
handle._run()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\events.py", line 145, in _run
self._callback(*self.args)
File "W:\HQ Trivia\HackQ-Trivia\networking.py", line 52, in websocket_handler
logging.info(message_data)
Unable to print the message and arguments - possible formatting error.
Use the traceback above to help find the error.
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\logging_init.py", line 994, in emit
stream.write(msg)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 149-162: character maps to
Call stack:
File "", line 1, in
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 144, in main
ret = method(*args, **kwargs)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 474, in runcode
exec(code, self.locals)
File "W:\HQ Trivia\HackQ-Trivia\hq_main.py", line 47, in
asyncio.get_event_loop().run_until_complete(networking.websocket_handler(socket, headers))
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 454, in run_until_complete
self.run_forever()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 421, in run_forever
self._run_once()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 1431, in _run_once
handle._run()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\events.py", line 145, in _run
self._callback(*self.args)
File "W:\HQ Trivia\HackQ-Trivia\networking.py", line 52, in websocket_handler
logging.info(message_data)
Unable to print the message and arguments - possible formatting error.
Use the traceback above to help find the error.
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\logging_init.py", line 994, in emit
stream.write(msg)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f458' in position 151: character maps to
Call stack:
File "", line 1, in
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 144, in main
ret = method(*args, **kwargs)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 474, in runcode
exec(code, self.locals)
File "W:\HQ Trivia\HackQ-Trivia\hq_main.py", line 47, in
asyncio.get_event_loop().run_until_complete(networking.websocket_handler(socket, headers))
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 454, in run_until_complete
self.run_forever()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 421, in run_forever
self._run_once()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 1431, in _run_once
handle._run()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\events.py", line 145, in _run
self._callback(*self.args)
File "W:\HQ Trivia\HackQ-Trivia\networking.py", line 52, in websocket_handler
logging.info(message_data)
Unable to print the message and arguments - possible formatting error.
Use the traceback above to help find the error.
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\logging_init.py", line 994, in emit
stream.write(msg)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f372' in position 166: character maps to
Call stack:
File "", line 1, in
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 144, in main
ret = method(*args, **kwargs)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 474, in runcode
exec(code, self.locals)
File "W:\HQ Trivia\HackQ-Trivia\hq_main.py", line 47, in
asyncio.get_event_loop().run_until_complete(networking.websocket_handler(socket, headers))
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 454, in run_until_complete
self.run_forever()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 421, in run_forever
self._run_once()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 1431, in _run_once
handle._run()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\events.py", line 145, in _run
self._callback(*self._args)
File "W:\HQ Trivia\HackQ-Trivia\networking.py", line 52, in websocket_handler
logging.info(message_data)
Unable to print the message and arguments - possible formatting error.
Use the traceback above to help find the error.
Socket closed
Show active, connecting to socket at https://ws-quiz.hype.space/ws/44171
Connected
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\logging_init_.py", line 994, in emit
stream.write(msg)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 151-164: character maps to
Call stack:
File "", line 1, in
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 144, in main
ret = method(*args, **kwargs)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 474, in runcode
exec(code, self.locals)
File "W:\HQ Trivia\HackQ-Trivia\hq_main.py", line 47, in
asyncio.get_event_loop().run_until_complete(networking.websocket_handler(socket, headers))
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 454, in run_until_complete
self.run_forever()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 421, in run_forever
self._run_once()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 1431, in _run_once
handle._run()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\events.py", line 145, in _run
self._callback(*self.args)
File "W:\HQ Trivia\HackQ-Trivia\networking.py", line 52, in websocket_handler
logging.info(message_data)
Unable to print the message and arguments - possible formatting error.
Use the traceback above to help find the error.
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\logging_init.py", line 994, in emit
stream.write(msg)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 151-161: character maps to
Call stack:
File "", line 1, in
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 144, in main
ret = method(*args, **kwargs)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 474, in runcode
exec(code, self.locals)
File "W:\HQ Trivia\HackQ-Trivia\hq_main.py", line 47, in
asyncio.get_event_loop().run_until_complete(networking.websocket_handler(socket, headers))
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 454, in run_until_complete
self.run_forever()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 421, in run_forever
self._run_once()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 1431, in _run_once
handle._run()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\events.py", line 145, in _run
self._callback(*self.args)
File "W:\HQ Trivia\HackQ-Trivia\networking.py", line 52, in websocket_handler
logging.info(message_data)
Unable to print the message and arguments - possible formatting error.
Use the traceback above to help find the error.
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\logging_init.py", line 994, in emit
stream.write(msg)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f372' in position 165: character maps to
Call stack:
File "", line 1, in
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 144, in main
ret = method(*args, **kwargs)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 474, in runcode
exec(code, self.locals)
File "W:\HQ Trivia\HackQ-Trivia\hq_main.py", line 47, in
asyncio.get_event_loop().run_until_complete(networking.websocket_handler(socket, headers))
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 454, in run_until_complete
self.run_forever()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 421, in run_forever
self._run_once()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 1431, in _run_once
handle._run()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\events.py", line 145, in _run
self._callback(*self.args)
File "W:\HQ Trivia\HackQ-Trivia\networking.py", line 52, in websocket_handler
logging.info(message_data)
Unable to print the message and arguments - possible formatting error.
Use the traceback above to help find the error.
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\logging_init.py", line 994, in emit
stream.write(msg)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 151-288: character maps to
Call stack:
File "", line 1, in
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 144, in main
ret = method(*args, **kwargs)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 474, in runcode
exec(code, self.locals)
File "W:\HQ Trivia\HackQ-Trivia\hq_main.py", line 47, in
asyncio.get_event_loop().run_until_complete(networking.websocket_handler(socket, headers))
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 454, in run_until_complete
self.run_forever()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 421, in run_forever
self._run_once()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 1431, in _run_once
handle._run()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\events.py", line 145, in _run
self._callback(*self.args)
File "W:\HQ Trivia\HackQ-Trivia\networking.py", line 52, in websocket_handler
logging.info(message_data)
Message: {'type': 'interaction', 'ts': '2018-03-21T01:11:15.827Z', 'itemId': 'chat', 'userId': 13614025, 'metadata': {'userId': 13614025, 'message': '⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽⚽', 'avatarUrl': 'https://d2xu1hdomh3nrx.cloudfront.net/72x72/default_avatars/Untitled-1_0001_blue.png', 'interaction': 'chat', 'username': 'BDoom12'}, 'sent': '2018-03-21T01:11:15.834Z'}
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\logging_init.py", line 994, in emit
stream.write(msg)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 151-219: character maps to
Call stack:
File "", line 1, in
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 144, in main
ret = method(*args, **kwargs)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 474, in runcode
exec(code, self.locals)
File "W:\HQ Trivia\HackQ-Trivia\hq_main.py", line 47, in
asyncio.get_event_loop().run_until_complete(networking.websocket_handler(socket, headers))
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 454, in run_until_complete
self.run_forever()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 421, in run_forever
self._run_once()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 1431, in _run_once
handle._run()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\events.py", line 145, in _run
self._callback(*self.args)
File "W:\HQ Trivia\HackQ-Trivia\networking.py", line 52, in websocket_handler
logging.info(message_data)
Unable to print the message and arguments - possible formatting error.
Use the traceback above to help find the error.
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\logging_init.py", line 994, in emit
stream.write(msg)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f422' in position 165: character maps to
Call stack:
File "", line 1, in
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 144, in main
ret = method(*args, **kwargs)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 474, in runcode
exec(code, self.locals)
File "W:\HQ Trivia\HackQ-Trivia\hq_main.py", line 47, in
asyncio.get_event_loop().run_until_complete(networking.websocket_handler(socket, headers))
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 454, in run_until_complete
self.run_forever()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 421, in run_forever
self._run_once()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 1431, in _run_once
handle._run()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\events.py", line 145, in _run
self._callback(*self.args)
File "W:\HQ Trivia\HackQ-Trivia\networking.py", line 52, in websocket_handler
logging.info(message_data)
Unable to print the message and arguments - possible formatting error.
Use the traceback above to help find the error.
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\logging_init.py", line 994, in emit
stream.write(msg)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 151-227: character maps to
Call stack:
File "", line 1, in
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 144, in main
ret = method(*args, **kwargs)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 474, in runcode
exec(code, self.locals)
File "W:\HQ Trivia\HackQ-Trivia\hq_main.py", line 47, in
asyncio.get_event_loop().run_until_complete(networking.websocket_handler(socket, headers))
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 454, in run_until_complete
self.run_forever()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 421, in run_forever
self._run_once()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 1431, in _run_once
handle._run()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\events.py", line 145, in _run
self._callback(*self.args)
File "W:\HQ Trivia\HackQ-Trivia\networking.py", line 52, in websocket_handler
logging.info(message_data)
Unable to print the message and arguments - possible formatting error.
Use the traceback above to help find the error.
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\logging_init.py", line 994, in emit
stream.write(msg)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 239-244: character maps to
Call stack:
File "", line 1, in
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 144, in main
ret = method(*args, **kwargs)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\idlelib\run.py", line 474, in runcode
exec(code, self.locals)
File "W:\HQ Trivia\HackQ-Trivia\hq_main.py", line 47, in
asyncio.get_event_loop().run_until_complete(networking.websocket_handler(socket, headers))
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 454, in run_until_complete
self.run_forever()
Traceback (most recent call last):
File "W:\HQ Trivia\HackQ-Trivia\hq_main.py", line 47, in
asyncio.get_event_loop().run_until_complete(networking.websocket_handler(socket, headers))
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 454, in run_until_complete
self.run_forever()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 421, in run_forever
self._run_once()
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 1395, in _run_once
event_list = self._selector.select(timeout)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\selectors.py", line 323, in select
r, w, _ = self._select(self._readers, self._writers, [], timeout)
File "C:\Users\blah\AppData\Local\Programs\Python\Python36-32\lib\selectors.py", line 314, in _select
r, w, x = select.select(r, w, w, timeout)`

chaoscreater, the issue should be fixed in commit https://github.com/Exaphis/HackQ-Trivia/commit/06fce8d8a6490a13d29e55df4e99b159ce05f412. Please create a new issue if the problem persists.

@Helpme0822 I have added a new debugging measure for your issue. Update this issue with your log file when the issue happens again.

@Exaphis thanks is it also possible to somehow connect this bot to the UK version of HQ Trivia I tried to enter the Bearer Token and ID of an UK user but i'm still connected on the US HQ Trivia

I have no clue how to connect to the UK version of HQ since I am in the US. Any help would be appreciated.

No response for 6 days, assuming solved. Let me know if this issue occurs again.


Problem with server side rendering & browser language redirection?

Environment

Operating System: Darwin
Node Version:     v19.6.1
Nuxt Version:     3.2.2
Nitro Version:    2.2.2
Package Manager<EMAIL_ADDRESS>Builder:          vite
User Config:      modules, i18n
Runtime Modules<EMAIL_ADDRESS>Build Modules:    -

i18n config
defaultLocale: 'en',
strategy: 'prefix_except_default',
langDir: 'locales',
detectBrowserLanguage: {
  useCookie: true,
  alwaysRedirect: true,
  redirectOn: 'root',
}

Reproduction
https://stackblitz.com/edit/nuxt-starter-f5us62?file=app.vue
Describe the bug
I found a very weird problem when the detectBrowserLanguage with the alwaysRedirect option is active.
My browser language is PL. The default app language is set to EN. When I visit the page I have problems with two things:

The flag of the current language is set to EN (US) – the value from the server side. I have to add v-if="isMounted" to render the proper value. key doesn't help.

The first one shows the EN (US) flag, and the second one shows the proper PL flag:
<img :src="`/flags/${currentLocale.flag}.svg`" :key="currentLocale.flag"/>
<img v-if="isMounted" :src="`/flags/${currentLocale.flag}.svg`" :key="currentLocale.flag"/>

The same thing applies to places when I use translations in v-html.

The first one shows an English translation, the second one – Polish (proper):

It looks like the reactivity is lost, but if I change the language manually with the button and setLocale(), everything returns to normal.
Preview
https://user-images.githubusercontent.com/1818979/220916142-9a082eb0-68db-4d7e-a0a3-59cf509d96b6.mov

Thank you for your reporting!
This is a bug.
related #1632

Hey @kazupon have you been able to work on this one? It's the only non-working feature I have at the moment, would love to see detectBrowserLanguage working again.

@lukaszflorczak
Hi!
I'll try to re-install with nuxt latest version and nuxt i18n module edge channel version.
I seem that this issue is fixed.
So, Could you try to check again?

@kazupon I upgraded nuxt to 3.6.3 and @nuxtjs/i18n to 8.0.0-beta.13 in reproduction: https://stackblitz.com/edit/nuxt-starter-f5us62?file=app.vue. Unfortunately, it looks the problem still exists 😔

hmm... 🤔
nuxt i18n module can't get accept-language on stackbliz...
It works in the local environment.

Ok, so I'll try it once again, locally. I let you know about the result soon.

I tested locally and the problem doesn't exist anymore.

https://stackblitz.com/edit/nuxt-starter-f5us62?file=app.vue

Just checked that and it does work in development mode (npm run dev) but still does not work in SSG Mode with npm run generate. Can anyone confirm?

https://stackblitz.com/edit/nuxt-starter-f5us62?file=app.vue

Just checked that and it does work in development mode (npm run dev) but still does not work in SSG Mode with npm run generate. Can anyone confirm?

Same problem here,

Locally in development mode  (npm run dev): The cookie is set correctly with the browser locale being its value, works as expected :heavy_check_mark:
SSG Mode with (npm run generate): The cookie's value is the defaultLocale instead :x:


Make Emoji optional by adding a default enum value

I'd prefer a default enum value, no big fan of nullable value types. Also, this makes it more explicit/discoverable. But; more importantly - I need this feature as soon as possible 👍


Serve Account doesn't get updated

A first deploy of a Windows Service specifies a "Run As Username".
If the "Run As Username" changes in a future release the service account specified earlier doesn't get updated.

Resolved with PR #35.
Check the 'Recreate service' flag under the installation section. This will delete and recreate the service if it already exists.

I don't know if I should leave the feedback here (if not tell me), but after updating and using "Recreate service flag" enabled I got the following error (some elements were changed for privacy):
2020-06-30T17:35:56.7130748Z ##[debug]Evaluating condition for step: 'Deploy Windows Service' 2020-06-30T17:35:56.7131384Z ##[debug]Evaluating: succeeded() 2020-06-30T17:35:56.7131538Z ##[debug]Evaluating succeeded: 2020-06-30T17:35:56.7131766Z ##[debug]=> True 2020-06-30T17:35:56.7131978Z ##[debug]Result: True 2020-06-30T17:35:56.7132191Z ##[section]Starting: Deploy Windows Service 2020-06-30T17:35:56.7216593Z ============================================================================== 2020-06-30T17:35:56.7216711Z Task         : Windows Service Manager 2020-06-30T17:35:56.7216822Z Description  : Deploys a Windows Service to an Agent or a Deployment Group Target using WinRM. 2020-06-30T17:35:56.7216912Z Version      : 4.4.9 2020-06-30T17:35:56.7217108Z Author       : MDSolutions 2020-06-30T17:35:56.7217196Z Help         : [More Information](https://github.com/Dejulia489/WindowsServiceManager) 2020-06-30T17:35:56.7217314Z ============================================================================== 2020-06-30T17:35:57.4016651Z ##[debug]VstsTaskSdk 0.11.0 commit 7ff27a3e0bdd6f7b06690ae5f5b63cb84d0f23f4 2020-06-30T17:35:57.5406095Z ##[debug]INPUT_DEPLOYMENTTYPE: 'Agent' 2020-06-30T17:35:57.5464846Z ##[debug]INPUT_SERVICENAME: 'xxx' 2020-06-30T17:35:57.5522811Z ##[debug]INPUT_ARTIFACTPATH: 'C:\tmp\xxx\' 2020-06-30T17:35:57.5588606Z ##[debug]INPUT_TIMEOUT: '30' 2020-06-30T17:35:57.5645709Z ##[debug]INPUT_CLEANINSTALL: 'true' 2020-06-30T17:35:57.5676552Z ##[debug] Converted to bool: True 2020-06-30T17:35:57.5734446Z ##[debug]INPUT_RECREATESERVICE: 'true' 2020-06-30T17:35:57.5749052Z ##[debug] Converted to bool: True 2020-06-30T17:35:57.5818087Z ##[debug]INPUT_STOPPROCESS: 'true' 2020-06-30T17:35:57.5832922Z ##[debug] Converted to bool: True 2020-06-30T17:35:57.5892284Z ##[debug]INPUT_INSTALLSERVICE: 'true' 2020-06-30T17:35:57.5906208Z ##[debug] Converted to bool: True 2020-06-30T17:35:57.5962262Z ##[debug]INPUT_STARTSERVICE: 'true' 2020-06-30T17:35:57.5976600Z ##[debug] Converted to bool: True 2020-06-30T17:35:57.6080041Z ##[debug]Entering C:\ReleaseAgents\agent1\_work\_tasks\WindowsServiceManager_7dad075d-a817-45ac-baab-4c1376d2885e\4.4.9\DeployWindowsService.ps1. 2020-06-30T17:35:57.6158961Z ##[debug]INPUT_MACHINES: 'server' 2020-06-30T17:35:57.6347574Z Begining deployment to [server] 2020-06-30T17:35:57.6368127Z ##[debug]INPUT_ADMINLOGIN: 'domain\adminuser' 2020-06-30T17:35:57.6386928Z ##[debug]INPUT_PASSWORD: '***' 2020-06-30T17:35:57.6484600Z ##[debug]INPUT_NEWPSSESSIONOPTIONARGUMENTS (empty) 2020-06-30T17:35:57.6572819Z ##[debug]Entering Get-NewPSSessionOption. 2020-06-30T17:35:57.6652623Z ##[debug] arguments: '' 2020-06-30T17:35:57.6668957Z ##[debug]New-PSSessionOption command: New-PSSessionOption  2020-06-30T17:35:57.6733190Z ##[debug]Leaving Get-NewPSSessionOption. 2020-06-30T17:35:57.6759108Z ##[debug]INPUT_USESSL: 'false' 2020-06-30T17:35:57.6773749Z ##[debug] Converted to bool: False 2020-06-30T17:35:57.7283570Z ##[debug]INPUT_INSTALLTOPSHELFSERVICE: 'false' 2020-06-30T17:35:57.7296782Z ##[debug] Converted to bool: False 2020-06-30T17:35:57.7314005Z ##[debug]INPUT_INSTALLATIONPATH: 'C:\WindowsServices\xxx\xxx.exe' 2020-06-30T17:35:57.7330243Z ##[debug]INPUT_SERVICEDISPLAYNAME (empty) 2020-06-30T17:35:57.7346697Z ##[debug]INPUT_SERVICEDESCRIPTION (empty) 2020-06-30T17:35:57.7364260Z ##[debug]INPUT_SERVICESTARTUPTYPE: 'Automatic' 2020-06-30T17:35:57.7842074Z ##[debug]INPUT_RUNASUSERNAME: 'domain\user' 2020-06-30T17:35:57.7858014Z ##[debug]INPUT_RUNASPASSWORD: '***' 2020-06-30T17:35:59.2498446Z [DEVWINSERVICES]: Attempting to locate [xxx] 2020-06-30T17:35:59.2500323Z [DEVWINSERVICES]: Recreate service set to [True], removing the Service [xxx] 2020-06-30T17:36:00.2479125Z WARNING: [server]: Files are still in use by [xxx], stopping the process! 2020-06-30T17:36:00.2480187Z [DEVWINSERVICES]: Copying [C:\tmp\xxx\] to [C:\WindowsServices\xxx] 2020-06-30T17:36:00.2482350Z [DEVWINSERVICES]: Starting [xxx] 2020-06-30T17:36:00.5525335Z [DEVWINSERVICES]: [xxx] started successfully! 2020-06-30T17:36:00.5636253Z ##[debug]Caught exception from task script. 2020-06-30T17:36:00.5661984Z ##[debug]Error record: 2020-06-30T17:36:00.6221412Z ##[debug]Method invocation failed because [System.String] does not contain a method named 'Delete'. 2020-06-30T17:36:00.6230699Z ##[debug]    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException 2020-06-30T17:36:00.6242312Z ##[debug]    + FullyQualifiedErrorId : MethodNotFound 2020-06-30T17:36:00.6252426Z ##[debug]  2020-06-30T17:36:00.6265246Z ##[debug]Script stack trace: 2020-06-30T17:36:00.6295728Z ##[debug]at <ScriptBlock>, <No file>: line 152 2020-06-30T17:36:00.6310228Z ##[debug]Exception: 2020-06-30T17:36:00.6349381Z ##[debug]System.Management.Automation.RemoteException: Method invocation failed because [System.String] does not contain a method named 'Delete'. 2020-06-30T17:36:00.6575992Z ##[error]Method invocation failed because [System.String] does not contain a method named 'Delete'. 2020-06-30T17:36:00.6583144Z ##[debug]Processed: ##vso[task.logissue type=error]Method invocation failed because [System.String%5D does not contain a method named 'Delete'. 2020-06-30T17:36:00.6598647Z ##[debug]Processed: ##vso[task.complete result=Failed] 2020-06-30T17:36:00.6857312Z ##[section]Finishing: Deploy Windows Service

@Dejulia489 Did you had the opportunity to check on this? Should I open a new Issue?

@Dejulia489 When 5.0? :)


Remove deprecated function

Filament::registerScripts and Filament::registerStyles are deprecated for use.

Okay, looks like this change will be one of those where version update will be required :/

I have this change on #26 for adding laravel 11 support. We'll have to tag a new major version probably.

Handled by #26


[WW-5099] Upgrades JFreeChart to version 1.5.1

Implements WW-5099

Coverage remained the same at 49.823% when pulling 22ee49151b68b201e67f0ea7192251b43fc18089 on WW-5099-upgrade-jfreechart into dcc53aebf983f6c0a48932262facb81f5d82815c on master.

Coverage remained the same at 49.823% when pulling 22ee49151b68b201e67f0ea7192251b43fc18089 on WW-5099-upgrade-jfreechart into dcc53aebf983f6c0a48932262facb81f5d82815c on master.

LGTM 👍

LGTM 👍


Scan line occasionally flashes at the top and bottom of the screen

我可以說我也不知道為什麼嗎...
掃線的y都是一條公式算到尾的 怎麼會閃呢（黑人問號.jpg）
On Mon, Sep 11, 2017 at 5:11 AM yao981113<EMAIL_ADDRESS>wrote:

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/TigerHix/Cytoid/issues/46, or mute the thread
https://github.com/notifications/unsubscribe-auth/ADP6qRzx_6XmiN5R6ewATgrNZtFaOP7wks5shFCFgaJpZM4PSdMa
.

Fixed in 1.5.


Schema has XML v1.1

May I ask why the XML version of the schema is 1.1? This is rare and as I understand it only useful for when the tag names are in non-roman character sets (which I'm assuming will not be the case for OCX).
see e.g. Here.
.net, for example, does not support 1.1 and likely never will.

We use the W3X XML 1.1 Assertion (https://www.w3.org/TR/xmlschema11-1/#cAssertions)
to restrict the existence of entities in the schema, see the EntityRefBase_T

We will revert the schema version to XML 1.0 and remove the assert statements. Instead, we plan to use Schematron to validate the  XML 1.1 constructs as this is more flexible and powerful.

Hi,
Seems to be some confusion here between XML v1.1 and XSD v1.1.  The XML version of a schema with version 1.1 can (and mostly should) be 1.0.
e.g. here.
This issue is about the XML version of the schema being unnecessarily 1.1, not that the schema itself is based on the XSD 1.1 standard.
So I'm no really bothered if the schema is v1.1, as long as it is expressed in XML v1.0

Hello,
I believe it has been some nisunderstandings, yes. The 3DOCX XML models does not require XML 1.1 and are XML 1.0 conformant.
Best regards,
Ole Christian
From: mcapocci @.>
Sent: tirsdag 9. mai 2023 14:12
To: OCXStandard/OCX_Schema @.>
Cc: Astrup, Ole Christian @.>; Comment @.>
Subject: Re: [OCXStandard/OCX_Schema] Schema has XML v1.1 (Issue #11)
Hi,
Seems to be some confusion here between XML v1.1 and XSD v1.1. The XML version of a schema with version 1.1 can (and mostly should) be 1.0.
e.g. herehttps://stackoverflow.com/questions/21555511/how-to-indicate-that-an-xml-schema-that-requires-schema-1-1-features.
This issue is about the XML version of the schema being unnecessarily 1.1, not that the schema itself is based on the XSD 1.1 standard.
So I'm no really bothered if the schema is v1.1, as long as it is expressed in XML v1.0

Reply to this email directly, view it on GitHubhttps://github.com/OCXStandard/OCX_Schema/issues/11#issuecomment-1540020704, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKSW7DEJUMY7AAEZLE36C2DXFIYCHANCNFSM6AAAAAAUDW67RE.
You are receiving this because you commented.Message ID<EMAIL_ADDRESS>
This e-mail and any attachments thereto may contain confidential information and/or information protected by intellectual property rights for the exclusive attention of the intended addressees named above. If you have received this transmission in error, please immediately notify the sender by return e-mail and delete this message and its attachments. Unauthorized use, copying or further full or partial distribution of this e-mail or its contents is prohibited.

The misunderstanding has been sorted out as the 3Docx models are XML 1.0 (and not XML 1.1)


Can you add a keybind to create a new folder/file

This would be very useful. cfiles is already the best alternative to ranger I have found so far. And this is a feature that's not missing from ranger but is missing from cfiles. Thanks

I think its bloat.
Less is more. Type "S" grab a shell and create a dir with mkdir.


New Mapping Button Not Functioning Properly

Current behavior

Sometimes New Mapping button doesn't work.
Here is the video showing the issue.
https://jam.dev/c/5b51a146-abc6-4b41-a00c-47450b254866
But it's working for other mapping
https://jam.dev/c/d243347c-753b-4a29-b160-79b21639fcd1

Will be fixed in upcoming release

Closing as verified and fixed.


feat: implement include_cookies_in_requests feature

Closes #4115
Summary
Adds an option to allow cookies to be included when connecting to the git-gateway.
This is required for proper authentication when putting the git-gateway behind services like Google's Identity-Aware Proxy or Cloudflare Access.
This change adds a new backend option, include_cookies_in_requests, which is false by default. I've also added documentation for this option. The option purposefully only works when using the git-gateway backend, to protect users from accidentally sending their cookies to GitHub for no reason.
I've tested these changes using the GitHub backend and can confirm that this makes NetlifyCMS usable behind IAP! I have not tested the GitLab backend, but I made sure to make the same changes so that it should work as well.

Followed up with some more comments. Also please make sure to run the tests as described in https://github.com/netlify/netlify-cms/blob/master/CONTRIBUTING.md since the CI is currently failing.

It seems like the tests are failing due to them not allowing console.log, but I didn't change any of that code. I am not sure if there's anything I can do about that

From a quick look at the CI logs, this test it failing since there is an additional credentials option passed to the fetch call for GitHub.

Hi @evaera, please let me know if you need further information to address my comments

Hi,
Other priorities have cropped up at work. I think I'll still be able to
complete this PR, but I'm not sure of a time frame
On Wed, Aug 26, 2020 at 9:21 AM Erez Rokah<EMAIL_ADDRESS>wrote:

Hi @evaera https://github.com/evaera, please let me know if you need
further information to address my comments
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/netlify/netlify-cms/pull/4127#issuecomment-680875267,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAS7W6UNK4DYHOPT2AEGH2LSCUD4BANCNFSM4PYQRREA
.

Closing as stale. Feel free to re-open once ready to submit it again.


Fix & test Meson builds

This PR fixes the meson builds and adds a few quirk fixes as well. It also allows testing Meson in Travis (LDC only for now).
The following issues exist and have been partially resolved:

Meson doesn't allow absolute paths in include_directories anymore if they point to the source dir. This breaks a previous hack added to download 3rd-party dependencies. I added another hack to work around this for now, but I will raise this at Meson upstream now to get this resolved somehow.
Building Vibe with DMD+Meson apparently doesn't work since DMD doesn't recognize the versioned library parameter. I am not sure of this is a Meson or DMD issue, at time I think it's Meson not translating a flag to the DMD-specific syntax. Will need some investigation.

The other change is installing the whole source directory to include/d now, since previously some paths weren't correctly created, breaking software depending on Vibe.
This patch is also already applied in Debian.
Due to the issues with DMD, the Travis test builds for Meson are only enabled for LDC for now.
Since libasync doesn't have a Meson build file, Meson build-config is also libevent-only, but that has been this was before.
Please note that this PR targets the 0.7.x branch, not master!
Thanks for developing Vibe.d!

Can you do a quick rebase? The base master commit had a compile error that I noticed too late.

Done :-)

/usr/bin/ld: /home/travis/dlang/ldc-1.0.0/bin/../lib/libphobos2-ldc.a(concurrency.o): relocation R_X86_64_32 against _D36TypeInfo_xE3std11concurrency7MsgType6__initZ' can not be used when making a shared object; recompile with -fPIC` - meh, looks like we are running into that issue again with LDC 1.0.0, and the other LDC-based tests are marked as "expected to fail".

I could disable the actual build and only have the Meson configure phase in the CI - that way, the Meson file would at least be partially be tested for validity.
The real solution would of course be to fix LDC to actually build the tests correctly in it's 1.1.1 version (I don't think 1.0.0 binaries will receive an update where it's Phobos/DRuntime are built with PIC enabled).

Okay, good news. 0.7.x passes the tests with LDC 1.1.0 again.

Okay, so I will rebase when I'm home.
The Meson build failure with the older 1.0 LDC is unfortunately a bug in the LDC binary distribution used by Travis, so there is not much I can do about it.

Looks like the D runtime/phobos isn't compiled with PIC on the 1.1.0 LDC binaries either. Weird.

I now altered the Travis configuration to not build with LDC 1.0 but instead build with LDC 1.1.1 and the beta version of LDC 1.2. Those LDC versions don't have the bug displayed before.
Now, only the LDC 1.1.1 libasync version seems to fail with:
Running ./vibe-d-core-test-libasync
Task terminated with unhandled exception: Range violation
Task terminated with unhandled exception: Range violation
Task terminated with unhandled exception: Range violation
core.exception.RangeError@/home/travis/dlang/ldc-1.1.1/bin/../import/std/container/array.d(528): Range violation
----------------
Task terminated with unhandled exception: Only InterruptException supposed to be thrown!

No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.

The rest builds & tests fine :-)

Nice, I didn't realize that there was a 1.1.1 patch release for LDC (thought you just made a typo ;-)). Libasync doesn't properly support LDC, so all LDC+libasync can just be allowed failures (leaving them there so it's possible to notice when libasync starts to work).
LDC 1.0.0 should still stay in travis.yml, though, if the effort to selectively exclude the Meson test is low, that would be the best approach, but otherwise I'm fine with changing it into an allowed failure, too.

LDC 1.1.1 contains precisely the patch which fixes the Meson issue Travis was running into previously - I just thought before that Travis would auto-update to patch releases, apparently that's not the case (the linking error also happens with dub and other build systems, so having it fixed was quite important).
Excluding 1.0 from running Meson just required a bit of sed magic (not sure if it will work with other D compilers though), so these builds succeed now.
Should I leave the 1.2 Beta build in there?
In any case, thanks for the support and responsiveness! :-)

Looks like my relative-path hack in Meson wasn't necessary, as include_directories() acts on both the source and build directories.
Meson upstream clarified this in their Wiki and documentation, and it works like a charm (and makes the Meson file for Vibe much nicer again).

Okay, looks good. With this in Travis-CI, I can now also take care of not letting this be broken in the 0.7.x branch. I'm still not sure what the best approach will be for 0.8.x and up. There will still be deprecations and some breakage until all sub packages are in their own repository (each with a 1.x.x version).


BUG - Plugin crashes with SEGV after upgrade to 3.x

Summary
On versions 3.1.1 and also latest code, the plugin reliably crashes with a nil pointer dereference not long after starting.
Steps To Reproduce
0. Mattermost version 5.27.1 with many standups configured for channels

Upgrade standup raven from 2.5.2 to 3.1.1 or current head
Disable and re-enable plugin
Wait for it...
Read stacktrace of SEGV in logs
Repeat from step 2

Expected behavior
No SEGV
Observed Behavior
2020-11-16T08:46:13.734+1100    debug   mlog/sugar.go:15        Fetching standup config for channel: f5hbhq6sw3ncpfhgai79zgy3yy {"plugin_id": "standup-raven", "Fetching standup config for channel: f5hbhq6sw3ncpfhgai79zgy3yy": "[]"}
e": "200"}
2020-11-16T08:46:14.536+1100    debug   mlog/sugar.go:15        Fetching notification status for channel: f5hbhq6sw3ncpfhgai79zgy3yy    {"plugin_id": "standup-raven", "Fetching notification status for channel: f5hbhq6sw3ncpfhgai79zgy3yy": "[]"}
2020-11-16T08:46:14.536+1100    debug   mlog/sugar.go:15        Fetching standup config for channel: f5hbhq6sw3ncpfhgai79zgy3yy {"plugin_id": "standup-raven", "Fetching standup config for channel: f5hbhq6sw3ncpfhgai79zgy3yy": "[]"}
2020-11-16T08:46:14.551+1100    debug   mlog/sugar.go:15        Channel [f5hbhq6sw3ncpfhgai79zgy3yy] needs standup report       {"plugin_id": "standup-raven", "Channel [f5hbhq6sw3ncpfhgai79zgy3yy] needs standup report": "[]"}
2020-11-16T08:46:14.551+1100    debug   mlog/sugar.go:15        Processing channel: tass9ycqbfrrdp4ms34z834wac  {"plugin_id": "standup-raven", "Processing channel: tass9ycqbfrrdp4ms34z834wac": "[]"}
2020-11-16T08:46:14.551+1100    debug   mlog/sugar.go:15        Fetching standup config for channel: tass9ycqbfrrdp4ms34z834wac {"plugin_id": "standup-raven", "Fetching standup config for channel: tass9ycqbfrrdp4ms34z834wac": "[]"}
2020-11-16T08:46:14.557+1100    debug   plugin/hclog_adapter.go:53      panic: runtime error: invalid memory address or nil pointer dereference {"plugin_id": "standup-raven"}
2020-11-16T08:46:14.557+1100    debug   plugin/hclog_adapter.go:53      [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xf03b04]  {"plugin_id": "standup-raven"}
2020-11-16T08:46:14.557+1100    debug   plugin/hclog_adapter.go:53              {"plugin_id": "standup-raven"}
2020-11-16T08:46:14.557+1100    debug   plugin/hclog_adapter.go:53      goroutine 12 [running]: {"plugin_id": "standup-raven"}
2020-11-16T08:46:14.557+1100    debug   plugin/hclog_adapter.go:53      github.com/teambition/rrule-go.(*RRule).Iterator(0x0, 0x0)      {"plugin_id": "standup-raven"}
2020-11-16T08:46:14.557+1100    debug   plugin/hclog_adapter.go:53              /Users/harshilsharma/codebase/go/pkg/mod/github.com/standup-raven/rrule-go@v1.5.1-0.20200606021409-a2ced8306e77/rrule.go:807 +0x94      {"plugin_id": "standup-raven"}
2020-11-16T08:46:14.557+1100    debug   plugin/hclog_adapter.go:53      github.com/teambition/rrule-go.(*RRule).Between(0x0, 0x0, 0xed7425834, 0xc000948060, 0x0, 0xed743a9f0, 0xc000948060, 0xc000948000, 0x0, 0x0, ...)       {"plugin_id": "standup-raven"}
2020-11-16T08:46:14.557+1100    debug   plugin/hclog_adapter.go:53              /Users/harshilsharma/codebase/go/pkg/mod/github.com/standup-raven/rrule-go@v1.5.1-0.20200606021409-a2ced8306e77/rrule.go:838 +0x49      {"plugin_id": "standup-raven"}
2020-11-16T08:46:14.557+1100    debug   plugin/hclog_adapter.go:53      github.com/standup-raven/standup-raven/server/standup/notification.isStandupDay(0xc0001e2000, 0x0)      {"plugin_id": "standup-raven"}
2020-11-16T08:46:14.557+1100    debug   plugin/hclog_adapter.go:53              /Users/harshilsharma/codebase/go/src/github.com/standup-raven/standup-raven/server/standup/notification/notification.go:694 +0x2ea      {"plugin_id": "standup-raven"}
2020-11-16T08:46:14.557+1100    debug   plugin/hclog_adapter.go:53      github.com/standup-raven/standup-raven/server/standup/notification.filterChannelNotification(0xc000393440, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)    {"plugin_id": "standup-raven"}
2020-11-16T08:46:14.557+1100    debug   plugin/hclog_adapter.go:53              /Users/harshilsharma/codebase/go/src/github.com/standup-raven/standup-raven/server/standup/notification/notification.go:285 +0x593      {"plugin_id": "standup-raven"}
2020-11-16T08:46:14.557+1100    debug   plugin/hclog_adapter.go:53      github.com/standup-raven/standup-raven/server/standup/notification.SendNotificationsAndReports(0x0, 0x0)        {"plugin_id": "standup-raven"}
2020-11-16T08:46:14.557+1100    debug   plugin/hclog_adapter.go:53              /Users/harshilsharma/codebase/go/src/github.com/standup-raven/standup-raven/server/standup/notification/notification.go:45 +0x13e       {"plugin_id": "standup-raven"}
2020-11-16T08:46:14.557+1100    debug   plugin/hclog_adapter.go:53      main.(*Plugin).runner.func1(0xc0003d2580)       {"plugin_id": "standup-raven"}
2020-11-16T08:46:14.557+1100    debug   plugin/hclog_adapter.go:53              /Users/harshilsharma/codebase/go/src/github.com/standup-raven/standup-raven/server/plugin.go:217 +0x5f  {"plugin_id": "standup-raven"}
2020-11-16T08:46:14.557+1100    debug   plugin/hclog_adapter.go:53      created by main.(*Plugin).runner        {"plugin_id": "standup-raven"}
2020-11-16T08:46:14.557+1100    debug   plugin/hclog_adapter.go:53              /Users/harshilsharma/codebase/go/src/github.com/standup-raven/standup-raven/server/plugin.go:215 +0x3f  {"plugin_id": "standup-raven"}
2020-11-16T08:46:14.560+1100    debug   plugin/hclog_adapter.go:51      plugin process exited   {"plugin_id": "standup-raven", "wrapped_extras": "path/data/mattermost/server/server-plugins/standup-raven/server/plugin.exepid93455errorexit status 2"}

After rolling back to 2.5.2 we were able to continue.
Environment

Mattermost version: 5.27.1
OS: CentOS 7

The panic always seemed to occur at the same point - fetching standup config for channel with id tass9ycqbfrrdp4ms34z834wac. I don't know how to inspect the standup config of that channel to see what's wrong, but I think this means I can at least reproduce the problem.

@grubbins it looks like the data migration didn't go through well for. Can you see the logs for the time when you updated from 2.5 to 3.1?

I'm looking, but not finding anything that looks relevant. Would it have required debug-level logs? We did not have debug logs enabled at the time of the upgrade.

Looking further back, I see occasional instances (before we upgraded) of:
dpanic  zap@v1.15.0/sugar.go:191        Ignored key without a value.    {"plugin_id": "standup-raven", "ignored": "Error occurred processing /standup"}

and sometimes randomly this:
info    go-plugin@v1.3.0/stream.go:15   {"channelId":"qy3utsi51jb5zcr66suf8z89bh", ... lots of fields ... }

With a local build of the plugin I was able to print the JSON of the standup Config for one of the breaking channels:
{
  "channelId": "tjwshcz8gfyupk8h93t8yyuhir",
  "windowOpenTime": "15:00",
  "windowCloseTime": "15:15",
  "reportFormat": "user_aggregated",
  "members": [
    "em7tudx9jfbjuq35n61wnp63se",
    "meywagac5pfg8j6dnj1e8a8oyr",
    "tq4hq789n3bk5yahs3qor6epdw",
    "zgdhkbjn8tydz87ckz3muieqyr"
  ],
  "sections": [
    "What is the status of your tasks?"
  ],
  "enabled": true,
  "timezone": "America/Chicago",
  "windowOpenReminderEnabled": true,
  "windowCloseReminderEnabled": true,
  "scheduleEnabled": true
}

Indeed the fields rrule, rruleString and startDate are absent but are assumed later to be present. Just looking into whether I can make a quick fix.

I think I will try forcing the database version back to 2.0.0 and letting it try the upgrade again.

That seems to have worked. I wonder if the issue here is that the plugin was downgraded at some point.

Hello! We have just faced the issue. Can you tell us the steps to repair database?

@grubbins can you help with this please?


Crunchyroll Playlist Download Error

[x] I'm reporting a broken site support
[x] I've verified that I'm running youtube-dl version 2019.06.08
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar issues including closed ones

Verbose log
D:\Videos\Downloaded>youtube-dl.exe --merge-output-format mkv --ffmpeg-location ffmpeg\bin --cache-dir "cache" --download-archive downloaded.txt --fixup warn --add-metadata --sub-lang enUS --write-sub --cookies cookies.txt -a download.txt -o "%(uploader)s/%(title)s.%(ext)s" --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--merge-output-format', 'mkv', '--ffmpeg-location', 'ffmpeg\\bin', '--cache-dir', 'cache', '--download-archive', 'downloaded.txt', '--fixup', 'warn', '--add-metadata', '--sub-lang', 'enUS', '--write-sub', '--cookies', 'cookies.txt', '-a', 'download.txt', '-o', '%(uploader)s/%(title)s.%(ext)s', '--verbose']
[debug] Batch file urls: ['https://www.crunchyroll.com/that-time-i-got-reincarnated-as-a-slime', 'https://www.crunchyroll.com/my-hero-academia', 'https://www.crunchyroll.com/black-clover', 'https://www.crunchyroll.com/overlord']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2019.06.08
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.17763
[debug] exe versions: ffmpeg 3.4.2, ffprobe 3.4.2, rtmpdump 2.3
[debug] Proxy map: {}
[crunchyroll:playlist] that-time-i-got-reincarnated-as-a-slime: Downloading webpage
ERROR: Unable to extract title; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp3esl0iyj\build\youtube_dl\YoutubeDL.py", line 796, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp3esl0iyj\build\youtube_dl\extractor\common.py", line 530, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp3esl0iyj\build\youtube_dl\extractor\crunchyroll.py", line 666, in _real_extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp3esl0iyj\build\youtube_dl\extractor\common.py", line 1014, in _html_search_regex
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp3esl0iyj\build\youtube_dl\extractor\common.py", line 1005, in _search_regex
youtube_dl.utils.RegexNotFoundError: Unable to extract title; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Description
Attempting to download files from a playlist on Crunchyroll results in an error.  Not 100% sure if it's something I am doing wrong or not, but it was working fine the last time I used this exact script a couple of weeks ago.  Usually, updating youtube-dl fixes this particular issue.
Downloading individual files works fine, it's just playlists that do not work.

Didn't think to search for specifically the title extractor; my fault.


Templates show up on some projects and not others.  Why?

I am writing a NopCommerce plugin.  In NopCommerce's Visual Studio 2017 solution file, there are several standard plugins created as independent NetCore 2.1 library projects. If I right-click on any of their projects and select "new item from template", I am able to see and select MVC template items.
For my project, however, I don't see these templates, but I did see standard and WPF ones.  I carefully compared my project configuration with their plugins and I couldn't find any differences.  After an hour of research, I discovered that by changing the project SDK the MVC templates showed up:
<Project SDK="Microsoft.NET.Sdk.Razor">
  ...
</Project>

instead of:

<Project SDK="Microsoft.NET.Sdk">
  ...
</Project>

This is clearly a bug.  All of the other plugins were recognized as MVC projects even though they are not configured as Microsoft.NET.Sdk.Razor.  Is Visual Studio caching the configuration information or stored in some cryptic location?
Why are you guys constantly solving complexity by adding more complexity? Developing on the .NET platform officially unmanageable.  Developers are embracing alternative development strategies because of small, constant and time consuming issues like this.  Get your act together or find another line of business like growing turnips!

@Joebeazelman, since this is specific to VS experience, this feedback needs to go through VS Feedback tool. You can follow the instructions in this link: https://docs.microsoft.com/en-us/visualstudio/ide/how-to-report-a-problem-with-visual-studio-2017?view=vs-2017


Some issues with defined symbols by default

I'm experiencing an issue when consulo thinks that a symbol is defined when actually it isn't.
The library in question is UniRx, downloaded from assets.
In Observable.Unity.cs file of the library there is a check for "UniRxLibrary" symbol being defined.
https://github.com/neuecc/UniRx/blob/master/Assets/UniRx/Scripts/UnityEngineBridge/Observable.Unity.cs
If "UniRxLibrary" symbol is defined a proper usage would be ObservableUnity.EveryUpdate(), otherwise Observable.EveryUpdate().
When running following code from Unity there are no errors:
var clickStream = Observable.EveryUpdate()
        .Where(_ => Input.GetMouseButtonDown(0));

    clickStream.Buffer(clickStream.Throttle(TimeSpan.FromMilliseconds(250)))
        .Where(xs => xs.Count >= 2)
        .Subscribe(xs => Debug.Log("DoubleClick Detected! Count:" + xs.Count));

But consulo displays an error saying that EveryUpdate method can not be found.

Can you attach screenshot?

And this code correctly runs in Unity showing no errors during compilation

Opening file with following contents produces error in Consulo, but does not produce any errors in built-in Monodevelop.
using System.Collections.Generic;
using UniRx;
using UnityEngine;
public class InputManager {

public IObservable<Vector3> MouseDownStream() {
    return Observable.EveryUpdate()
        .Where(_ => Input.GetMouseButtonDown(0))
        .Select(_ => Input.mousePosition);
}

}

Found another issue that might be related to this one.
Methods auto-complete does not seem to work with classes that have symbols inside like
#if MySymbol
...
#endif

For example, methods auto-complete do not work on the following class: https://github.com/modesttree/Zenject/blob/ab8c926e86236f48f534a6d48debda6c738255b8/UnityProject/Assets/Zenject/Main/Scripts/Main/IInstantiator.cs

Its preprocessor issue - https://github.com/consulo/consulo-csharp/issues/118

Any estimation on when it will be fixed?
I'm using libraries in my Unity project and with this issue present it's basically impossible to work.

Preprocessor ignored fully, even when it show as disabled.
I will check in few days

This issue is fully Preprocessor problem
https://github.com/consulo/consulo-csharp/issues/118
If u comment line, all will work
Assets/UniRx/Scripts/UnityEngineBridge/Observable.Unity.cs:39

Sorry. I am already working on fixing Preprocessor, but no success


Plan for distutils removal in Python 3.12

The distutils module in Python was deprecated in Python 3.10^1 and is planned to be removed entirely in Python 3.12. Our Python detector is currently based around distutils^2. Python 3.12 is due to be released in October 2023^3.
There are some suggested migration paths in the release notes for Python 3.10^1.

Another shortcoming of the python detector is that it does not respect pep517 build dependencies. Which means that this code will fail if the user imports something not in the current environment. This is made worse by the fact that this error is silent see https://github.com/microsoft/component-detection/issues/242

Are there any news on this. Release candidate 1 of python 3.12 is out and the release of 3.12.0 is expected for Oktober.

We are preparing the new pip installation report detector for validation on our next release. It is not an experimental detector!


All stores to use JsonDateSchema.new_range()

First read, approve and merge https://github.com/dcs4cop/xcube/pull/349

I updated the unit tests to work with https://github.com/dcs4cop/xcube/pull/349 . Some may fail with current xcube master, but should work again once the main xcube PR has been merged.


Crash on Deeplink

When moving from 1.4.4 to 1.5.x I am seeing this crash when opening a pending intent and handling that with Deeplink:
java.lang.IllegalStateException: Calling multiple DestinationsNavHost with a navigation graph containing the same route ('root')
        at com.ramcosta.composedestinations.utils.NavGraphRegistry.checkUniqueness(NavGraphSpecHolder.kt:31)
        at com.ramcosta.composedestinations.DestinationsNavHostKt$HandleNavGraphRegistry$1.invoke(DestinationsNavHost.kt:99)
        at com.ramcosta.composedestinations.DestinationsNavHostKt$HandleNavGraphRegistry$1.invoke(DestinationsNavHost.kt:98)
        at androidx.compose.runtime.DisposableEffectImpl.onRemembered(Effects.kt:81)
        at androidx.compose.runtime.CompositionImpl$RememberEventDispatcher.dispatchRememberObservers(Composition.kt:1006)
        at androidx.compose.runtime.CompositionImpl.applyChangesInLocked(Composition.kt:774)
        at androidx.compose.runtime.CompositionImpl.applyChanges(Composition.kt:794)
        at androidx.compose.runtime.Recomposer.composeInitial$runtime_release(Recomposer.kt:827)
        at androidx.compose.runtime.ComposerImpl$CompositionContextImpl.composeInitial$runtime_release(Composer.kt:3705)
        at androidx.compose.runtime.ComposerImpl$CompositionContextImpl.composeInitial$runtime_release(Composer.kt:3705)
        at androidx.compose.runtime.CompositionImpl.setContent(Composition.kt:508)
        at androidx.compose.ui.layout.LayoutNodeSubcompositionsState.subcomposeInto(SubcomposeLayout.kt:468)
        at androidx.compose.ui.layout.LayoutNodeSubcompositionsState.subcompose(SubcomposeLayout.kt:441)
        at androidx.compose.ui.layout.LayoutNodeSubcompositionsState.subcompose(SubcomposeLayout.kt:432)
        at androidx.compose.ui.layout.LayoutNodeSubcompositionsState.subcompose(SubcomposeLayout.kt:421)
        at androidx.compose.ui.layout.LayoutNodeSubcompositionsState$Scope.subcompose(SubcomposeLayout.kt:732)
        at androidx.compose.foundation.layout.BoxWithConstraintsKt$BoxWithConstraints$1$1.invoke-0kLqBqw(BoxWithConstraints.kt:69)
        at androidx.compose.foundation.layout.BoxWithConstraintsKt$BoxWithConstraints$1$1.invoke(BoxWithConstraints.kt:67)
        at androidx.compose.ui.layout.LayoutNodeSubcompositionsState$createMeasurePolicy$1.measure-3p2s80s(SubcomposeLayout.kt:590)
        at androidx.compose.ui.node.InnerPlaceable.measure-BRTryo0(InnerPlaceable.kt:44)
        at androidx.compose.foundation.layout.FillModifier.measure-3p2s80s(Size.kt:658)
        at androidx.compose.ui.node.ModifiedLayoutNode.measure-BRTryo0(ModifiedLayoutNode.kt:53)
        at androidx.compose.ui.node.LayoutNode$performMeasure$1.invoke(LayoutNode.kt:1420)
        at androidx.compose.ui.node.LayoutNode$performMeasure$1.invoke(LayoutNode.kt:1419)
        at androidx.compose.runtime.snapshots.Snapshot$Companion.observe(Snapshot.kt:2098)
        at androidx.compose.runtime.snapshots.SnapshotStateObserver.observeReads(SnapshotStateObserver.kt:112)
        at androidx.compose.ui.node.OwnerSnapshotObserver.observeReads$ui_release(OwnerSnapshotObserver.kt:78)
        at androidx.compose.ui.node.OwnerSnapshotObserver.observeMeasureSnapshotReads$ui_release(OwnerSnapshotObserver.kt:66)
        at androidx.compose.ui.node.LayoutNode.performMeasure-BRTryo0$ui_release(LayoutNode.kt:1419)
        at androidx.compose.ui.node.OuterMeasurablePlaceable.remeasure-BRTryo0(OuterMeasurablePlaceable.kt:94)
        at androidx.compose.ui.node.OuterMeasurablePlaceable.measure-BRTryo0(OuterMeasurablePlaceable.kt:75)
        at androidx.compose.ui.node.LayoutNode.measure-BRTryo0(LayoutNode.kt:1358)
        at androidx.compose.foundation.layout.BoxKt$boxMeasurePolicy$1.measure-3p2s80s(Box.kt:135)
        at androidx.compose.ui.node.InnerPlaceable.measure-BRTryo0(InnerPlaceable.kt:44)
        at androidx.compose.foundation.layout.FillModifier.measure-3p2s80s(Size.kt:658)
        at androidx.compose.ui.node.ModifiedLayoutNode.measure-BRTryo0(ModifiedLayoutNode.kt:53)
        at androidx.compose.ui.node.LayoutNode$performMeasure$1.invoke(LayoutNode.kt:1420)
        at androidx.compose.ui.node.LayoutNode$performMeasure$1.invoke(LayoutNode.kt:1419)
        at androidx.compose.runtime.snapshots.Snapshot$Companion.observe(Snapshot.kt:2098)

Single activity with
android:launchMode="singleTop"
DestinationsNavHost gets recomposed when opening the deeplink, which causes the crash. Any hint on how to avoid it or is there a bug in the library of not clearing the previous DestinationsNavHost in this case?

Hi @polivmi1 !
We do have code to clear it and we also take decomposition into account but I’m guessing there is some hole in the logic if you’re seeing this but you don’t have multiple nav hosts for the same nav graph.
So I’ll be checking this out later today and hopefully make a release with the fix. Thank you for reporting! 🙏

Thank you very much for always being so responsive and quick! If you will have problems reproducing or fixing it, I could create a sample project.

I mean if you could do that I would really appreciate it 🙏
That will probably save me some precious time which I don’t have much of these days 😅

In the playground change this code in MainActivity and then click the notification

class MainActivity : ComponentActivity() {

    private val dependencyContainer = DependencyContainer()

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        setContent {
            CompositionLocalProvider(LocalDependencyContainer provides dependencyContainer) {
                PlaygroundApp()
            }
        }
        var pendingIntent: PendingIntent? = null
        pendingIntent = TaskStackBuilder.create(applicationContext).run {
            addNextIntentWithParentStack(
                Intent(
                    Intent.ACTION_VIEW,
                    "https://destinationssample.com/profile/id".toUri(),
                    applicationContext,
                    MainActivity::class.java
                )
            )
            getPendingIntent(0, PendingIntent.FLAG_IMMUTABLE)!!
        }
        displayNotification(
            "title",
            "message",
            100,
            "DEFAULT", pendingIntent
        )
    }

    private fun displayNotification(
        title: String,
        text: String,
        notificationID: Int,
        channel: String,
        pendingIntent: PendingIntent?
    ) {
        val notificationManager = applicationContext
            .getSystemService(NOTIFICATION_SERVICE) as NotificationManager
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
            val defaultChannel =
                NotificationChannel(
                    "DEFAULT",
                    "DEFAULT",
                    NotificationManager.IMPORTANCE_DEFAULT
                )
            defaultChannel.lockscreenVisibility = Notification.VISIBILITY_PUBLIC
            notificationManager.createNotificationChannel(defaultChannel)
        }
        val builder = NotificationCompat.Builder(
            applicationContext,
            channel
        )
        builder.setContentTitle(title)
        builder.setTicker(title)
        builder.setContentText(text)
        builder.setSmallIcon(R.drawable.ic_launcher_background)

        builder.setDefaults(NotificationCompat.DEFAULT_LIGHTS or NotificationCompat.DEFAULT_VIBRATE)
        val notificationIntent = Intent(applicationContext, MainActivity::class.java)
        builder.setContentIntent(
            pendingIntent ?: PendingIntent.getActivity(
                applicationContext,
                0,
                notificationIntent,
                0
            )
        )
        val notification = builder.build()

        //Dismiss the notification on tap
        notification.flags = notification.flags or Notification.FLAG_AUTO_CANCEL

        //Update the proper notification
        notificationManager.notify(notificationID, notification)
    }
}

@polivmi1 please try 1.5.8-beta and let me know if all works for you now 🙂
Sorry for the inconvenience! And thank you for reporting 🙏

Maven is being super slow for some reason 1.5.8-beta is still not available 😕
I'll update this when it becomes available

Now available and it looks good. I will let you know if we encounter more problems. Thank you for the swift fix!

Yeah I had to open issue on sonatype jira 😅
Nice, let me know 🙂

@raamcosta so this is happening in production too. I will most likely downgrade to 1.4.4. I am not able to reproduce it yet, but it seems like it happens during normal navigation from screen to screen after a few ms. 1 screen was opened successfully, but the next screen (the same way to open it) crashed. This must be some recomposition in a case that isn't handled and race condition happens crashing it sometimes. The rate how many times it crashed is quite low.
Fatal Exception: java.lang.IllegalStateException: Calling multiple DestinationsNavHost with a navigation graph containing the same route ('root')
       at com.ramcosta.composedestinations.utils.NavGraphRegistry$UniqueRouteCheckRunnable.run(NavGraphSpecHolder.kt:68)
       at android.os.Handler.handleCallback(Handler.java:873)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loop(Looper.java:214)
       at android.app.ActivityThread.main(ActivityThread.java:7037)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)

This is unrelated to the crash, but a stack trace of what is called when that screen is opened. That might be helpful for investigating what is happening.
The composable(screen) is called after the stack trace.
androidx.compose.runtime.internal.ComposableLambdaImpl.invoke (ComposableLambda.jvm.kt:116)
androidx.compose.runtime.internal.ComposableLambdaImpl.invoke (ComposableLambda.jvm.kt:34)
com.ramcosta.composedestinations.manualcomposablecalls.DestinationLambda$Normal.invoke (DestinationLambda.kt:28)
com.ramcosta.composedestinations.animations.AnimatedNavHostEngine.CallComposable (AnimatedNavHostEngine.kt:289)
com.ramcosta.composedestinations.animations.AnimatedNavHostEngine.access$CallComposable (AnimatedNavHostEngine.kt:58)
com.ramcosta.composedestinations.animations.AnimatedNavHostEngine$addAnimatedComposable$1$5.invoke (AnimatedNavHostEngine.kt:206)
com.ramcosta.composedestinations.animations.AnimatedNavHostEngine$addAnimatedComposable$1$5.invoke (AnimatedNavHostEngine.kt:202)
androidx.compose.runtime.internal.ComposableLambdaImpl.invoke (ComposableLambda.jvm.kt:135)
androidx.compose.runtime.internal.ComposableLambdaImpl.invoke (ComposableLambda.jvm.kt:34)
com.google.accompanist.navigation.animation.AnimatedNavHostKt$AnimatedNavHost$9$1.invoke (AnimatedNavHost.kt:212)
com.google.accompanist.navigation.animation.AnimatedNavHostKt$AnimatedNavHost$9$1.invoke (AnimatedNavHost.kt:210)
androidx.compose.runtime.internal.ComposableLambdaImpl.invoke (ComposableLambda.jvm.kt:107)
androidx.compose.runtime.internal.ComposableLambdaImpl.invoke (ComposableLambda.jvm.kt:34)
androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider (CompositionLocal.kt:228)
androidx.compose.runtime.saveable.SaveableStateHolderImpl.SaveableStateProvider (SaveableStateHolder.kt:84)
androidx.navigation.compose.NavBackStackEntryProviderKt.SaveableStateProvider (NavBackStackEntryProvider.kt:60)
androidx.navigation.compose.NavBackStackEntryProviderKt.access$SaveableStateProvider (NavBackStackEntryProvider.kt:1)
androidx.navigation.compose.NavBackStackEntryProviderKt$LocalOwnersProvider$1.invoke (NavBackStackEntryProvider.kt:52)
androidx.navigation.compose.NavBackStackEntryProviderKt$LocalOwnersProvider$1.invoke (NavBackStackEntryProvider.kt:51)
androidx.compose.runtime.internal.ComposableLambdaImpl.invoke (ComposableLambda.jvm.kt:107)
androidx.compose.runtime.internal.ComposableLambdaImpl.invoke (ComposableLambda.jvm.kt:34)
androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider (CompositionLocal.kt:228)
androidx.navigation.compose.NavBackStackEntryProviderKt.LocalOwnersProvider (NavBackStackEntryProvider.kt:47)
com.google.accompanist.navigation.animation.AnimatedNavHostKt$AnimatedNavHost$9.invoke (AnimatedNavHost.kt:210)
com.google.accompanist.navigation.animation.AnimatedNavHostKt$AnimatedNavHost$9.invoke (AnimatedNavHost.kt:202)
androidx.compose.runtime.internal.ComposableLambdaImpl.invoke (ComposableLambda.jvm.kt:135)
androidx.compose.runtime.internal.ComposableLambdaImpl.invoke (ComposableLambda.jvm.kt:34)
androidx.compose.animation.AnimatedContentKt$AnimatedContent$5$1$4.invoke (AnimatedContent.kt:658)
androidx.compose.animation.AnimatedContentKt$AnimatedContent$5$1$4.invoke (AnimatedContent.kt:648)
androidx.compose.runtime.internal.ComposableLambdaImpl.invoke (ComposableLambda.jvm.kt:116)
androidx.compose.runtime.internal.ComposableLambdaImpl.invoke (ComposableLambda.jvm.kt:34)
androidx.compose.animation.AnimatedVisibilityKt.AnimatedEnterExitImpl (AnimatedVisibility.kt:937)
androidx.compose.animation.AnimatedVisibilityKt.AnimatedVisibility (AnimatedVisibility.kt:606)
androidx.compose.animation.AnimatedContentKt$AnimatedContent$5$1.invoke (AnimatedContent.kt:638)
androidx.compose.animation.AnimatedContentKt$AnimatedContent$5$1.invoke (AnimatedContent.kt:625)
androidx.compose.runtime.internal.ComposableLambdaImpl.invoke (ComposableLambda.jvm.kt:107)
androidx.compose.runtime.internal.ComposableLambdaImpl.invoke (ComposableLambda.jvm.kt:34)
androidx.compose.animation.AnimatedContentKt.AnimatedContent (AnimatedContent.kt:671)
com.google.accompanist.navigation.animation.AnimatedNavHostKt.AnimatedNavHost (AnimatedNavHost.kt:197)
com.google.accompanist.navigation.animation.AnimatedNavHostKt.AnimatedNavHost (AnimatedNavHost.kt:91)
com.ramcosta.composedestinations.animations.AnimatedNavHostEngine.NavHost (AnimatedNavHostEngine.kt:83)
com.ramcosta.composedestinations.DestinationsNavHostKt.DestinationsNavHost (DestinationsNavHost.kt:71)

Thanks for letting me know @polivmi1 !
I believe I found a better solution to the problem. This way I don't even need to restrict the "one NavHost = one Top level route". So you won't be seeing this crash anymore :)
Thanks for staying with me and helping me improve the lib! 🙏
I'll comment here once I release this fix.

1.5.9-beta released!
Thank you again 🙂

That was quick! Thank you! I will let you know if we find something else.


Unexpected OBJECT_PATTERN parent

Messing around with object destructing and I got a compilation error + stack trace! :(
Note that this is valid JS - you can run it in Chrome.
function readAll(reader) {
    let values = [];
    let value;
    let done;
    while (({value, done} = reader.read()) && !done) {
      values.push(value);
    }
    return values;
}

class Reader {
  constructor(arr) {
    this.arr = arr;
  }

  read() {
    return this.arr.length ?
      {value: this.arr.shift(), done: false} :
      {done: true};
  }
}

readAll(new Reader([1,2,4,5]));

23: java.lang.IllegalStateException: Unexpected OBJECT_PATTERN parent: ASSIGN 5 [length: 29] [source_file: Input_0]
    at com.google.javascript.jscomp.Es6RewriteDestructuring.visitObjectPattern(Es6RewriteDestructuring.java:224)
    at com.google.javascript.jscomp.Es6RewriteDestructuring.visit(Es6RewriteDestructuring.java:78)
    at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:650)
    at com.google.javascript.jscomp.NodeTraversal.traverseChildren(NodeTraversal.java:722)
    ...

https://closure-compiler-debugger.appspot.com/#input0%3Dfunction%2520readAll(reader)%2520%257B%2520%250A%2520%2520%2520%2520let%2520value%253B%250A%2520%2520%2520%2520let%2520done%253B%250A%2520%2520%2520%2520while%2520(%257Bvalue%252C%2520done%257D%2520%253D%2520reader.read())%2520%257B%250A%2520%2520%2520%2520%257D%250A%257D%250A%26input1%26conformanceConfig%26externs%26refasterjs-template%26includeDefaultExterns%3D1%26CHECK_SYMBOLS%3D1%26CHECK_TYPES%3D1%26CLOSURE_PASS%3D1%26LANG_IN_IS_ES6%3D1%26MISSING_PROPERTIES%3D1%26PRESERVE_TYPE_ANNOTATIONS%3D1%26PRETTY_PRINT%3D1%26TRANSPILE%3D1

It looks like we handle standalone ASSIGN statements, but not ASSIGN expressions nested inside other expressions (like a while or if). Good catch.

Any update on this one ? Just bumped into it today ;)

No update, sorry. It probably shouldn't take too long, we just haven't prioritized it yet.

This seems to be fixed in 96ff594.
https://closure-compiler-debugger.appspot.com/#input0%3Dfunction%2520readAll(reader)%2520%257B%2520%250A%2520%2520%2520%2520let%2520value%253B%250A%2520%2520%2520%2520let%2520done%253B%250A%2520%2520%2520%2520while%2520(%257Bvalue%252C%2520done%257D%2520%253D%2520reader.read())%2520%257B%250A%2520%2520%2520%2520%257D%250A%257D%250A%26input1%26conformanceConfig%26externs%26refasterjs-template%26includeDefaultExterns%3D1%26CHECK_SYMBOLS%3D1%26CHECK_TYPES%3D1%26CLOSURE_PASS%3D1%26LANG_IN_IS_ES6%3D1%26MISSING_PROPERTIES%3D1%26PRESERVE_TYPE_ANNOTATIONS%3D1%26PRETTY_PRINT%3D1%26TRANSPILE%3D1


add custom algorithms

see in action: https://gist.github.com/vincentsarago/82cbdb4c45fb94570c48751b46f17e6c
To Do

[ ] review
[x] tests
[x] documentation

@vincentsarago this looks great! Is my understanding correct when I assume adding new algorithms requires a new build/deploy of my own fork of titiler or there's a safe "injection" process for a new algorithm?

to let users extend the list of available Algorithm we could do something like
import os
import pathlib
from importlib.machinery import SourceFileLoader

from titiler.core.algorithm import BaseAlgorithm
from titiler.core.algorithm import algorithms as default_algorithms

user_algo_dir = os.environ.get("TITILER_ALGORITHMS_DIRECTORY", None)
if user_algo_dir:
    algos = {}
    algo_files = list(pathlib.Path(user_algo_dir).glob("*.py"))
    for f in algo_files:
        module = SourceFileLoader(f.stem, str(f)).load_module()
        algo = getattr(module, "Algorithm")
        try:
            assert BaseAlgorithm in algo.__bases__, f"Invalid {algo} class"
            algos.update(
                {f.stem: algo}
            )
        except AssertionError as e:
            print(e). # todo raise a warning

    default_algorithms = default_algorithms.register(algos)

This block will look for .py file in TITILER_ALGORITHMS_DIRECTORY directory and load all the modules (potential dangerous). then get the Algorithm class (users would have to name the class Algorithm).
I'm kinda hesitant on this feature because automatically importing files seems bad 😅


Dropbox links on README.md broken

I believe all Dropbox links are returning a 404 error.
Why not upload the Authoring Tools binaries directly with the release?

The links should be fixed now.


epilys-bb: init at unstable-2020-12-04

Description of changes

A "clean simple fast process viewer" written in rust.
https://nessuent.xyz/bb.html
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/2300


using rxfirebase in android things/enum/kotlin project

https://stackoverflow.com/questions/52639350/kotlin-enum-class-with-companion-object-integrate-with-field-of-the-firebase-dat
Hi,
I need your help to integrate rxfirebase in my project
can I use kotlin with your library? or not

Yes, you can use the library on Kotlin without no problem.
The kotlin has interoperability with java.

https://stackoverflow.com/questions/52639350/kotlin-enum-class-with-companion-object-integrate-with-field-of-the-firebase-dat
How to your library can help me in this