Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aenea: Successfully connected to server. printed when not connected to server #183

Open
dylan-chong opened this issue Nov 18, 2018 · 5 comments

Comments

@dylan-chong
Copy link
Contributor

dylan-chong commented Nov 18, 2018

If I don't even start the Aenea server, Aenea: Successfully connected to server. is printed to the natlink console when i open dragon, incorrectly, at line 2 https://github.com/dictation-toolbox/aenea/blob/master/client/_aenea.py#L54

@LexiconCode
Copy link
Member

I can concur that this is an issue that I'm experiencing as well.

@calmofthestorm
Copy link
Member

Is anything else being printed? Wondering if this is the problem: https://github.com/dictation-toolbox/aenea/blob/master/client/aenea/communications.py#L97

Socket error is caught and we return None, which then gets converted into an empty context of {}. Since the printed message you note is just testing the absence of a general except:, it still gets printed.

If this is the problem, the solution should be to either use a smarter/more explicit check that the connection is up (this state is being tracked in the Proxy as part of retry and cooldown, so maybe we should just add a method to check directly?), or to propagate the socket.error exception (but I worry that could introduce further issues for intermittant problems or when using multiple servers on different computers, if things expect socket.error to be swallowed).

@dylan-chong
Copy link
Contributor Author

Socket error connecting to aenea server. To avoid slowing dictation, we won\'t try again for %i seconds doesn't get printed until i try to say a command

This text comes up when i open dragon without the server started

 -- natlinkmain starting...
--- natlinkstartup starting...
======
SendInput, a Vocola extension written by Mark Lillibridge,  is 
used for all normal playString calls!  If you do not want this,
change the variable useMarkSendInput to 0 in line 65 of
natlinkutils.py.  This file is located in the directory 
NatLink\MacroSystem\Core.  Then restart Dragon...
======
Vocola not active
Aenea client-side modules loaded successfully
Settings:
	HOST: 192.168.56.1
	PORT: 8240
	PLATFORM: proxy
	USE_MULTIPLE_ACTIONS: True
	SCREEN_RESOLUTION: [6400, 1440]
Aenea: Successfully connected to server.
Loading _charwise_vim.py
Aenea hello world grammar: Loaded.
natlinkmain started from C:\NatLink\NatLink\MacroSystem\core:
  NatLink version: 4.1whiskey
  DNS version: 13
  Python version: 27
  Windows Version: 7
----------------------------------------

@calmofthestorm
Copy link
Member

Hmmm ok, I'll try to take a look at this when I have a chance, but I'm about to head out of town for awhile so it might be a few weeks.

@dylan-chong
Copy link
Contributor Author

dylan-chong commented Nov 21, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants