#77 Automatically adding instance variables in class method breaks the package

Закрыто
7 лет назад открыта shepheb · комментариев: 2
Braden Shepherdson прокомментировал 7 лет назад

Here's the flow:

  1. Create a class method that references an unknown class instance variable; try to save it.
  2. Helios prompts you to create it; select Confirm.
  3. Error message appears: "JavaScript exception: TypeError: traitOrClass.added is not a function"
  4. Click Abandon on that error.
  5. Make some other, legal edit so your package is dirty.
  6. Try to commit it, error message "nil does not understand #name", package is not committed.

There's no visible code change to revert; this seems unrecoverable except by a refresh, and now whatever edits one has made are lost.

Here's the flow: 1. Create a class method that references an unknown class instance variable; try to save it. 1. Helios prompts you to create it; select Confirm. 1. Error message appears: "JavaScript exception: TypeError: traitOrClass.added is not a function" 1. Click Abandon on that error. 1. Make some other, legal edit so your package is dirty. 1. Try to commit it, error message "nil does not understand #name", package is not committed. There's no visible code change to revert; this seems unrecoverable except by a refresh, and now whatever edits one has made are lost.
Herby Vojčík прокомментировал 7 лет назад
Владелец

That traitOrClass.added is not a function is scary (but a good pointer as it is clear where this is called).

That `traitOrClass.added is not a function` is scary (but a good pointer as it is clear where this is called).
Herby Vojčík прокомментировал 7 лет назад
Владелец

Bug is upstream: amber/amber#1235, closing.

Bug is upstream: https://lolg.it/amber/amber/issues/1235, closing.
Войдите, чтобы присоединиться к обсуждению.
Нет меток
Нет этапа
Нет ответственного
2 участников
Загрузка...
Отмена
Сохранить
Пока нет содержимого.